Home
last modified time | relevance | path

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

123

/external/pdfium/core/fxcodec/codec/
Dfx_codec_rle_unittest.cpp18 uint32_t src_size = 4; in TEST() local
26 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, nullptr)); in TEST()
28 pEncoders->RunLengthEncode(src_buf, src_size, nullptr, &dest_size)); in TEST()
31 pEncoders->RunLengthEncode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
38 uint32_t src_size = 1; in TEST() local
45 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
66 uint32_t src_size = 10; in TEST() local
75 pEncoders->RunLengthEncode(src_buf_1, src_size, &dest_buf, &dest_size)); in TEST()
79 ASSERT_EQ(src_size, decoded_size); in TEST()
80 for (uint32_t i = 0; i < src_size; i++) in TEST()
[all …]
Dfx_codec_a85_unittest.cpp17 uint32_t src_size = 4; in TEST() local
24 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, nullptr)); in TEST()
25 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, nullptr, &dest_size)); in TEST()
27 EXPECT_FALSE(pEncoders->A85Encode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
35 uint32_t src_size = 8; in TEST() local
42 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
60 uint32_t src_size = 5; in TEST() local
68 pEncoders->A85Encode(src_buf_1leftover, src_size, &dest_buf, &dest_size)); in TEST()
78 src_size++; in TEST()
84 pEncoders->A85Encode(src_buf_2leftover, src_size, &dest_buf, &dest_size)); in TEST()
[all …]
Dfx_codec.cpp96 uint32_t src_size, in RunLengthEncode() argument
100 if (!src_buf || !dest_buf || !dest_size || src_size == 0) in RunLengthEncode()
104 if (src_size == 1) { in RunLengthEncode()
116 uint32_t est_size = 4 * ((src_size + 2) / 3) + 1; in RunLengthEncode()
125 while (run_end < src_size) { in RunLengthEncode()
126 uint32_t max_len = std::min((uint32_t)128, src_size - run_start); in RunLengthEncode()
133 if (run_end < src_size) in RunLengthEncode()
142 if (run_end < src_size) in RunLengthEncode()
152 if (run_end == src_size) { in RunLengthEncode()
165 if (run_start < src_size) { // 1 leftover character in RunLengthEncode()
[all …]
Dfx_codec_jpeg.cpp31 static void JpegScanSOI(const uint8_t** src_buf, uint32_t* src_size) { in JpegScanSOI() argument
32 if (*src_size == 0) in JpegScanSOI()
36 while (offset < *src_size - 1) { in JpegScanSOI()
39 *src_size -= offset; in JpegScanSOI()
99 uint32_t src_size, in JpegLoadInfo() argument
105 JpegScanSOI(&src_buf, &src_size); in JpegLoadInfo()
127 src.bytes_in_buffer = src_size; in JpegLoadInfo()
155 uint32_t src_size,
237 uint32_t src_size, in Create() argument
242 JpegScanSOI(&src_buf, &src_size); in Create()
[all …]
Dfx_codec_flate.cpp38 unsigned long src_size) { in FPDFAPI_FlateCompress() argument
39 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FPDFAPI_FlateCompress()
57 unsigned int src_size) { in FPDFAPI_FlateInput() argument
59 ((z_stream*)context)->avail_in = src_size; in FPDFAPI_FlateInput()
152 uint32_t& src_size, in Decode() argument
164 if (m_InPos + m_CodeLen > src_size * 8) { in Decode()
230 src_size = (m_InPos + 7) / 8; in Decode()
239 src_size = (m_InPos + 7) / 8; in Decode()
503 uint32_t src_size, in FlateUncompress() argument
508 uint32_t guess_size = orig_size ? orig_size : src_size * 2; in FlateUncompress()
[all …]
Dccodec_flatemodule.h19 uint32_t src_size,
30 uint32_t src_size,
40 uint32_t src_size,
44 uint32_t src_size,
Dccodec_basicmodule.h20 uint32_t src_size,
26 uint32_t src_size,
30 uint32_t src_size,
Dccodec_jpegmodule.h27 uint32_t src_size,
33 uint32_t src_size,
43 uint32_t src_size);
Dfx_codec_jpx_opj.cpp33 if (!srcData || !srcData->src_data || srcData->src_size == 0) { in opj_read_from_memory()
37 if (srcData->offset >= srcData->src_size) { in opj_read_from_memory()
40 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_read_from_memory()
51 if (!srcData || !srcData->src_data || srcData->src_size == 0) { in opj_write_from_memory()
55 if (srcData->offset >= srcData->src_size) { in opj_write_from_memory()
58 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_write_from_memory()
67 if (!srcData || !srcData->src_data || srcData->src_size == 0) { in opj_skip_from_memory()
83 srcData->offset = srcData->src_size; in opj_skip_from_memory()
92 std::min(srcData->offset + checkedNbBytes, srcData->src_size); in opj_skip_from_memory()
99 if (!srcData || !srcData->src_data || srcData->src_size == 0) { in opj_seek_from_memory()
[all …]
Dcodec_int.h26 : src_data(data), src_size(size), offset(0) {} in DecodeData()
28 OPJ_SIZE_T src_size; member
/external/lz4/examples/
Dcompress_functions.c115 const size_t src_size, in bench() argument
132 rv = LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
139 LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
145 rv = LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
152 LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
158 rv = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
165 LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
191 rv = LZ4_decompress_safe(src, dst, comp_size, src_size); in bench()
194 if (memcmp(known_good_dst, dst, src_size) != 0) in bench()
198 LZ4_decompress_safe(src, dst, comp_size, src_size); in bench()
[all …]
Dsimple_buffer.c41 const size_t src_size = strlen(src) + 1; in main() local
43 const size_t max_dst_size = LZ4_compressBound(src_size); in main()
51 return_value = LZ4_compress_default(src, compressed_data, src_size, max_dst_size); in main()
69 char *new_src = malloc(src_size); in main()
74 return_value = LZ4_decompress_safe(compressed_data, new_src, compressed_data_size, src_size); in main()
86 if (memcmp(src, new_src, src_size) != 0) in main()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_crypto_handler.cpp20 uint32_t src_size, in CryptBlock() argument
24 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock()
53 int nblocks = src_size / 16; in CryptBlock()
56 FXSYS_memcpy(padding, src_buf + nblocks * 16, src_size % 16); in CryptBlock()
57 FXSYS_memset(padding + src_size % 16, 16 - src_size % 16, in CryptBlock()
58 16 - src_size % 16); in CryptBlock()
64 CRYPT_AESDecrypt(m_pAESContext, dest_buf, src_buf + 16, src_size - 16); in CryptBlock()
65 dest_size = src_size - 16; in CryptBlock()
69 ASSERT(dest_size == src_size); in CryptBlock()
71 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock()
[all …]
Dfpdf_parser_decode.h30 uint32_t src_size,
38 uint32_t src_size,
43 uint32_t src_size,
47 uint32_t src_size,
53 uint32_t src_size,
60 uint32_t src_size,
69 uint32_t src_size,
74 uint32_t src_size,
80 uint32_t src_size,
86 uint32_t src_size,
Dfpdf_parser_decode.cpp76 uint32_t src_size, in A85Decode() argument
81 if (src_size == 0) in A85Decode()
87 while (pos < src_size) { in A85Decode()
111 while (pos < src_size) { in A85Decode()
143 if (pos < src_size && src_buf[pos] == '>') in A85Decode()
149 uint32_t src_size, in HexDecode() argument
153 if (src_size == 0) { in HexDecode()
160 while (i < src_size && src_buf[i] != '>') in HexDecode()
165 for (i = 0; i < src_size; i++) { in HexDecode()
191 uint32_t src_size, in RunLengthDecode() argument
[all …]
Dcpdf_crypto_handler.h24 uint32_t DecryptGetSize(uint32_t src_size);
29 uint32_t src_size,
35 uint32_t src_size);
39 uint32_t src_size,
50 uint32_t src_size,
56 uint32_t src_size,
/external/llvm/test/Transforms/MemCpyOpt/
Dmemset-memcpy-redundant-memset.ll6 ; CHECK-DAG: [[DST:%[0-9]+]] = getelementptr i8, i8* %dst, i64 %src_size
7 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i64 %dst_size, %src_size
8 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i64 %dst_size, %src_size
11 ; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 fal…
13 define void @test(i8* %src, i64 %src_size, i8* %dst, i64 %dst_size, i8 %c) {
15 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 false)
21 ; CHECK-DAG: [[DST:%[0-9]+]] = getelementptr i8, i8* %dst, i64 %src_size
22 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i64 [[DSTSIZE]], %src_size
23 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i64 [[DSTSIZE]], %src_size
26 ; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 fal…
[all …]
/external/webrtc/webrtc/common_audio/
Daudio_converter.cc33 void Convert(const float* const* src, size_t src_size, float* const* dst, in Convert() argument
35 CheckSizes(src_size, dst_capacity); in Convert()
50 void Convert(const float* const* src, size_t src_size, float* const* dst, in Convert() argument
52 CheckSizes(src_size, dst_capacity); in Convert()
69 void Convert(const float* const* src, size_t src_size, float* const* dst, in Convert() argument
71 CheckSizes(src_size, dst_capacity); in Convert()
93 void Convert(const float* const* src, size_t src_size, float* const* dst, in Convert() argument
95 CheckSizes(src_size, dst_capacity); in Convert()
118 void Convert(const float* const* src, size_t src_size, float* const* dst, in Convert() argument
120 converters_.front()->Convert(src, src_size, buffers_.front()->channels(), in Convert()
[all …]
Daudio_converter.h39 virtual void Convert(const float* const* src, size_t src_size,
53 void CheckSizes(size_t src_size, size_t dst_capacity) const;
/external/libmicrohttpd/src/microspdy/
Dcompression.c252 size_t src_size, in SPDYF_zlib_deflate() argument
268 if(src_size > SPDYF_ZLIB_CHUNK) in SPDYF_zlib_deflate()
271 src_size -= SPDYF_ZLIB_CHUNK; in SPDYF_zlib_deflate()
279 strm->avail_in = src_size; in SPDYF_zlib_deflate()
352 size_t src_size, in SPDYF_zlib_inflate() argument
366 if(src_size > SPDYF_ZLIB_CHUNK) in SPDYF_zlib_inflate()
369 src_size -= SPDYF_ZLIB_CHUNK; in SPDYF_zlib_inflate()
373 strm->avail_in = src_size; in SPDYF_zlib_inflate()
374 src_size = 0; in SPDYF_zlib_inflate()
Dcompression.h71 size_t src_size,
113 size_t src_size,
/external/mesa3d/src/compiler/nir/
Dnir_search.c329 unsigned src_size[4]; member
347 tree->src_size[i] = nir_alu_type_get_type_size(info.input_types[i]); in build_bitsize_tree()
384 unsigned src_size = bitsize_tree_filter_up(tree->srcs[i]); in bitsize_tree_filter_up() local
385 if (src_size == 0) in bitsize_tree_filter_up()
389 assert(src_size == tree->src_size[i]); in bitsize_tree_filter_up()
391 assert(src_size == tree->common_size); in bitsize_tree_filter_up()
392 tree->src_size[i] = src_size; in bitsize_tree_filter_up()
394 tree->common_size = src_size; in bitsize_tree_filter_up()
395 tree->src_size[i] = src_size; in bitsize_tree_filter_up()
406 if (!tree->src_size[i]) in bitsize_tree_filter_up()
[all …]
/external/libmicrohttpd/src/examples/
Dmhd2spdy_structures.c146 copy_buffer(const void *src, size_t src_size, void **dst, size_t *dst_size) in copy_buffer() argument
148 if(0 == src_size) in copy_buffer()
152 *dst = malloc(src_size); in copy_buffer()
154 *dst = realloc(*dst, src_size + *dst_size); in copy_buffer()
158 memcpy(*dst + *dst_size, src, src_size); in copy_buffer()
159 *dst_size += src_size; in copy_buffer()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_register_coalesce.cpp159 int src_size = 0; in register_coalesce() local
180 src_size = alloc.sizes[inst->src[0].nr]; in register_coalesce()
181 assert(src_size <= MAX_VGRF_SIZE); in register_coalesce()
183 channels_remaining = src_size; in register_coalesce()
193 for (int i = 0; i < src_size; i++) { in register_coalesce()
220 for (int i = 0; i < src_size; i++) { in register_coalesce()
244 for (int i = 0; i < src_size; i++) { in register_coalesce()
273 for (int i = 0; i < src_size; i++) { in register_coalesce()
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_pack.py348 src_size = src_channel.size
353 if src_type == FLOAT and src_size == 16:
355 src_size = 32
359 …if src_type == UNSIGNED and src_norm and src_size == 8 and dst_channel.type == FLOAT and dst_chann…
361 …if src_type == FLOAT and src_size == 32 and dst_channel.type == UNSIGNED and dst_channel.norm and …
383 …tmp_native_type = intermediate_native_type(src_size + dst_channel.size, src_channel.sign and dst_c…
393 if src_size <= 23:
397 src_size = 32
401 src_size = 64
404 if src_size <= 23 or dst_channel.size <= 32:
[all …]

123