/third_party/ffmpeg/libavfilter/ |
H A D | vf_bm3d.c | 92 int block_size; member 117 int y, int x, int block_size, float *dst); 135 OFFSET(block_size), AV_OPT_TYPE_INT, {.i64=4}, 4, 6, FLAGS }, 230 const int block_size = s->block_size; in do_block_ssd() local 234 for (y = 0; y < block_size; y++) { in do_block_ssd() 235 for (x = 0; x < block_size; x++) { in do_block_ssd() 251 const int block_size = s->block_size; in do_block_ssd16() local 255 for (y = 0; y < block_size; in do_block_ssd16() 312 const int block_size = s->block_size; block_matching_multi() local 363 get_block_row(const uint8_t *srcp, int src_linesize, int y, int x, int block_size, float *dst) get_block_row() argument 374 get_block_row16(const uint8_t *srcp, int src_linesize, int y, int x, int block_size, float *dst) get_block_row16() argument 392 const int block_size = s->block_size; basic_block_filtering() local 511 const int block_size = s->block_size; final_block_filtering() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
H A D | fallocate04.c | 23 static size_t block_size; variable 38 block_size = file_stat.st_blksize; in get_blocksize() 39 buf_size = NUM_OF_BLOCKS * block_size; in get_blocksize() 59 memset(buf + i * block_size, 'a' + i, block_size); in fill_tst_buf() 107 block_size, block_size) == -1) { in test02() 118 if (ret != (ssize_t)block_size) { in test02() 134 if ((alloc_size0 - block_size) != alloc_size1) in test02() 140 memset(exp_buf + block_size, in test02() [all...] |
H A D | fallocate03.c | 135 int block_size; variable 185 "fstat failed while getting block_size"); in get_blocksize() 187 block_size = (int)file_stat.st_blksize; in get_blocksize() 188 buf_size = block_size; in get_blocksize() 196 offset *= block_size; in file_seek() 243 test_data[test_index].offset * block_size, in main() 244 test_data[test_index].len * block_size)); in main() 258 block_size, in main() 260 block_size); in main() 268 block_size, in main() [all...] |
/third_party/fsverity-utils/lib/ |
H A D | compute_digest.c | 29 u32 block_size, const u8 *salt, u32 salt_size) in hash_one_block() 33 /* Zero-pad the block if it's shorter than block_size. */ in hash_one_block() 34 memset(&cur->data[cur->filled], 0, block_size - cur->filled); in hash_one_block() 38 libfsverity_hash_update(hash, cur->data, block_size); in hash_one_block() 45 static bool block_is_full(const struct block_buffer *block, u32 block_size, in block_is_full() argument 49 return block->filled + hash->alg->digest_size > block_size; in block_is_full() 68 u32 block_size, u64 *level_offset) in report_merkle_tree_block() 73 block_size, in report_merkle_tree_block() 74 *level_offset * block_size); in report_merkle_tree_block() 105 u32 block_size, cons in compute_root_hash() 28 hash_one_block(struct hash_ctx *hash, struct block_buffer *cur, u32 block_size, const u8 *salt, u32 salt_size) hash_one_block() argument 66 report_merkle_tree_block(const struct libfsverity_metadata_callbacks *cbs, const struct block_buffer *block, u32 block_size, u64 *level_offset) report_merkle_tree_block() argument 103 compute_root_hash(void *fd, libfsverity_read_fn_t read_fn, u64 file_size, struct hash_ctx *hash, u32 block_size, const u8 *salt, u32 salt_size, const struct libfsverity_metadata_callbacks *metadata_cbs, u8 *root_hash) compute_root_hash() argument 240 u32 block_size; libfsverity_compute_digest() local [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_blocks_output_buffer.h | 107 Py_ssize_t block_size; in _BlocksOutputBuffer_InitAndGrow() local 114 block_size = max_length; in _BlocksOutputBuffer_InitAndGrow() 116 block_size = BUFFER_BLOCK_SIZE[0]; in _BlocksOutputBuffer_InitAndGrow() 120 b = PyBytes_FromStringAndSize(NULL, block_size); in _BlocksOutputBuffer_InitAndGrow() 134 buffer->allocated = block_size; in _BlocksOutputBuffer_InitAndGrow() 138 return block_size; in _BlocksOutputBuffer_InitAndGrow() 194 Py_ssize_t block_size; in _BlocksOutputBuffer_Grow() local 205 block_size = BUFFER_BLOCK_SIZE[list_len]; in _BlocksOutputBuffer_Grow() 207 block_size = BUFFER_BLOCK_SIZE[Py_ARRAY_LENGTH(BUFFER_BLOCK_SIZE) - 1]; in _BlocksOutputBuffer_Grow() 216 // block_size o in _BlocksOutputBuffer_Grow() [all...] |
/third_party/ffmpeg/tests/checkasm/ |
H A D | hevc_idct.c | 46 int block_size = 1 << i; in check_idct() local 47 int size = block_size * block_size; in check_idct() 48 int col_limit = block_size; in check_idct() 53 if (check_func(h.idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { in check_idct() 70 int block_size = 1 << i; in check_idct_dc() local 71 int size = block_size * block_size; in check_idct_dc() 77 if (check_func(h.idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_siz in check_idct_dc() [all...] |
H A D | hevc_sao.c | 80 int block_size = sao_size[i]; in check_sao_band() local 86 if (check_func(h.sao_band_filter[i], "hevc_sao_band_%d_%d", block_size, bit_depth)) { in check_sao_band() 88 for (int w = prev_size + 4; w <= block_size; w += 4) { in check_sao_band() 94 call_ref(dst0, src0, stride, stride, offset_val, left_class, w, block_size); in check_sao_band() 95 call_new(dst1, src1, stride, stride, offset_val, left_class, w, block_size); in check_sao_band() 96 for (int j = 0; j < block_size; j++) { in check_sao_band() 101 bench_new(dst1, src1, stride, stride, offset_val, left_class, block_size, block_size); in check_sao_band() 117 int block_size = sao_size[i]; in check_sao_edge() local 124 for (int w = prev_size + 4; w <= block_size; in check_sao_edge() [all...] |
H A D | hevc_add_res.c | 74 int block_size = 1 << i; in check_add_res() local 75 int size = block_size * block_size; in check_add_res() 76 ptrdiff_t stride = block_size << (bit_depth > 8); in check_add_res() 78 if (check_func(h.add_residual[i - 2], "hevc_add_res_%dx%d_%d", block_size, block_size, bit_depth)) { in check_add_res()
|
/third_party/fsverity-utils/programs/ |
H A D | test_compute_digest.c | 50 u32 block_size; member 58 .block_size = 4096, 66 .block_size = 4096, 74 .block_size = 4096, 82 .block_size = 4096, 90 .block_size = 4096, 98 .block_size = 4096, 107 .block_size = 4096, 116 .block_size = 1024, 124 .block_size [all...] |
/third_party/ffmpeg/libavfilter/dnn/ |
H A D | dnn_backend_native_layer_depth2space.c | 37 params->block_size = (int32_t)avio_rl32(model_file_context); in ff_dnn_load_layer_depth2space() 56 int block_size = params->block_size; in ff_dnn_execute_layer_depth2space() local 65 int new_channels = channels / (block_size * block_size); in ff_dnn_execute_layer_depth2space() 67 int by_linesize = output_linesize / block_size; in ff_dnn_execute_layer_depth2space() 68 int x_linesize = new_channels * block_size; in ff_dnn_execute_layer_depth2space() 72 output_operand->dims[1] = height * block_size; in ff_dnn_execute_layer_depth2space() 73 output_operand->dims[2] = width * block_size; in ff_dnn_execute_layer_depth2space() 90 for (by = 0; by < block_size; in ff_dnn_execute_layer_depth2space() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | g729_parser.c | 33 int block_size; member 46 if (!s->block_size) { in g729_parse() 47 /* FIXME: replace this heuristic block_size with more precise estimate */ in g729_parse() 48 s->block_size = (avctx->bit_rate < 8000) ? G729D_6K4_BLOCK_SIZE : G729_8K_BLOCK_SIZE; in g729_parse() 50 s->block_size++; in g729_parse() 53 s->block_size = 0; in g729_parse() 54 s->block_size *= avctx->ch_layout.nb_channels; in g729_parse() 58 if (!s->block_size) { in g729_parse() 65 s->remaining = s->block_size; in g729_parse()
|
H A D | pcm-dvd.c | 34 int block_size; // Size of a block of samples in bytes member 108 s->block_size = channels * 2; in pcm_dvd_parse_header() 115 s->block_size = 4 * avctx->bits_per_coded_sample / 8; in pcm_dvd_parse_header() 121 s->block_size = 8 * avctx->bits_per_coded_sample / 8; in pcm_dvd_parse_header() 127 s->block_size = 4 * channels * in pcm_dvd_parse_header() 156 bytestream2_init(&gb, src, blocks * s->block_size); in pcm_dvd_decode_samples() 160 bytestream2_get_buffer(&gb, dst16, blocks * s->block_size); in pcm_dvd_decode_samples() 161 dst16 += blocks * s->block_size / 2; in pcm_dvd_decode_samples() 245 if (s->last_block_size && s->last_block_size != s->block_size) { in pcm_dvd_decode_frame() 246 av_log(avctx, AV_LOG_WARNING, "block_size ha in pcm_dvd_decode_frame() [all...] |
H A D | pcm-dvdenc.c | 31 int block_size; // Size of a block of samples in bytes member 75 s->block_size = avctx->ch_layout.nb_channels * 2; in pcm_dvd_encode_init() 76 frame_size = 2008 / s->block_size; in pcm_dvd_encode_init() 83 s->block_size = 4 * avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init() 89 s->block_size = 8 * avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init() 95 s->block_size = 4 * avctx->ch_layout.nb_channels * in pcm_dvd_encode_init() 102 frame_size = FFALIGN(2008 / s->block_size, s->samples_per_block); in pcm_dvd_encode_init() 120 int64_t pkt_size = (int64_t)(frame->nb_samples / s->samples_per_block) * s->block_size + 3; in pcm_dvd_encode_frame() 121 int blocks = (pkt_size - 3) / s->block_size; in pcm_dvd_encode_frame()
|
H A D | gif_parser.c | 50 int block_size; member 108 g->block_size = buf[index]; in gif_find_frame_end() 116 g->block_size = buf[index]; in gif_find_frame_end() 117 if (g->index >= g->block_size) { in gif_find_frame_end() 119 if (!g->block_size) { in gif_find_frame_end() 134 if (g->index >= g->block_size) { in gif_find_frame_end() 135 g->block_size = buf[index]; in gif_find_frame_end() 137 if (!g->block_size) in gif_find_frame_end()
|
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_mbuf.c | 39 usb_size_t block_size, uint16_t nblocks) in usb_alloc_mbufs() 47 block_size += ((-block_size) & (USB_HOST_ALIGN - 1)); in usb_alloc_mbufs() 49 if (nblocks && block_size) { in usb_alloc_mbufs() 50 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs() 66 m_ptr->max_data_len = block_size; in usb_alloc_mbufs() 71 data_ptr += block_size; in usb_alloc_mbufs() 38 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq, usb_size_t block_size, uint16_t nblocks) usb_alloc_mbufs() argument
|
/third_party/astc-encoder/Test/ |
H A D | astc_test_competitive.py | 53 def run_astcenc(in_image, out_image, block_size, quality): 54 args = [ASTC_BIN, "-tl", in_image, out_image, block_size, quality, "-j", "1"] 59 def run_ispc(in_image, out_image, block_size, quality): 60 args = [ISPC_BIN, in_image, out_image, block_size, quality] 87 for block_size in TEST_BLOCK_SIZES: 89 print(f"ISPC {quality} {block_size}") 90 print(f"ISPC {quality} {block_size}", file=sys.stderr) 95 result_rate += run_ispc(image, OUT_CIMAGE, block_size, quality) 100 print("%s,Kodak%02u,%0.4f,%0.4f" % (block_size, index, result_rate, result_error)) 103 for block_size i [all...] |
H A D | astc_test_competitive_plot.py | 37 def get_series(database, compressor, quality, block_size): 38 title = f"{compressor} {quality} {block_size}" 58 def plot(block_size, series_set): 68 plt.savefig(f"ASTC_v_ISPC_{block_size}.png") 98 for block_size in block_sizes: 101 perf, qual = get_series(DATABASE, "ISPC", "rgba", block_size) 102 series_set.append(Series(f"{block_size} IPSC Slow", perf, qual)) 104 perf, qual = get_series(DATABASE, "ISPC", "rgb", block_size) 105 series_set.append(Series(f"{block_size} IPSC Fast", perf, qual)) 107 perf, qual = get_series(DATABASE, "ASTC", "60", block_size) [all...] |
/third_party/mbedtls/library/ |
H A D | cmac.c | 101 size_t olen, block_size; in cmac_generate_subkeys() local 105 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in cmac_generate_subkeys() 108 if ((ret = mbedtls_cipher_update(ctx, L, block_size, L, &olen)) != 0) { in cmac_generate_subkeys() 115 if ((ret = cmac_multiply_by_u(K1, L, block_size)) != 0) { in cmac_generate_subkeys() 119 if ((ret = cmac_multiply_by_u(K2, K1, block_size)) != 0) { in cmac_generate_subkeys() 204 size_t n, j, olen, block_size; in mbedtls_cipher_cmac_update() local 212 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in mbedtls_cipher_cmac_update() 217 MBEDTLS_ASSUME(block_size <= MBEDTLS_CMAC_MAX_BLOCK_SIZE); in mbedtls_cipher_cmac_update() 222 ilen > block_size - cmac_ctx->unprocessed_len) { in mbedtls_cipher_cmac_update() 225 block_size in mbedtls_cipher_cmac_update() 277 size_t olen, block_size; mbedtls_cipher_cmac_finish() local 729 cmac_test_subkeys(int verbose, const char *testname, const unsigned char *key, int keybits, const unsigned char *subkeys, mbedtls_cipher_type_t cipher_type, int block_size, int num_tests) cmac_test_subkeys() argument 823 cmac_test_wth_cipher(int verbose, const char *testname, const unsigned char *key, int keybits, const unsigned char *messages, const unsigned int message_lengths[4], const unsigned char *expected_result, mbedtls_cipher_type_t cipher_type, int block_size, int num_tests) cmac_test_wth_cipher() argument [all...] |
/third_party/node/deps/openssl/openssl/ssl/record/ |
H A D | tls_pad.c | 29 size_t block_size, 39 size_t block_size, size_t mac_size, 47 size_t block_size, size_t mac_size, 60 * block_size: the block size of the cipher used to encrypt the record. 73 size_t block_size, size_t mac_size, in ssl3_cbc_remove_padding_and_mac() 89 good &= constant_time_ge_s(block_size, padding_length + 1); in ssl3_cbc_remove_padding_and_mac() 93 block_size, mac_size, good, libctx); in ssl3_cbc_remove_padding_and_mac() 105 * block_size: the block size of the cipher used to encrypt the record. 118 size_t block_size, size_t mac_size, in tls1_cbc_remove_padding_and_mac() 124 size_t overhead = ((block_size in tls1_cbc_remove_padding_and_mac() 68 ssl3_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, OSSL_LIB_CTX *libctx) ssl3_cbc_remove_padding_and_mac() argument 113 tls1_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, int aead, OSSL_LIB_CTX *libctx) tls1_cbc_remove_padding_and_mac() argument 197 ssl3_cbc_copy_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, size_t good, OSSL_LIB_CTX *libctx) ssl3_cbc_copy_mac() argument [all...] |
/third_party/openssl/ssl/record/ |
H A D | tls_pad.c | 29 size_t block_size, 39 size_t block_size, size_t mac_size, 47 size_t block_size, size_t mac_size, 60 * block_size: the block size of the cipher used to encrypt the record. 73 size_t block_size, size_t mac_size, in ssl3_cbc_remove_padding_and_mac() 89 good &= constant_time_ge_s(block_size, padding_length + 1); in ssl3_cbc_remove_padding_and_mac() 93 block_size, mac_size, good, libctx); in ssl3_cbc_remove_padding_and_mac() 105 * block_size: the block size of the cipher used to encrypt the record. 118 size_t block_size, size_t mac_size, in tls1_cbc_remove_padding_and_mac() 124 size_t overhead = ((block_size in tls1_cbc_remove_padding_and_mac() 68 ssl3_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, OSSL_LIB_CTX *libctx) ssl3_cbc_remove_padding_and_mac() argument 113 tls1_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, int aead, OSSL_LIB_CTX *libctx) tls1_cbc_remove_padding_and_mac() argument 197 ssl3_cbc_copy_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, size_t good, OSSL_LIB_CTX *libctx) ssl3_cbc_copy_mac() argument [all...] |
/third_party/mesa3d/src/intel/vulkan/tests/ |
H A D | block_pool_grow_first.c | 40 const uint32_t block_size = 16 * 1024; in main() local 41 const uint32_t initial_size = block_size / 2; in main() 49 int32_t offset = anv_block_pool_alloc(&pool, block_size, &padding); in main() 53 ASSERT(pool.size >= initial_size + block_size); in main() 62 void *map = anv_block_pool_map(&pool, offset, block_size); in main() 63 memset(map, 22, block_size); in main()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | cipher_ctx.rs | 299 pub fn block_size(&self) -> usize { in block_size() functions 551 let mut block_size = self.block_size(); in cipher_update() variables 552 if block_size == 1 { in cipher_update() 553 block_size = 0; in cipher_update() 555 let min_output_size = input.len() + block_size; in cipher_update() 610 output.resize(base + input.len() + self.block_size(), 0); in cipher_update_vec() 637 let block_size = self.block_size(); in cipher_update_inplace() 638 if block_size ! in cipher_update_inplace() [all...] |
/third_party/pcre2/pcre2/maint/ |
H A D | GenerateUcd.py | 367 def compress_table(table, block_size): 372 for i in range(0, len(table), block_size): 373 block = table[i:i+block_size] 377 start = len(stage2) / block_size 386 def write_table(table, table_name, block_size = None): 391 if block_size: 392 s += ", block = %d" % block_size 395 if block_size is None: 401 if block_size > ELEMS_PER_LINE: 404 el = block_size [all...] |
/third_party/mbedtls/programs/psa/ |
H A D | crypto_examples.c | 161 block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH(PSA_KEY_TYPE_AES), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() enumerator 163 part_size = block_size, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 171 uint8_t iv[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 172 uint8_t input[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 173 uint8_t encrypt[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 174 uint8_t decrypt[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 209 block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH(PSA_KEY_TYPE_AES), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() enumerator 221 uint8_t iv[block_size], input[input_size], in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 222 encrypt[input_size + block_size], decrypt[input_size + block_size]; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 257 block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH(PSA_KEY_TYPE_AES), cipher_example_encrypt_decrypt_aes_ctr_multi() enumerator [all...] |
/third_party/protobuf/src/google/protobuf/io/ |
H A D | zero_copy_stream_impl_lite.cc | 58 ArrayInputStream::ArrayInputStream(const void* data, int size, int block_size) in ArrayInputStream() argument 61 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream() 105 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument 108 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream() 202 CopyingInputStream* copying_stream, int block_size) in CopyingInputStreamAdaptor() 207 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor() 304 CopyingOutputStream* copying_stream, int block_size) in CopyingOutputStreamAdaptor() 201 CopyingInputStreamAdaptor( CopyingInputStream* copying_stream, int block_size) CopyingInputStreamAdaptor() argument 303 CopyingOutputStreamAdaptor( CopyingOutputStream* copying_stream, int block_size) CopyingOutputStreamAdaptor() argument [all...] |