• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching refs:granule

40     int64_t granule;
53 /** for theora granule */
61 int64_t last_granule; ///< last packet granule
113 avio_wl64(pb, page->granule);
136 static int ogg_key_granule(OGGStreamContext *oggstream, int64_t granule)
138 return oggstream->kfgshift && !(granule & ((1<<oggstream->kfgshift)-1));
141 static int64_t ogg_granule_to_timestamp(OGGStreamContext *oggstream, int64_t granule)
144 return (granule>>oggstream->kfgshift) +
145 (granule & ((1<<oggstream->kfgshift)-1));
147 return granule;
156 if (next->granule == -1 || page->granule == -1)
159 next_granule = av_rescale_q(ogg_granule_to_timestamp(st2->priv_data, next->granule),
161 cur_granule = av_rescale_q(ogg_granule_to_timestamp(st->priv_data, page->granule),
168 oggstream->page.granule = -1;
185 oggstream->page.start_granule = oggstream->page.granule;
201 uint8_t *data, unsigned size, int64_t granule,
216 (ogg_granule_to_timestamp(oggstream, granule) >
218 ogg_key_granule(oggstream, granule))) {
219 if (oggstream->page.granule != -1)
250 page->granule = granule;
257 int64_t next = av_rescale_q(page->granule, st->time_base,
268 if (flush && oggstream->page.granule != -1)
522 /** KFGSHIFT is the width of the less significant section of the granule position
562 int64_t granule;
575 granule = (oggstream->last_kf_pts<<oggstream->kfgshift) | pframe_count;
577 granule = pkt->pts + pkt->duration + av_rescale_q(st->codec->delay, (AVRational){ 1, st->codec->sample_rate }, st->time_base);
579 granule = pkt->pts + pkt->duration;
584 ret = ogg_buffer_data(s, st, pkt->data, pkt->size, granule, 0);
590 oggstream->last_granule = granule;