Lines Matching defs:opb
179 int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){
183 vi->version=oggpack_read(opb,32);
186 vi->channels=oggpack_read(opb,8);
187 vi->rate=oggpack_read(opb,32);
189 vi->bitrate_upper=oggpack_read(opb,32);
190 vi->bitrate_nominal=oggpack_read(opb,32);
191 vi->bitrate_lower=oggpack_read(opb,32);
193 ci->blocksizes[0]=1<<oggpack_read(opb,4);
194 ci->blocksizes[1]=1<<oggpack_read(opb,4);
208 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */
216 int _vorbis_unpack_comment(vorbis_comment *vc,oggpack_buffer *opb){
218 int vendorlen=oggpack_read(opb,32);
222 _v_readstring(opb,vc->vendor,vendorlen);
223 vc->comments=oggpack_read(opb,32);
234 int len=oggpack_read(opb,32);
239 _v_readstring(opb,vc->user_comments[i],len);
241 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */
251 int _vorbis_unpack_books(vorbis_info *vi,oggpack_buffer *opb){
257 ci->books=oggpack_read(opb,8)+1;
264 if(vorbis_book_unpack(opb,ci->book_param+i))goto err_out;
267 i=oggpack_read(opb,6);
269 if(oggpack_read(opb,16)!=0)goto err_out;
272 ci->floors=oggpack_read(opb,6)+1;
280 ci->floor_type[i]=(char)oggpack_read(opb,16);
283 ci->floor_param[i]=floor1_info_unpack(vi,opb);
285 ci->floor_param[i]=floor0_info_unpack(vi,opb);
290 ci->residues=oggpack_read(opb,6)+1;
297 if(res_unpack(ci->residue_param+i,vi,opb))goto err_out;
300 ci->maps=oggpack_read(opb,6)+1;
307 if(oggpack_read(opb,16)!=0)goto err_out;
308 if(mapping_info_unpack(ci->map_param+i,vi,opb))goto err_out;
312 ci->modes=oggpack_read(opb,6)+1;
320 ci->mode_param[i].blockflag=(unsigned char)oggpack_read(opb,1);
321 if(oggpack_read(opb,16))goto err_out;
322 if(oggpack_read(opb,16))goto err_out;
323 ci->mode_param[i].mapping=(unsigned char)oggpack_read(opb,8);
327 if(oggpack_read(opb,1)!=1)goto err_out; /* top level EOP check */
341 oggpack_buffer opb;
344 oggpack_readinit(&opb,op->packet);
350 int packtype=oggpack_read(&opb,8);
352 _v_readstring(&opb,buffer,6);
368 return(_vorbis_unpack_info(vi,&opb));
376 return(_vorbis_unpack_comment(vc,&opb));
384 return(_vorbis_unpack_books(vi,&opb));