Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 25 of 64) sorted by relevance

123

/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djchuff.c477 emit_ac_symbol(entropy, entropy->ac_tbl_no, nbits << 4); in emit_eobrun()
479 emit_bits_e(entropy, entropy->EOBRUN, nbits); in emit_eobrun()
484 emit_buffered_bits(entropy, entropy->bit_buffer, entropy->BE); in emit_eobrun()
548 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in encode_mcu_DC_first() local
560 emit_restart_e(entropy, entropy->next_restart_num); in encode_mcu_DC_first()
645 emit_restart_e(entropy, entropy->next_restart_num); in encode_mcu_AC_first()
688 emit_ac_symbol(entropy, entropy->ac_tbl_no, 0xF0); in encode_mcu_AC_first()
751 emit_restart_e(entropy, entropy->next_restart_num); in encode_mcu_DC_refine()
802 emit_restart_e(entropy, entropy->next_restart_num); in encode_mcu_AC_refine()
846 emit_ac_symbol(entropy, entropy->ac_tbl_no, 0xF0); in encode_mcu_AC_refine()
[all …]
A Djcarith.c321 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in emit_restart() local
347 entropy->c = 0; in emit_restart()
349 entropy->sc = 0; in emit_restart()
350 entropy->zc = 0; in emit_restart()
364 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in encode_mcu_DC_first() local
394 st = entropy->dc_stats[tbl] + entropy->dc_context[ci]; in encode_mcu_DC_first()
453 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in encode_mcu_AC_first() local
560 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in encode_mcu_DC_refine() local
595 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in encode_mcu_AC_refine() local
727 st = entropy->dc_stats[tbl] + entropy->dc_context[ci]; in encode_mcu()
[all …]
A Djdarith.c192 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in process_restart() local
216 entropy->c = 0; in process_restart()
217 entropy->a = 0; in process_restart()
244 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in decode_mcu_DC_first() local
269 st = entropy->dc_stats[tbl] + entropy->dc_context[ci]; in decode_mcu_DC_first()
323 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in decode_mcu_AC_first() local
405 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in decode_mcu_DC_refine() local
438 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in decode_mcu_AC_refine() local
513 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in decode_mcu() local
544 st = entropy->dc_stats[tbl] + entropy->dc_context[ci]; in decode_mcu()
[all …]
A Djdhuff.c637 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in finish_pass_huff() local
654 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in process_restart() local
710 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_DC_first() local
781 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_AC_first() local
869 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_DC_refine() local
916 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_AC_refine() local
1073 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_sub() local
1201 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu() local
1324 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in start_pass_huff_decoder() local
1403 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_huff_decoder()
[all …]
/AliOS-Things-master/components/mbedtls/programs/random/
A Dgen_entropy.c71 mbedtls_entropy_context entropy; in main() local
86 mbedtls_entropy_init( &entropy ); in main()
90 ret = mbedtls_entropy_func( &entropy, buf, sizeof( buf ) ); in main()
111 mbedtls_entropy_free( &entropy ); in main()
A Dgen_random_ctr_drbg.c75 mbedtls_entropy_context entropy; in main() local
92 mbedtls_entropy_init( &entropy ); in main()
93 …ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, (const unsigned char *) "R… in main()
144 mbedtls_entropy_free( &entropy ); in main()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Dlossless_enc.c406 entropy->entropy = 0.; in VP8LBitEntropyInit()
407 entropy->sum = 0; in VP8LBitEntropyInit()
408 entropy->nonzeros = 0; in VP8LBitEntropyInit()
409 entropy->max_val = 0; in VP8LBitEntropyInit()
417 VP8LBitEntropyInit(entropy); in VP8LBitsEntropyUnrefined()
421 entropy->sum += array[i]; in VP8LBitsEntropyUnrefined()
422 entropy->nonzero_code = i; in VP8LBitsEntropyUnrefined()
423 ++entropy->nonzeros; in VP8LBitsEntropyUnrefined()
424 entropy->entropy -= VP8LFastSLog2(array[i]); in VP8LBitsEntropyUnrefined()
426 entropy->max_val = array[i]; in VP8LBitsEntropyUnrefined()
[all …]
A Dlossless_enc_mips32.c230 bit_entropy->entropy -= VP8LFastSLog2(*val_prev) * streak; in GetEntropyUnrefinedHelper()
262 bit_entropy->entropy += VP8LFastSLog2(bit_entropy->sum); in GetEntropyUnrefined_MIPS32()
268 VP8LBitEntropy* const entropy, in GetCombinedEntropyUnrefined_MIPS32() argument
275 VP8LBitEntropyInit(entropy); in GetCombinedEntropyUnrefined_MIPS32()
280 GetEntropyUnrefinedHelper(xy, i, &xy_prev, &i_prev, entropy, stats); in GetCombinedEntropyUnrefined_MIPS32()
283 GetEntropyUnrefinedHelper(0, i, &xy_prev, &i_prev, entropy, stats); in GetCombinedEntropyUnrefined_MIPS32()
285 entropy->entropy += VP8LFastSLog2(entropy->sum); in GetCombinedEntropyUnrefined_MIPS32()
/AliOS-Things-master/components/mbedtls/programs/pkey/
A Dpk_encrypt.c83 mbedtls_entropy_context entropy; in main() local
90 mbedtls_entropy_init( &entropy ); in main()
108 &entropy, (const unsigned char *) pers, in main()
174 mbedtls_entropy_free( &entropy ); in main()
A Dpk_sign.c81 mbedtls_entropy_context entropy; in main() local
89 mbedtls_entropy_init( &entropy ); in main()
107 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
173 mbedtls_entropy_free( &entropy ); in main()
A Dpk_decrypt.c83 mbedtls_entropy_context entropy; in main() local
91 mbedtls_entropy_init( &entropy ); in main()
111 &entropy, (const unsigned char *) pers, in main()
170 mbedtls_entropy_free( &entropy ); in main()
A Drsa_sign_pss.c82 mbedtls_entropy_context entropy; in main() local
90 mbedtls_entropy_init( &entropy ); in main()
108 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
183 mbedtls_entropy_free( &entropy ); in main()
A Ddh_genprime.c89 mbedtls_entropy_context entropy; in main() local
99 mbedtls_entropy_init( &entropy ); in main()
136 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
204 mbedtls_entropy_free( &entropy ); in main()
A Drsa_encrypt.c81 mbedtls_entropy_context entropy; in main() local
105 mbedtls_entropy_init( &entropy ); in main()
108 &entropy, (const unsigned char *) pers, in main()
190 mbedtls_entropy_free( &entropy ); in main()
A Decdsa.c120 mbedtls_entropy_context entropy; in main() local
153 mbedtls_entropy_init( &entropy ); in main()
154 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
260 mbedtls_entropy_free( &entropy ); in main()
A Drsa_decrypt.c83 mbedtls_entropy_context entropy; in main() local
108 mbedtls_entropy_init( &entropy ); in main()
114 &entropy, (const unsigned char *) pers, in main()
210 mbedtls_entropy_free( &entropy ); in main()
A Drsa_genkey.c84 mbedtls_entropy_context entropy; in main() local
100 mbedtls_entropy_init( &entropy ); in main()
101 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
193 mbedtls_entropy_free( &entropy ); in main()
A Decdh_curve25519.c73 mbedtls_entropy_context entropy; in main() local
90 mbedtls_entropy_init( &entropy ); in main()
91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
250 mbedtls_entropy_free( &entropy ); in main()
A Ddh_client.c101 mbedtls_entropy_context entropy; in main() local
119 mbedtls_entropy_init( &entropy ); in main()
120 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
314 mbedtls_entropy_free( &entropy ); in main()
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dctr_prng.c118 uint8_t const * const entropy, in tc_ctr_prng_init() argument
140 if ((0 != ctx) && (0 != entropy) && (entropyLen >= sizeof seed_material)) { in tc_ctr_prng_init()
142 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_init()
165 uint8_t const * const entropy, in tc_ctr_prng_reseed() argument
189 memcpy(seed_material, entropy, sizeof seed_material); in tc_ctr_prng_reseed()
/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dmini_client.c190 mbedtls_entropy_context entropy; in main() local
206 mbedtls_entropy_init( &entropy ); in main()
207 if( mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
305 mbedtls_entropy_free( &entropy ); in main()
A Dssl_client1.c105 mbedtls_entropy_context entropy; in main() local
127 mbedtls_entropy_init( &entropy ); in main()
128 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
319 mbedtls_entropy_free( &entropy ); in main()
A Ddtls_client.c116 mbedtls_entropy_context entropy; in main() local
142 mbedtls_entropy_init( &entropy ); in main()
143 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
358 mbedtls_entropy_free( &entropy ); in main()
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/
A Dctr_prng.h102 uint8_t const * const entropy,
127 uint8_t const * const entropy,
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dhistogram_enc.c232 if (entropy->nonzeros < 5) { in BitsEntropyRefine()
233 if (entropy->nonzeros <= 1) { in BitsEntropyRefine()
239 if (entropy->nonzeros == 2) { in BitsEntropyRefine()
240 return 0.99 * entropy->sum + 0.01 * entropy->entropy; in BitsEntropyRefine()
246 if (entropy->nonzeros == 3) { in BitsEntropyRefine()
256 double min_limit = 2 * entropy->sum - entropy->max_val; in BitsEntropyRefine()
257 min_limit = mix * min_limit + (1.0 - mix) * entropy->entropy; in BitsEntropyRefine()
258 return (entropy->entropy < min_limit) ? min_limit : entropy->entropy; in BitsEntropyRefine()
263 VP8LBitEntropy entropy; in VP8LBitsEntropy() local
264 VP8LBitsEntropyUnrefined(array, n, &entropy); in VP8LBitsEntropy()
[all …]

Completed in 41 milliseconds

123