Lines Matching defs:granulepos
569 ogg_int64_t granulepos;
577 granulepos=op.granulepos;
590 if(granulepos!=-1 && !op.e_o_s){
601 granulepos declares the last frame in the stream, and the
603 So, we need a previous granulepos from an in-sequence page
608 granulepos-=vf->pcmlengths[link*2];
609 if(granulepos<0)granulepos=0; /* actually, this
616 granulepos-=samples;
618 granulepos+=vf->pcmlengths[i*2+1];
619 vf->pcm_offset=granulepos;
1023 with a granulepos. That's not equivalent behavior to beginning
1031 because the granulepos on the last page is not necessarily on a
1063 if(op.granulepos!=-1){
1065 ogg_int64_t granulepos=op.granulepos-vf->pcmlengths[link*2];
1066 if(granulepos<0)granulepos=0;
1069 granulepos+=vf->pcmlengths[i*2+1];
1070 vf->pcm_offset=granulepos-accblock;
1086 /* huh? Bogus stream with packets but no granulepos */
1223 ogg_int64_t granulepos=ogg_page_granulepos(&og);
1224 if(granulepos==-1)continue;
1225 if(granulepos<target){
1226 best=result; /* raw offset of packet with granulepos */
1228 begintime=granulepos;
1243 endtime=granulepos;
1253 raw_seek, don't keep packets preceeding granulepos. */
1267 /* pull out all but last packet; the one with granulepos */
1273 get one with a granulepos or without the 'continued' flag
1292 if(op.granulepos!=-1){
1293 vf->pcm_offset=op.granulepos-vf->pcmlengths[vf->current_link*2];
1354 /* remove the packet from packet queue and track its granulepos */
1363 if(op.granulepos>-1){
1366 vf->pcm_offset=op.granulepos-vf->pcmlengths[vf->current_link*2];