Home
last modified time | relevance | path

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

12345678910

/external/pdfium/third_party/libjpeg/
Dfpdfapi_jcphuff.c108 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; in start_pass_phuff() local
113 entropy->cinfo = cinfo; in start_pass_phuff()
114 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
123 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
125 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
128 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
130 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
132 if (entropy->bit_buffer == NULL) in start_pass_phuff()
133 entropy->bit_buffer = (char *) in start_pass_phuff()
139 entropy->pub.finish_pass = finish_pass_gather_phuff; in start_pass_phuff()
[all …]
Dfpdfapi_jdphuff.c94 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; in start_pass_phuff_decoder() local
151 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
153 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
156 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
158 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
170 & entropy->derived_tbls[tbl]); in start_pass_phuff_decoder()
175 & entropy->derived_tbls[tbl]); in start_pass_phuff_decoder()
177 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
180 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
184 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Dfpdfapi_jdhuff.c91 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in start_pass_huff_decoder() local
110 & entropy->dc_derived_tbls[dctbl]); in start_pass_huff_decoder()
112 & entropy->ac_derived_tbls[actbl]); in start_pass_huff_decoder()
114 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
122 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
123 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
126 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
128 entropy->ac_needed[blkn] = (compptr->DCT_scaled_size > 1); in start_pass_huff_decoder()
130 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
135 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Dfpdfapi_jchuff.c111 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in start_pass_huff() local
117 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
118 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
123 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
124 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
141 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
142 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
145 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * SIZEOF(long)); in start_pass_huff()
146 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
147 entropy->ac_count_ptrs[actbl] = (long *) in start_pass_huff()
[all …]
/external/libjpeg-turbo/
Djcphuff.c110 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; in start_pass_phuff() local
115 entropy->cinfo = cinfo; in start_pass_phuff()
116 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
125 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
127 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
130 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
132 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
134 if (entropy->bit_buffer == NULL) in start_pass_phuff()
135 entropy->bit_buffer = (char *) in start_pass_phuff()
141 entropy->pub.finish_pass = finish_pass_gather_phuff; in start_pass_phuff()
[all …]
Djcarith.c137 arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in finish_pass()
223 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in arith_encode()
323 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in emit_restart() local
337 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart()
339 entropy->last_dc_val[ci] = 0; in emit_restart()
340 entropy->dc_context[ci] = 0; in emit_restart()
344 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
349 entropy->c = 0; in emit_restart()
350 entropy->a = 0x10000L; in emit_restart()
351 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c110 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in arith_decode()
194 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in process_restart() local
206 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart()
208 entropy->last_dc_val[ci] = 0; in process_restart()
209 entropy->dc_context[ci] = 0; in process_restart()
212 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart()
217 entropy->c = 0; in process_restart()
218 entropy->a = 0; in process_restart()
219 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
222 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdphuff.c96 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; in start_pass_phuff_decoder() local
154 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
156 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
159 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
161 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
172 pdtbl = entropy->derived_tbls + tbl; in start_pass_phuff_decoder()
177 pdtbl = entropy->derived_tbls + tbl; in start_pass_phuff_decoder()
180 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
183 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
187 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Djdhuff.c92 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in start_pass_huff_decoder() local
111 pdtbl = entropy->dc_derived_tbls + dctbl; in start_pass_huff_decoder()
113 pdtbl = entropy->ac_derived_tbls + actbl; in start_pass_huff_decoder()
116 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
124 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
125 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
128 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
130 entropy->ac_needed[blkn] = (compptr->_DCT_scaled_size > 1); in start_pass_huff_decoder()
132 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
137 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Djchuff.c144 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in start_pass_huff() local
150 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
151 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
156 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
157 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
174 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
175 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
178 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * sizeof(long)); in start_pass_huff()
179 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
180 entropy->ac_count_ptrs[actbl] = (long *) in start_pass_huff()
[all …]
/external/opencv3/3rdparty/libjpeg/
Djchuff.c262 #define emit_byte_e(entropy,val) \ argument
263 { *(entropy)->next_output_byte++ = (JOCTET) (val); \
264 if (--(entropy)->free_in_buffer == 0) \
265 dump_buffer_e(entropy); }
284 dump_buffer_e (huff_entropy_ptr entropy) in dump_buffer_e() argument
287 struct jpeg_destination_mgr * dest = entropy->cinfo->dest; in dump_buffer_e()
289 if (! (*dest->empty_output_buffer) (entropy->cinfo)) in dump_buffer_e()
290 ERREXIT(entropy->cinfo, JERR_CANT_SUSPEND); in dump_buffer_e()
292 entropy->next_output_byte = dest->next_output_byte; in dump_buffer_e()
293 entropy->free_in_buffer = dest->free_in_buffer; in dump_buffer_e()
[all …]
Djcarith.c135 arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in finish_pass()
221 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in arith_encode()
321 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in emit_restart() local
335 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart()
337 entropy->last_dc_val[ci] = 0; in emit_restart()
338 entropy->dc_context[ci] = 0; in emit_restart()
342 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
347 entropy->c = 0; in emit_restart()
348 entropy->a = 0x10000L; in emit_restart()
349 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c108 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in arith_decode()
192 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; in process_restart() local
204 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart()
206 entropy->last_dc_val[ci] = 0; in process_restart()
207 entropy->dc_context[ci] = 0; in process_restart()
211 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart()
216 entropy->c = 0; in process_restart()
217 entropy->a = 0; in process_restart()
218 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
221 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdhuff.c545 if (! ((huff_entropy_ptr) cinfo->entropy)->insufficient_data) { in jpeg_fill_bit_buffer()
547 ((huff_entropy_ptr) cinfo->entropy)->insufficient_data = TRUE; in jpeg_fill_bit_buffer()
638 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in process_restart() local
643 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8; in process_restart()
644 entropy->bitstate.bits_left = 0; in process_restart()
652 entropy->saved.last_dc_val[ci] = 0; in process_restart()
654 entropy->saved.EOBRUN = 0; in process_restart()
657 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
665 entropy->insufficient_data = FALSE; in process_restart()
697 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; in decode_mcu_DC_first() local
[all …]
/external/tpm2/
DCpriRNG.c32 BYTE entropy[MAX_RNG_ENTROPY_SIZE]; in _cpri__RngStartup() local
42 returnedSize = _plat__GetEntropy(&entropy[entropySize], in _cpri__RngStartup()
49 RAND_seed(entropy, entropySize); in _cpri__RngStartup()
89 BYTE *entropy in _cpri__StirRandom() argument
94 RAND_add((const void *)entropy, (int) entropySize, 0.0); in _cpri__StirRandom()
DEntropy.c40 unsigned char *entropy, // output buffer in _plat__GetEntropy() argument
60 memcpy(entropy, &rndNum, amount); in _plat__GetEntropy()
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Dsecurity.py39 def generate_random_string(length=None, entropy=None, pool=ALPHANUMERIC): argument
85 if length and entropy:
88 if length <= 0 and entropy <= 0:
91 if entropy:
93 length = long(math.ceil((log_of_2 / math.log(len(pool))) * entropy))
/external/webp/src/dsp/
Dlossless_enc.c436 void VP8LBitEntropyInit(VP8LBitEntropy* const entropy) { in VP8LBitEntropyInit() argument
437 entropy->entropy = 0.; in VP8LBitEntropyInit()
438 entropy->sum = 0; in VP8LBitEntropyInit()
439 entropy->nonzeros = 0; in VP8LBitEntropyInit()
440 entropy->max_val = 0; in VP8LBitEntropyInit()
441 entropy->nonzero_code = VP8L_NON_TRIVIAL_SYM; in VP8LBitEntropyInit()
445 VP8LBitEntropy* const entropy) { in VP8LBitsEntropyUnrefined() argument
448 VP8LBitEntropyInit(entropy); in VP8LBitsEntropyUnrefined()
452 entropy->sum += array[i]; in VP8LBitsEntropyUnrefined()
453 entropy->nonzero_code = i; in VP8LBitsEntropyUnrefined()
[all …]
/external/wpa_supplicant_8/src/crypto/
Drandom.c60 static unsigned int entropy = 0; variable
132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { in random_add_randomness()
140 count, entropy); in random_add_randomness()
149 entropy++; in random_add_randomness()
161 (unsigned int) len, entropy); in random_get_bytes()
205 if (entropy < len) in random_get_bytes()
206 entropy = 0; in random_get_bytes()
208 entropy -= len; in random_get_bytes()
/external/webp/src/enc/
Dhistogram.c162 static WEBP_INLINE double BitsEntropyRefine(const VP8LBitEntropy* entropy) { in BitsEntropyRefine() argument
164 if (entropy->nonzeros < 5) { in BitsEntropyRefine()
165 if (entropy->nonzeros <= 1) { in BitsEntropyRefine()
171 if (entropy->nonzeros == 2) { in BitsEntropyRefine()
172 return 0.99 * entropy->sum + 0.01 * entropy->entropy; in BitsEntropyRefine()
178 if (entropy->nonzeros == 3) { in BitsEntropyRefine()
188 double min_limit = 2 * entropy->sum - entropy->max_val; in BitsEntropyRefine()
189 min_limit = mix * min_limit + (1.0 - mix) * entropy->entropy; in BitsEntropyRefine()
190 return (entropy->entropy < min_limit) ? min_limit : entropy->entropy; in BitsEntropyRefine()
196 VP8LBitEntropy entropy; in VP8LBitsEntropy() local
[all …]
/external/libevent/
Darc4random.c260 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local
270 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
275 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid()
277 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid()
284 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid()
287 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
/external/curl/lib/
Dcurl_ntlm_msgs.c538 unsigned int entropy[2]; in Curl_sasl_create_ntlm_type3_message() local
541 entropy[0] = Curl_rand(data); in Curl_sasl_create_ntlm_type3_message()
542 entropy[1] = Curl_rand(data); in Curl_sasl_create_ntlm_type3_message()
555 (unsigned char *)&entropy[0], in Curl_sasl_create_ntlm_type3_message()
562 (unsigned char *)&entropy[0], in Curl_sasl_create_ntlm_type3_message()
578 unsigned int entropy[2]; in Curl_sasl_create_ntlm_type3_message() local
581 entropy[0] = Curl_rand(data); in Curl_sasl_create_ntlm_type3_message()
582 entropy[1] = Curl_rand(data); in Curl_sasl_create_ntlm_type3_message()
585 memcpy(lmresp, entropy, 8); in Curl_sasl_create_ntlm_type3_message()
592 memcpy(tmp + 8, entropy, 8); in Curl_sasl_create_ntlm_type3_message()
/external/tlsdate/src/events/
Dkickoff_time_sync.c27 static entropy_context entropy; variable
41 entropy_init(&entropy); in add_jitter()
42 if (0 > ctr_drbg_init(&ctr_drbg, entropy_func, &entropy, in add_jitter()
/external/libopus/celt/tests/
Dtest_unit_entropy.c57 double entropy; in main() local
68 entropy=0; in main()
85 entropy+=log(ft)*M_LOG2E; in main()
92 entropy+=ftb; in main()
107 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits); in main()
/external/boringssl/src/include/openssl/
Drand.h79 OPENSSL_EXPORT void RAND_add(const void *buf, int num, double entropy);
97 void (*add) (const void *buf, int num, double entropy);

12345678910