Lines Matching defs:link
260 /* we fell off the end of the link, which means we seeked
261 back too far and shouldn't have been looking in that link
301 headers we see in the link */
318 /* we don't have a vorbis stream in this link yet, so begin
392 /* if we never see the final vorbis headers before the link
461 /* finds each bitstream link one at a time using a bisection search
463 Recurses for each link so it can alloc the link storage after
484 we have the headers and serialnos for the link beginning at 'begin'
493 down to (or just started with) a single link. Now we need to
495 for this link. */
618 /* we're partially open and have a first link header state in
636 we're lucky the last vorbis page of this link as most OggVorbis
723 int link=(vf->seekable?vf->current_link:0);
739 if(vf->seekable && link>0)
740 granulepos-=vf->pcmlengths[link*2];
749 for(i=0;i<link;i++)
822 int link;
832 for(link=0;link<vf->links;link++)
833 if(vf->serialnos[link]==serialno)break;
835 if(link==vf->links) continue; /* not the desired Vorbis
840 vf->current_link=link;
853 link=0;
912 /* serial number list for first link needs to be held somewhere
914 seek/reread first link's serialnumber data then. */
1134 int link=(vf->seekable?vf->current_link:0);
1138 ret=vf->bittrack/vf->samptrack*vf->vi[link].rate+.5;
1230 the case we're in the same link. Restart the decode lapping, and
1299 int i,link=vf->current_link;
1300 ogg_int64_t granulepos=op.granulepos-vf->pcmlengths[link*2];
1303 for(i=0;i<link;i++)
1345 int link;
1348 for(link=0;link<vf->links;link++)
1349 if(vf->serialnos[link]==serialno)break;
1351 if(link==vf->links) continue; /* not the desired Vorbis
1354 vf->current_link=link;
1359 firstflag=(pagepos<=vf->dataoffsets[link]);
1389 int link=-1;
1399 for(link=vf->links-1;link>=0;link--){
1400 total-=vf->pcmlengths[link*2+1];
1412 ogg_int64_t end=vf->offsets[link+1];
1413 ogg_int64_t begin=vf->offsets[link];
1414 ogg_int64_t begintime = vf->pcmlengths[link*2];
1415 ogg_int64_t endtime = vf->pcmlengths[link*2+1]+begintime;
1453 if(ogg_page_serialno(&og)!=vf->serialnos[link])
1500 if(link!=vf->current_link){
1501 /* Different link; dump entire decode machine */
1504 vf->current_link=link;
1505 vf->current_serialno=vf->serialnos[link];
1627 int link;
1629 for(link=0;link<vf->links;link++)
1630 if(vf->serialnos[link]==serialno)break;
1631 if(link==vf->links) continue;
1632 vf->current_link=link;
1670 int link=-1;
1679 for(link=0;link<vf->links;link++){
1680 double addsec = ov_time_total(vf,link);
1683 pcm_total+=vf->pcmlengths[link*2+1];
1686 if(link==vf->links)return(OV_EINVAL);
1690 ogg_int64_t target=pcm_total+(seconds-time_total)*vf->vi[link].rate;
1700 int link=-1;
1709 for(link=0;link<vf->links;link++){
1710 double addsec = ov_time_total(vf,link);
1713 pcm_total+=vf->pcmlengths[link*2+1];
1716 if(link==vf->links)return(OV_EINVAL);
1720 ogg_int64_t target=pcm_total+(seconds-time_total)*vf->vi[link].rate;
1740 int link=0;
1750 for(link=vf->links-1;link>=0;link--){
1751 pcm_total-=vf->pcmlengths[link*2+1];
1752 time_total-=ov_time_total(vf,link);
1757 return((double)time_total+(double)(vf->pcm_offset-pcm_total)/vf->vi[link].rate);
1760 /* link: -1) return the vorbis_info struct for the bitstream section
1768 vorbis_info *ov_info(OggVorbis_File *vf,int link){
1770 if(link<0)
1776 if(link>=vf->links)
1779 return vf->vi+link;
1786 vorbis_comment *ov_comment(OggVorbis_File *vf,int link){
1788 if(link<0)
1794 if(link>=vf->links)
1797 return vf->vc+link;
2214 from this link gets dumped, this
2228 /* Guard against cross-link changes; they're perfectly legal */
2275 from this link gets dumped, this
2289 /* Guard against cross-link changes; they're perfectly legal */