Lines Matching refs:og

130 static ogg_int64_t _get_next_page(OggVorbis_File *vf,ogg_page *og,  in _get_next_page()  argument
137 more=ogg_sync_pageseek(vf->oy,og); in _get_next_page()
169 static ogg_int64_t _get_prev_page(OggVorbis_File *vf,ogg_page *og){ in _get_prev_page() argument
181 ret=_get_next_page(vf,og,end-vf->offset); in _get_prev_page()
193 ret=_get_next_page(vf,og,CHUNKSIZE); in _get_prev_page()
213 ogg_page og={0,0,0,0}; in _bisect_forward_serialno() local
228 ret=_get_next_page(vf,&og,-1); in _bisect_forward_serialno()
230 if(ret<0 || ogg_page_serialno(&og)!=currentno){ in _bisect_forward_serialno()
234 searched=ret+og.header_len+og.body_len; in _bisect_forward_serialno()
236 ogg_page_release(&og); in _bisect_forward_serialno()
240 ret=_get_next_page(vf,&og,-1); in _bisect_forward_serialno()
244 ogg_page_release(&og); in _bisect_forward_serialno()
251 end,ogg_page_serialno(&og),m+1); in _bisect_forward_serialno()
252 ogg_page_release(&og); in _bisect_forward_serialno()
286 ogg_page og={0,0,0,0}; in _fetch_headers() local
293 ogg_int64_t llret=_get_next_page(vf,&og,CHUNKSIZE); in _fetch_headers()
296 og_ptr=&og; in _fetch_headers()
331 ogg_page_release(&og); in _fetch_headers()
337 ogg_page_release(&og); in _fetch_headers()
380 ogg_page og={0,0,0,0}; in _prefetch_all_offsets() local
417 ret=_get_next_page(vf,&og,-1); in _prefetch_all_offsets()
423 if(ogg_page_serialno(&og)!=vf->serialnos[i]) in _prefetch_all_offsets()
426 pos=ogg_page_granulepos(&og); in _prefetch_all_offsets()
429 ogg_stream_pagein(vf->os,&og); in _prefetch_all_offsets()
461 ret=_get_prev_page(vf,&og); in _prefetch_all_offsets()
468 if(ogg_page_granulepos(&og)!=-1){ in _prefetch_all_offsets()
469 vf->pcmlengths[i*2+1]=ogg_page_granulepos(&og)-vf->pcmlengths[i*2]; in _prefetch_all_offsets()
476 ogg_page_release(&og); in _prefetch_all_offsets()
507 ogg_page og={0,0,0,0}; in _open_seekable2() local
517 end=_get_prev_page(vf,&og); in _open_seekable2()
521 tempserialno=ogg_page_serialno(&og); in _open_seekable2()
522 ogg_page_release(&og); in _open_seekable2()
556 ogg_page og={0,0,0,0}; in _fetch_and_process_packet() local
636 ret=(int)_get_next_page(vf,&og,-1); in _fetch_and_process_packet()
644 vf->bittrack+=og.header_len*8; in _fetch_and_process_packet()
648 if(vf->current_serialno!=ogg_page_serialno(&og)){ in _fetch_and_process_packet()
676 vf->current_serialno=ogg_page_serialno(&og); in _fetch_and_process_packet()
690 ret=_fetch_headers(vf,&vf->vi,&vf->vc,&vf->current_serialno,&og); in _fetch_and_process_packet()
697 int ret=_fetch_headers(vf,&vf->vi,&vf->vc,&vf->current_serialno,&og); in _fetch_and_process_packet()
705 ogg_stream_pagein(vf->os,&og); in _fetch_and_process_packet()
709 ogg_page_release(&og); in _fetch_and_process_packet()
1001 ogg_page og={0,0,0,0}; in ov_raw_seek() local
1081 if(_get_next_page(vf,&og,-1)<0){ in ov_raw_seek()
1093 if(vf->current_serialno!=ogg_page_serialno(&og)){ in ov_raw_seek()
1101 vf->current_serialno=ogg_page_serialno(&og); in ov_raw_seek()
1121 ogg_page_dup(&dup,&og); in ov_raw_seek()
1122 eosflag=ogg_page_eos(&og); in ov_raw_seek()
1123 ogg_stream_pagein(vf->os,&og); in ov_raw_seek()
1130 ogg_page_release(&og); in ov_raw_seek()
1138 ogg_page_release(&og); in ov_raw_seek()
1157 ogg_page og={0,0,0,0}; in ov_pcm_seek_page() local
1211 result=_get_next_page(vf,&og,end-vf->offset); in ov_pcm_seek_page()
1223 ogg_int64_t granulepos=ogg_page_granulepos(&og); in ov_pcm_seek_page()
1260 if(_get_next_page(vf,&og,-1)<0){ in ov_pcm_seek_page()
1261 ogg_page_release(&og); in ov_pcm_seek_page()
1265 ogg_stream_pagein(vf->os,&og); in ov_pcm_seek_page()
1279 result=_get_prev_page(vf,&og); in ov_pcm_seek_page()
1281 if(ogg_page_granulepos(&og)>-1 || in ov_pcm_seek_page()
1282 !ogg_page_continued(&og)){ in ov_pcm_seek_page()
1311 ogg_page_release(&og); in ov_pcm_seek_page()
1317 ogg_page_release(&og); in ov_pcm_seek_page()
1331 ogg_page og={0,0,0,0}; in ov_pcm_seek() local
1378 if(_get_next_page(vf,&og,-1)<0)break; in ov_pcm_seek()
1379 if(vf->current_serialno!=ogg_page_serialno(&og))_decode_clear(vf); in ov_pcm_seek()
1384 vf->current_serialno=ogg_page_serialno(&og); in ov_pcm_seek()
1388 ogg_page_release(&og); in ov_pcm_seek()
1395 ret=_fetch_headers(vf,&vf->vi,&vf->vc,&vf->current_serialno,&og); in ov_pcm_seek()
1401 ogg_stream_pagein(vf->os,&og); in ov_pcm_seek()
1422 ogg_page_release(&og); in ov_pcm_seek()