Lines Matching refs:granule
36 int64_t granule;
49 /** for theora granule */
57 int64_t last_granule; ///< last packet granule
93 avio_wl64(pb, page->granule);
116 static int64_t ogg_granule_to_timestamp(OGGStreamContext *oggstream, int64_t granule)
119 return (granule>>oggstream->kfgshift) +
120 (granule & ((1<<oggstream->kfgshift)-1));
122 return granule;
131 if (next->granule == -1 || page->granule == -1)
134 next_granule = av_rescale_q(ogg_granule_to_timestamp(st2->priv_data, next->granule),
136 cur_granule = av_rescale_q(ogg_granule_to_timestamp(st->priv_data, page->granule),
143 oggstream->page.granule = -1;
175 uint8_t *data, unsigned size, int64_t granule)
184 ogg_granule_to_timestamp(oggstream, granule) >
186 if (oggstream->page.granule != -1)
211 page->granule = granule;
218 if (flush && oggstream->page.granule != -1)
399 /** KFGSHIFT is the width of the less significant section of the granule position
456 int64_t granule;
469 granule = (oggstream->last_kf_pts<<oggstream->kfgshift) | pframe_count;
471 granule = pkt->pts + pkt->duration;
473 ret = ogg_buffer_data(s, st, pkt->data, pkt->size, granule);
479 oggstream->last_granule = granule;