Lines Matching refs:opb
94 static void floor1_pack (vorbis_info_floor *i,oggpack_buffer *opb){ in floor1_pack() argument
103 oggpack_write(opb,info->partitions,5); /* only 0 to 31 legal */ in floor1_pack()
105 oggpack_write(opb,info->partitionclass[j],4); /* only 0 to 15 legal */ in floor1_pack()
111 oggpack_write(opb,info->class_dim[j]-1,3); /* 1 to 8 */ in floor1_pack()
112 oggpack_write(opb,info->class_subs[j],2); /* 0 to 3 */ in floor1_pack()
113 if(info->class_subs[j])oggpack_write(opb,info->class_book[j],8); in floor1_pack()
115 oggpack_write(opb,info->class_subbook[j][k]+1,8); in floor1_pack()
119 oggpack_write(opb,info->mult-1,2); /* only 1,2,3,4 legal now */ in floor1_pack()
120 oggpack_write(opb,ilog2(maxposit),4); in floor1_pack()
126 oggpack_write(opb,info->postlist[k+2],rangebits); in floor1_pack()
134 static vorbis_info_floor *floor1_unpack (vorbis_info *vi,oggpack_buffer *opb){ in floor1_unpack() argument
140 info->partitions=oggpack_read(opb,5); /* only 0 to 31 legal */ in floor1_unpack()
142 info->partitionclass[j]=oggpack_read(opb,4); /* only 0 to 15 legal */ in floor1_unpack()
149 info->class_dim[j]=oggpack_read(opb,3)+1; /* 1 to 8 */ in floor1_unpack()
150 info->class_subs[j]=oggpack_read(opb,2); /* 0,1,2,3 bits */ in floor1_unpack()
153 if(info->class_subs[j])info->class_book[j]=oggpack_read(opb,8); in floor1_unpack()
157 info->class_subbook[j][k]=oggpack_read(opb,8)-1; in floor1_unpack()
164 info->mult=oggpack_read(opb,2)+1; /* only 1,2,3,4 legal now */ in floor1_unpack()
165 rangebits=oggpack_read(opb,4); in floor1_unpack()
171 int t=info->postlist[k+2]=oggpack_read(opb,rangebits); in floor1_unpack()
768 int floor1_encode(oggpack_buffer *opb,vorbis_block *vb, in floor1_encode() argument
850 oggpack_write(opb,1,1); in floor1_encode()
855 oggpack_write(opb,out[0],ilog(look->quant_q-1)); in floor1_encode()
856 oggpack_write(opb,out[1],ilog(look->quant_q-1)); in floor1_encode()
894 vorbis_book_encode(books+info->class_book[class],cval,opb); in floor1_encode()
916 out[j+k],opb); in floor1_encode()
962 oggpack_write(opb,0,1); in floor1_encode()
977 if(oggpack_read(&vb->opb,1)==1){ in floor1_inverse1()
980 fit_value[0]=oggpack_read(&vb->opb,ilog(look->quant_q-1)); in floor1_inverse1()
981 fit_value[1]=oggpack_read(&vb->opb,ilog(look->quant_q-1)); in floor1_inverse1()
993 cval=vorbis_book_decode(books+info->class_book[class],&vb->opb); in floor1_inverse1()
1002 if((fit_value[j+k]=vorbis_book_decode(books+book,&vb->opb))==-1) in floor1_inverse1()