• Home
  • Raw
  • Download

Lines Matching full:enc

54   ec_enc         enc;  in main()  local
83 ec_enc_init(&enc,ptr, DATA_SIZE); in main()
87 ec_enc_uint(&enc,i,ft); in main()
94 nbits=ec_tell(&enc); in main()
95 ec_enc_bits(&enc,i,ftb); in main()
96 nbits2=ec_tell(&enc); in main()
104 nbits=ec_tell_frac(&enc); in main()
105 ec_enc_done(&enc); in main()
109 fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc)); in main()
142 ec_enc_init(&enc,ptr,2); in main()
144 ec_enc_bits(&enc,0x55,7); in main()
146 ec_enc_uint(&enc,1,2); in main()
147 ec_enc_uint(&enc,1,3); in main()
148 ec_enc_uint(&enc,1,4); in main()
149 ec_enc_uint(&enc,1,5); in main()
150 ec_enc_uint(&enc,2,6); in main()
151 ec_enc_uint(&enc,6,7); in main()
152 ec_enc_done(&enc); in main()
154 if(!enc.error in main()
179 ec_enc_init(&enc,ptr,DATA_SIZE2); in main()
181 tell[0]=ec_tell_frac(&enc); in main()
187 ec_enc_uint(&enc,data[j],ft); in main()
188 tell[j+1]=ec_tell_frac(&enc); in main()
191 while(ec_tell(&enc)%8 != 0) in main()
192 ec_enc_uint(&enc, rand()%2, 2); in main()
193 tell_bits = ec_tell(&enc); in main()
194 ec_enc_done(&enc); in main()
195 if(tell_bits!=(unsigned)ec_tell(&enc)){ in main()
197 ec_tell(&enc),tell_bits,seed); in main()
200 if ((tell_bits+7)/8 < ec_range_bytes(&enc)) in main()
203 ec_range_bytes(&enc), (tell_bits+7)/8,seed); in main()
241 ec_enc_init(&enc,ptr,DATA_SIZE2); in main()
242 tell[0]=ec_tell_frac(&enc); in main()
249 ec_encode(&enc,data[j]?(1<<logp1[j])-1:0, in main()
253 ec_encode_bin(&enc,data[j]?(1<<logp1[j])-1:0, in main()
257 ec_enc_bit_logp(&enc,data[j],logp1[j]); in main()
263 ec_enc_icdf(&enc,data[j],icdf,logp1[j]); in main()
266 tell[j+1]=ec_tell_frac(&enc); in main()
268 ec_enc_done(&enc); in main()
269 if((ec_tell(&enc)+7U)/8U<ec_range_bytes(&enc)){ in main()
271 ec_range_bytes(&enc),(ec_tell(&enc)+7)/8,seed); in main()
326 ec_enc_init(&enc,ptr,DATA_SIZE2); in main()
327 ec_enc_bit_logp(&enc,0,1); in main()
328 ec_enc_bit_logp(&enc,0,1); in main()
329 ec_enc_bit_logp(&enc,0,1); in main()
330 ec_enc_bit_logp(&enc,0,1); in main()
331 ec_enc_bit_logp(&enc,0,2); in main()
332 ec_enc_patch_initial_bits(&enc,3,2); in main()
333 if(enc.error){ in main()
337 ec_enc_patch_initial_bits(&enc,0,5); in main()
338 if(!enc.error){ in main()
342 ec_enc_done(&enc); in main()
343 if(ec_range_bytes(&enc)!=1||ptr[0]!=192){ in main()
347 ec_enc_init(&enc,ptr,DATA_SIZE2); in main()
348 ec_enc_bit_logp(&enc,0,1); in main()
349 ec_enc_bit_logp(&enc,0,1); in main()
350 ec_enc_bit_logp(&enc,1,6); in main()
351 ec_enc_bit_logp(&enc,0,2); in main()
352 ec_enc_patch_initial_bits(&enc,0,2); in main()
353 if(enc.error){ in main()
357 ec_enc_done(&enc); in main()
358 if(ec_range_bytes(&enc)!=2||ptr[0]!=63){ in main()
362 ec_enc_init(&enc,ptr,2); in main()
363 ec_enc_bit_logp(&enc,0,2); in main()
365 ec_enc_bits(&enc,0,1); in main()
367 ec_enc_done(&enc); in main()
368 if(!enc.error){ in main()
372 ec_enc_init(&enc,ptr,2); in main()
374 ec_enc_bits(&enc,0,1); in main()
376 ec_enc_done(&enc); in main()
377 if(!enc.error){ in main()