• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavformat/

Lines Matching refs:sample

641                "sample aspect ratio already set to %d:%d, ignoring 'pasp' atom (%d:%d)\n",
1263 st->codec->bits_per_coded_sample = avio_rb16(pb); /* sample size */
1277 avio_rb32(pb); /* bytes per sample */
1375 // force sample rate for qcelp when not stored in mov
1383 /* force sample rate for amr, stsd in 3gp does not store sample rate */
1562 av_log(c->fc, AV_LOG_ERROR, "Invalid sample field size %d\n", field_size);
1747 av_log(mov->fc, AV_LOG_ERROR, "wrong sample count\n");
1771 av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
2115 //sample aspect ratio is new width/height divided by old width/height
2218 * 2) in the first movie fragment, there is only one sample without composition time offset.
2244 av_dlog(c->fc, "first sample flags 0x%x\n", first_sample_flags);
2262 av_dlog(c->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
2390 { MKTAG('c','t','t','s'), mov_read_ctts }, /* composition time to sample */
2420 { MKTAG('s','t','s','d'), mov_read_stsd }, /* sample description */
2421 { MKTAG('s','t','s','s'), mov_read_stss }, /* sync sample */
2422 { MKTAG('s','t','s','z'), mov_read_stsz }, /* sample size */
2424 { MKTAG('s','t','z','2'), mov_read_stsz }, /* compact sample size */
2512 AVIndexEntry *sample = &st->index_entries[i];
2518 if (avio_seek(sc->pb, sample->pos, SEEK_SET) != sample->pos) {
2525 if (len > sample->size-2)
2551 avpriv_new_chapter(s, i, st->time_base, sample->timestamp, end, title);
2591 AVIndexEntry *sample = NULL;
2600 av_dlog(s, "stream %d, sample %d, dts %"PRId64"\n", i, msc->current_sample, dts);
2601 if (!sample || (!s->pb->seekable && current_sample->pos < sample->pos) ||
2604 ((FFABS(best_dts - dts) <= AV_TIME_BASE && current_sample->pos < sample->pos) ||
2606 sample = current_sample;
2612 return sample;
2619 AVIndexEntry *sample;
2623 sample = mov_find_next_sample(s, &st);
2624 if (!sample) {
2634 /* must be done just before reading, to avoid infinite loop on sample */
2638 if (avio_seek(sc->pb, sample->pos, SEEK_SET) != sample->pos) {
2640 sc->ffindex, sample->pos);
2643 ret = av_get_packet(sc->pb, pkt, sample->size);
2670 pkt->dts = sample->timestamp;
2690 pkt->flags |= sample->flags & AVINDEX_KEYFRAME ? AV_PKT_FLAG_KEY : 0;
2691 pkt->pos = sample->pos;
2700 int sample, time_sample;
2703 sample = av_index_search_timestamp(st, timestamp, flags);
2704 av_dlog(s, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
2705 if (sample < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp)
2706 sample = 0;
2707 if (sample < 0) /* not sure what to do */
2709 sc->current_sample = sample;
2710 av_dlog(s, "stream %d, found sample %d\n", st->index, sc->current_sample);
2724 return sample;
2731 int sample;
2740 sample = mov_seek_stream(s, st, sample_time, flags);
2741 if (sample < 0)
2742 return sample;
2744 /* adjust seek timestamp to found sample timestamp */
2745 seek_timestamp = st->index_entries[sample].timestamp;