Lines Matching refs:link

348 static int _set_link_number(OggVorbis_File *vf,int link){  in _set_link_number()  argument
349 if(link != vf->current_link) _decode_clear(vf); in _set_link_number()
351 _seek_helper(vf,vf->offsets[link]); in _set_link_number()
352 ogg_stream_reset_serialno(vf->os,vf->serialnos[link]); in _set_link_number()
353 vf->current_serialno=vf->serialnos[link]; in _set_link_number()
354 vf->current_link=link; in _set_link_number()
360 static int _set_link_number_preserve_pos(OggVorbis_File *vf,int link){ in _set_link_number_preserve_pos() argument
362 int ret=_set_link_number(vf,link); in _set_link_number_preserve_pos()
365 if(pos<vf->offsets[link] || pos>=vf->offsets[link+1]) in _set_link_number_preserve_pos()
591 int link=(vf->seekable?vf->current_link:0); in _fetch_and_process_packet() local
607 if(vf->seekable && link>0) in _fetch_and_process_packet()
608 granulepos-=vf->pcmlengths[link*2]; in _fetch_and_process_packet()
617 for(i=0;i<link;i++) in _fetch_and_process_packet()
672 int link,ret; in _fetch_and_process_packet() local
681 for(link=0;link<vf->links;link++) in _fetch_and_process_packet()
682 if(vf->serialnos[link]==vf->current_serialno)break; in _fetch_and_process_packet()
683 if(link==vf->links){ in _fetch_and_process_packet()
689 vf->current_link=link; in _fetch_and_process_packet()
1064 int i,link=vf->current_link; in ov_raw_seek() local
1065 ogg_int64_t granulepos=op.granulepos-vf->pcmlengths[link*2]; in ov_raw_seek()
1068 for(i=0;i<link;i++) in ov_raw_seek()
1099 int link; in ov_raw_seek() local
1102 for(link=0;link<vf->links;link++) in ov_raw_seek()
1103 if(vf->serialnos[link]==vf->current_serialno)break; in ov_raw_seek()
1104 if(link==vf->links) in ov_raw_seek()
1110 int ret=_set_link_number_preserve_pos(vf,link); in ov_raw_seek()
1154 int link=-1; in ov_pcm_seek_page() local
1165 for(link=vf->links-1;link>=0;link--){ in ov_pcm_seek_page()
1166 total-=vf->pcmlengths[link*2+1]; in ov_pcm_seek_page()
1171 if(link!=vf->current_link){ in ov_pcm_seek_page()
1172 int ret=_set_link_number(vf,link); in ov_pcm_seek_page()
1178 ogg_stream_reset_serialno(vf->os,vf->serialnos[link]); in ov_pcm_seek_page()
1188 ogg_int64_t end=vf->offsets[link+1]; in ov_pcm_seek_page()
1189 ogg_int64_t begin=vf->offsets[link]; in ov_pcm_seek_page()
1190 ogg_int64_t begintime = vf->pcmlengths[link*2]; in ov_pcm_seek_page()
1191 ogg_int64_t endtime = vf->pcmlengths[link*2+1]+begintime; in ov_pcm_seek_page()
1382 int link,ret; in ov_pcm_seek() local
1385 for(link=0;link<vf->links;link++) in ov_pcm_seek()
1386 if(vf->serialnos[link]==vf->current_serialno)break; in ov_pcm_seek()
1387 if(link==vf->links){ in ov_pcm_seek()
1394 vf->current_link=link; in ov_pcm_seek()
1432 int link=-1; in ov_time_seek() local
1441 for(link=vf->links-1;link>=0;link--){ in ov_time_seek()
1442 pcm_total-=vf->pcmlengths[link*2+1]; in ov_time_seek()
1443 time_total-=ov_time_total(vf,link); in ov_time_seek()
1449 int ret=_set_link_number(vf,link); in ov_time_seek()
1462 int link=-1; in ov_time_seek_page() local
1471 for(link=vf->links-1;link>=0;link--){ in ov_time_seek_page()
1472 pcm_total-=vf->pcmlengths[link*2+1]; in ov_time_seek_page()
1473 time_total-=ov_time_total(vf,link); in ov_time_seek_page()
1479 int ret=_set_link_number(vf,link); in ov_time_seek_page()
1502 int link=0; in ov_time_tell() local
1512 for(link=vf->links-1;link>=0;link--){ in ov_time_tell()
1513 pcm_total-=vf->pcmlengths[link*2+1]; in ov_time_tell()
1514 time_total-=ov_time_total(vf,link); in ov_time_tell()
1530 vorbis_info *ov_info(OggVorbis_File *vf,int link){ in ov_info() argument
1532 if(link>=vf->links)return NULL; in ov_info()
1533 if(link>=0){ in ov_info()
1534 int ret=_set_link_number_preserve_pos(vf,link); in ov_info()
1542 vorbis_comment *ov_comment(OggVorbis_File *vf,int link){ in ov_comment() argument
1544 if(link>=vf->links)return NULL; in ov_comment()
1545 if(link>=0){ in ov_comment()
1546 int ret=_set_link_number_preserve_pos(vf,link); in ov_comment()