Lines Matching refs:opb
179 int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_info() argument
183 vi->version=oggpack_read(opb,32); 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()
193 ci->blocksizes[0]=1<<oggpack_read(opb,4); in _vorbis_unpack_info()
194 ci->blocksizes[1]=1<<oggpack_read(opb,4); in _vorbis_unpack_info()
208 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ in _vorbis_unpack_info()
216 int _vorbis_unpack_comment(vorbis_comment *vc,oggpack_buffer *opb){ in _vorbis_unpack_comment() argument
218 int vendorlen=oggpack_read(opb,32); in _vorbis_unpack_comment()
222 _v_readstring(opb,vc->vendor,vendorlen); in _vorbis_unpack_comment()
223 vc->comments=oggpack_read(opb,32); in _vorbis_unpack_comment()
234 int len=oggpack_read(opb,32); in _vorbis_unpack_comment()
239 _v_readstring(opb,vc->user_comments[i],len); in _vorbis_unpack_comment()
241 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ in _vorbis_unpack_comment()
251 int _vorbis_unpack_books(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_books() argument
257 ci->books=oggpack_read(opb,8)+1; in _vorbis_unpack_books()
264 if(vorbis_book_unpack(opb,ci->book_param+i))goto err_out; in _vorbis_unpack_books()
267 i=oggpack_read(opb,6); in _vorbis_unpack_books()
269 if(oggpack_read(opb,16)!=0)goto err_out; in _vorbis_unpack_books()
272 ci->floors=oggpack_read(opb,6)+1; in _vorbis_unpack_books()
280 ci->floor_type[i]=(char)oggpack_read(opb,16); 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()
290 ci->residues=oggpack_read(opb,6)+1; in _vorbis_unpack_books()
297 if(res_unpack(ci->residue_param+i,vi,opb))goto err_out; in _vorbis_unpack_books()
300 ci->maps=oggpack_read(opb,6)+1; in _vorbis_unpack_books()
307 if(oggpack_read(opb,16)!=0)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()
312 ci->modes=oggpack_read(opb,6)+1; in _vorbis_unpack_books()
320 ci->mode_param[i].blockflag=(unsigned char)oggpack_read(opb,1); in _vorbis_unpack_books()
321 if(oggpack_read(opb,16))goto err_out; in _vorbis_unpack_books()
322 if(oggpack_read(opb,16))goto err_out; in _vorbis_unpack_books()
323 ci->mode_param[i].mapping=(unsigned char)oggpack_read(opb,8); in _vorbis_unpack_books()
327 if(oggpack_read(opb,1)!=1)goto err_out; /* top level EOP check */ in _vorbis_unpack_books()
341 oggpack_buffer opb; in vorbis_dsp_headerin() local
344 oggpack_readinit(&opb,op->packet); in vorbis_dsp_headerin()
350 int packtype=oggpack_read(&opb,8); in vorbis_dsp_headerin()
352 _v_readstring(&opb,buffer,6); in vorbis_dsp_headerin()
368 return(_vorbis_unpack_info(vi,&opb)); in vorbis_dsp_headerin()
376 return(_vorbis_unpack_comment(vc,&opb)); in vorbis_dsp_headerin()
384 return(_vorbis_unpack_books(vi,&opb)); in vorbis_dsp_headerin()