• Home
  • Raw
  • Download

Lines Matching refs:vi

124 int vorbis_info_blocksize(vorbis_info *vi,int zo){  in vorbis_info_blocksize()  argument
125 codec_setup_info *ci = (codec_setup_info *)vi->codec_setup; in vorbis_info_blocksize()
130 void vorbis_info_init(vorbis_info *vi){ in vorbis_info_init() argument
131 memset(vi,0,sizeof(*vi)); in vorbis_info_init()
132 vi->codec_setup=(codec_setup_info *)_ogg_calloc(1,sizeof(codec_setup_info)); in vorbis_info_init()
135 void vorbis_info_clear(vorbis_info *vi){ in vorbis_info_clear() argument
136 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in vorbis_info_clear()
174 memset(vi,0,sizeof(*vi)); in vorbis_info_clear()
179 int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_info() argument
180 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in _vorbis_unpack_info()
183 vi->version=oggpack_read(opb,32); in _vorbis_unpack_info()
184 if(vi->version!=0)return(OV_EVERSION); in _vorbis_unpack_info()
186 vi->channels=oggpack_read(opb,8); in _vorbis_unpack_info()
187 vi->rate=oggpack_read(opb,32); in _vorbis_unpack_info()
189 vi->bitrate_upper=oggpack_read(opb,32); in _vorbis_unpack_info()
190 vi->bitrate_nominal=oggpack_read(opb,32); in _vorbis_unpack_info()
191 vi->bitrate_lower=oggpack_read(opb,32); in _vorbis_unpack_info()
197 if(vi->rate>=64000 || ci->blocksizes[1]>4096)goto err_out; in _vorbis_unpack_info()
199 if(vi->rate<64000 && ci->blocksizes[1]>4096)goto err_out; in _vorbis_unpack_info()
202 if(vi->rate<1)goto err_out; in _vorbis_unpack_info()
203 if(vi->channels<1)goto err_out; in _vorbis_unpack_info()
212 vorbis_info_clear(vi); in _vorbis_unpack_info()
251 int _vorbis_unpack_books(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_books() argument
252 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in _vorbis_unpack_books()
283 ci->floor_param[i]=floor1_info_unpack(vi,opb); in _vorbis_unpack_books()
285 ci->floor_param[i]=floor0_info_unpack(vi,opb); in _vorbis_unpack_books()
297 if(res_unpack(ci->residue_param+i,vi,opb))goto err_out; in _vorbis_unpack_books()
308 if(mapping_info_unpack(ci->map_param+i,vi,opb))goto err_out; in _vorbis_unpack_books()
331 vorbis_info_clear(vi); in _vorbis_unpack_books()
340 int vorbis_dsp_headerin(vorbis_info *vi,vorbis_comment *vc,ogg_packet *op){ in vorbis_dsp_headerin() argument
363 if(vi->rate!=0){ in vorbis_dsp_headerin()
368 return(_vorbis_unpack_info(vi,&opb)); in vorbis_dsp_headerin()
371 if(vi->rate==0){ in vorbis_dsp_headerin()
379 if(vi->rate==0 || vc->vendor==NULL){ in vorbis_dsp_headerin()
384 return(_vorbis_unpack_books(vi,&opb)); in vorbis_dsp_headerin()