Lines Matching refs:og
108 static ogg_int64_t _get_next_page(OggVorbis_File *vf,ogg_page *og, in _get_next_page() argument
115 more=ogg_sync_pageseek(&vf->oy,og); in _get_next_page()
146 static ogg_int64_t _get_prev_page(OggVorbis_File *vf,ogg_page *og){ in _get_prev_page() argument
161 memset(og,0,sizeof(*og)); in _get_prev_page()
162 ret=_get_next_page(vf,og,end-vf->offset); in _get_prev_page()
175 if(og->header_len==0){ in _get_prev_page()
179 ret=_get_next_page(vf,og,CHUNKSIZE); in _get_prev_page()
188 static void _add_serialno(ogg_page *og,long **serialno_list, int *n){ in _add_serialno() argument
189 long s = ogg_page_serialno(og); in _add_serialno()
212 static int _lookup_page_serialno(ogg_page *og, long *serialno_list, int n){ in _lookup_page_serialno() argument
213 long s = ogg_page_serialno(og); in _lookup_page_serialno()
226 ogg_page og; in _get_prev_page_serial() local
245 ret=_get_next_page(vf,&og,end-vf->offset); in _get_prev_page_serial()
250 ret_serialno=ogg_page_serialno(&og); in _get_prev_page_serial()
251 ret_gran=ogg_page_granulepos(&og); in _get_prev_page_serial()
284 ogg_page og; in _fetch_headers() local
290 ogg_int64_t llret=_get_next_page(vf,&og,CHUNKSIZE); in _fetch_headers()
293 og_ptr=&og; in _fetch_headers()
422 ogg_page og; in _initial_pcmoffset() local
430 if(_get_next_page(vf,&og,-1)<0) in _initial_pcmoffset()
433 if(ogg_page_bos(&og)) break; in _initial_pcmoffset()
434 if(ogg_page_serialno(&og)!=serialno) continue; in _initial_pcmoffset()
437 ogg_stream_pagein(&vf->os,&og); in _initial_pcmoffset()
447 if(ogg_page_granulepos(&og)!=-1){ in _initial_pcmoffset()
449 accumulated= ogg_page_granulepos(&og)-accumulated; in _initial_pcmoffset()
479 ogg_page og; in _bisect_forward_serialno() local
539 last=_get_next_page(vf,&og,-1); in _bisect_forward_serialno()
541 if(last<0 || !_lookup_page_serialno(&og,currentno_list,currentnos)){ in _bisect_forward_serialno()
545 searched=last+og.header_len+og.body_len; in _bisect_forward_serialno()
676 ogg_page og; in _fetch_and_process_packet() local
772 if((ret=_get_next_page(vf,&og,-1))<0){ in _fetch_and_process_packet()
778 vf->bittrack+=og.header_len*8; in _fetch_and_process_packet()
781 if(vf->current_serialno!=ogg_page_serialno(&og)){ in _fetch_and_process_packet()
787 if(ogg_page_bos(&og)){ in _fetch_and_process_packet()
826 long serialno = ogg_page_serialno(&og); in _fetch_and_process_packet()
849 int ret=_fetch_headers(vf,vf->vi,vf->vc,NULL,NULL,&og); in _fetch_and_process_packet()
860 ogg_stream_pagein(&vf->os,&og); in _fetch_and_process_packet()
1257 ogg_page og; in ov_raw_seek() local
1317 pagepos=_get_next_page(vf,&og,-1); in ov_raw_seek()
1330 if(vf->current_serialno!=ogg_page_serialno(&og)){ in ov_raw_seek()
1336 if(ogg_page_bos(&og)){ in ov_raw_seek()
1346 long serialno = ogg_page_serialno(&og); in ov_raw_seek()
1362 ogg_stream_pagein(&vf->os,&og); in ov_raw_seek()
1363 ogg_stream_pagein(&work_os,&og); in ov_raw_seek()
1364 lastflag=ogg_page_eos(&og); in ov_raw_seek()
1419 ogg_page og; in ov_pcm_seek_page() local
1438 result=_get_next_page(vf,&og,end-vf->offset); in ov_pcm_seek_page()
1453 if(ogg_page_serialno(&og)!=vf->serialnos[link]) in ov_pcm_seek_page()
1456 granulepos=ogg_page_granulepos(&og); in ov_pcm_seek_page()
1490 ogg_page og; in ov_pcm_seek_page() local
1497 result=_get_next_page(vf,&og,-1); in ov_pcm_seek_page()
1513 ogg_stream_pagein(&vf->os,&og); in ov_pcm_seek_page()
1528 result=_get_prev_page(vf,&og); in ov_pcm_seek_page()
1530 if(ogg_page_serialno(&og)==vf->current_serialno && in ov_pcm_seek_page()
1531 (ogg_page_granulepos(&og)>-1 || in ov_pcm_seek_page()
1532 !ogg_page_continued(&og))){ in ov_pcm_seek_page()
1583 ogg_page og; in ov_pcm_seek() local
1622 if(_get_next_page(vf,&og,-1)<0)break; in ov_pcm_seek()
1623 if(ogg_page_bos(&og))_decode_clear(vf); in ov_pcm_seek()
1626 long serialno=ogg_page_serialno(&og); in ov_pcm_seek()
1635 vf->current_serialno=ogg_page_serialno(&og); in ov_pcm_seek()
1642 ogg_stream_pagein(&vf->os,&og); in ov_pcm_seek()