Home
last modified time | relevance | path

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

12345678910>>...14

/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djcphuff.c200 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff() local
205 entropy->cinfo = cinfo; in start_pass_phuff()
206 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
215 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
217 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
219 entropy->AC_first_prepare = jsimd_encode_mcu_AC_first_prepare; in start_pass_phuff()
221 entropy->AC_first_prepare = encode_mcu_AC_first_prepare; in start_pass_phuff()
224 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
226 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
228 entropy->AC_refine_prepare = jsimd_encode_mcu_AC_refine_prepare; in start_pass_phuff()
[all …]
Djcarith.c141 arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in finish_pass()
227 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_encode()
327 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in emit_restart() local
341 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart()
343 entropy->last_dc_val[ci] = 0; in emit_restart()
344 entropy->dc_context[ci] = 0; in emit_restart()
348 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
353 entropy->c = 0; in emit_restart()
354 entropy->a = 0x10000L; in emit_restart()
355 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c117 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_decode()
201 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in process_restart() local
213 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart()
215 entropy->last_dc_val[ci] = 0; in process_restart()
216 entropy->dc_context[ci] = 0; in process_restart()
219 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart()
224 entropy->c = 0; in process_restart()
225 entropy->a = 0; in process_restart()
226 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
229 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdphuff.c101 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local
159 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
161 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
164 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
166 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
177 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
182 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
185 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
188 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
192 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Djdhuff.c96 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local
115 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder()
117 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder()
120 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
128 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
129 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
132 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
134 entropy->ac_needed[blkn] = (compptr->_DCT_scaled_size > 1); in start_pass_huff_decoder()
136 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
141 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Djchuff.c148 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff() local
154 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
155 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
160 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
161 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
164 entropy->simd = jsimd_can_huff_encode_one_block(); in start_pass_huff()
180 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
181 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
184 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * sizeof(long)); in start_pass_huff()
185 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Djcphuff.c207 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff() local
212 entropy->cinfo = cinfo; in start_pass_phuff()
213 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
222 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
224 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
226 entropy->AC_first_prepare = jsimd_encode_mcu_AC_first_prepare; in start_pass_phuff()
228 entropy->AC_first_prepare = encode_mcu_AC_first_prepare; in start_pass_phuff()
231 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
233 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
235 entropy->AC_refine_prepare = jsimd_encode_mcu_AC_refine_prepare; in start_pass_phuff()
[all …]
Djcarith.c141 arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in finish_pass()
227 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_encode()
327 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in emit_restart() local
341 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart()
343 entropy->last_dc_val[ci] = 0; in emit_restart()
344 entropy->dc_context[ci] = 0; in emit_restart()
348 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
353 entropy->c = 0; in emit_restart()
354 entropy->a = 0x10000L; in emit_restart()
355 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c117 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_decode()
201 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in process_restart() local
213 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart()
215 entropy->last_dc_val[ci] = 0; in process_restart()
216 entropy->dc_context[ci] = 0; in process_restart()
219 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart()
224 entropy->c = 0; in process_restart()
225 entropy->a = 0; in process_restart()
226 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
229 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdphuff.c82 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local
147 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
149 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
152 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
154 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
165 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
170 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
173 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
176 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
180 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Djdhuff.c79 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local
98 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder()
100 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder()
103 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
111 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
112 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
115 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
117 entropy->ac_needed[blkn] = (compptr->_DCT_scaled_size > 1); in start_pass_huff_decoder()
119 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
124 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Djchuff.c166 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff() local
172 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
173 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
178 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
179 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
182 entropy->simd = jsimd_can_huff_encode_one_block(); in start_pass_huff()
198 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
199 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
202 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * sizeof(long)); in start_pass_huff()
203 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
[all …]
/third_party/libjpeg-turbo/
Djcphuff.c200 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff() local
205 entropy->cinfo = cinfo; in start_pass_phuff()
206 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
215 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
217 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
219 entropy->AC_first_prepare = jsimd_encode_mcu_AC_first_prepare; in start_pass_phuff()
221 entropy->AC_first_prepare = encode_mcu_AC_first_prepare; in start_pass_phuff()
224 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
226 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
228 entropy->AC_refine_prepare = jsimd_encode_mcu_AC_refine_prepare; in start_pass_phuff()
[all …]
Djcarith.c141 arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in finish_pass()
227 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_encode()
327 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in emit_restart() local
341 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart()
343 entropy->last_dc_val[ci] = 0; in emit_restart()
344 entropy->dc_context[ci] = 0; in emit_restart()
348 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
353 entropy->c = 0; in emit_restart()
354 entropy->a = 0x10000L; in emit_restart()
355 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c117 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_decode()
201 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in process_restart() local
213 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart()
215 entropy->last_dc_val[ci] = 0; in process_restart()
216 entropy->dc_context[ci] = 0; in process_restart()
219 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart()
224 entropy->c = 0; in process_restart()
225 entropy->a = 0; in process_restart()
226 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
229 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdphuff.c101 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local
159 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
161 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
164 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
166 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
177 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
182 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
185 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
188 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
192 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Djdhuff.c96 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local
115 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder()
117 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder()
120 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
128 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
129 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
132 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
134 entropy->ac_needed[blkn] = (compptr->_DCT_scaled_size > 1); in start_pass_huff_decoder()
136 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
141 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Djchuff.c148 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff() local
154 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
155 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
160 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
161 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
164 entropy->simd = jsimd_can_huff_encode_one_block(); in start_pass_huff()
180 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
181 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
184 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * sizeof(long)); in start_pass_huff()
185 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_ctr_drbg.function2 #include "mbedtls/entropy.h"
28 int entropy_len_arg, data_t * entropy,
43 test_max_idx = entropy->len;
45 /* CTR_DRBG_Instantiate(entropy[:entropy->len], nonce, perso, <ignored>)
51 mbedtls_test_entropy_func, entropy->x,
60 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],
77 /* CTR_DRBG_Reseed(entropy[idx:idx+entropy->len],
138 void ctr_drbg_validate_no_reseed( data_t * add_init, data_t * entropy,
144 entropy->len, entropy,
152 void ctr_drbg_validate_pr( data_t * add_init, data_t * entropy,
[all …]
Dtest_suite_random.function8 #include "mbedtls/entropy.h"
24 mbedtls_entropy_context entropy;
30 mbedtls_entropy_init( &entropy );
33 mbedtls_entropy_func, &entropy,
38 mbedtls_entropy_free( &entropy );
41 mbedtls_entropy_init( &entropy );
44 mbedtls_entropy_func, &entropy,
49 mbedtls_entropy_free( &entropy );
56 mbedtls_entropy_free( &entropy );
63 mbedtls_entropy_context entropy;
[all …]
Dtest_suite_hmac_drbg.function39 entropy_ctx entropy;
48 entropy.len = sizeof( buf );
49 entropy.p = buf;
63 /* Init must use entropy */
64 TEST_ASSERT( mbedtls_hmac_drbg_seed( &ctx, md_info, mbedtls_test_entropy_func, &entropy,
66 /* default_entropy_len of entropy, plus half as much for the nonce */
68 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
71 * 2 * reps so the next few calls should not use entropy */
78 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
89 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
[all …]
Dtest_suite_psa_crypto_init.data25 Custom entropy sources: all standard
28 Custom entropy sources: none
31 Fake entropy: never returns anything
34 Fake entropy: less than the block size
37 Fake entropy: not enough for a nonce
41 Fake entropy: one block eventually
45 Fake entropy: one block in two steps
49 Fake entropy: more than one block in two steps
53 Fake entropy: two blocks eventually
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dlossless_enc.c424 void VP8LBitEntropyInit(VP8LBitEntropy* const entropy) { in VP8LBitEntropyInit() argument
425 entropy->entropy = 0.; in VP8LBitEntropyInit()
426 entropy->sum = 0; in VP8LBitEntropyInit()
427 entropy->nonzeros = 0; in VP8LBitEntropyInit()
428 entropy->max_val = 0; in VP8LBitEntropyInit()
429 entropy->nonzero_code = VP8L_NON_TRIVIAL_SYM; in VP8LBitEntropyInit()
433 VP8LBitEntropy* const entropy) { in VP8LBitsEntropyUnrefined() argument
436 VP8LBitEntropyInit(entropy); in VP8LBitsEntropyUnrefined()
440 entropy->sum += array[i]; in VP8LBitsEntropyUnrefined()
441 entropy->nonzero_code = i; in VP8LBitsEntropyUnrefined()
[all …]
/third_party/openssl/crypto/rand/
Drand_lib.c131 int entropy, size_t min_len, size_t max_len, in rand_drbg_get_entropy() argument
149 pool->entropy_requested = entropy; in rand_drbg_get_entropy()
151 pool = rand_pool_new(entropy, drbg->secure, min_len, max_len); in rand_drbg_get_entropy()
232 int entropy, size_t min_len, size_t max_len) in rand_drbg_get_nonce() argument
481 size_t entropy) in rand_pool_attach() argument
501 pool->entropy = entropy; in rand_pool_attach()
543 return pool->entropy; in rand_pool_entropy()
564 pool->entropy = 0; in rand_pool_detach()
597 if (pool->entropy < pool->entropy_requested) in rand_pool_entropy_available()
603 return pool->entropy; in rand_pool_entropy_available()
[all …]
/third_party/openssl/test/
Ddrbg_cavs_test.c26 const unsigned char *entropy; member
35 int entropy, size_t min_len, size_t max_len, in kat_entropy() argument
41 *pout = (unsigned char *)t->entropy; in kat_entropy()
46 int entropy, size_t min_len, size_t max_len) in kat_nonce() argument
86 t.entropy = data->entropyin; in single_kat_no_reseed()
145 t.entropy = data->entropyin; in single_kat_pr_false()
158 t.entropy = data->entropyinreseed; in single_kat_pr_false()
211 t.entropy = data->entropyin; in single_kat_pr_true()
222 t.entropy = data->entropyinpr1; in single_kat_pr_true()
229 t.entropy = data->entropyinpr2; in single_kat_pr_true()

12345678910>>...14