Home
last modified time | relevance | path

Searched refs:dest_size (Results 1 – 25 of 42) sorted by relevance

12

/external/pdfium/core/fxcodec/codec/
Dfx_codec_a85_unittest.cpp17 uint32_t dest_size = 0; in TEST() local
24 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, nullptr, &dest_size)); in TEST()
25 EXPECT_FALSE(pEncoders->A85Encode(src_buf, 0, &dest_buf, &dest_size)); in TEST()
26 EXPECT_FALSE(pEncoders->A85Encode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
35 uint32_t dest_size = 0; in TEST() local
41 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
44 ASSERT_EQ(12u, dest_size); in TEST()
60 uint32_t dest_size = 0; in TEST() local
67 pEncoders->A85Encode(src_buf_1leftover, src_size, &dest_buf, &dest_size)); in TEST()
68 ASSERT_EQ(9u, dest_size); // 5 chars for first symbol + 2 + 2 terminators. in TEST()
[all …]
Dfx_codec_rle_unittest.cpp18 uint32_t dest_size = 0; in TEST() local
27 pEncoders->RunLengthEncode(src_buf, src_size, nullptr, &dest_size)); in TEST()
28 EXPECT_FALSE(pEncoders->RunLengthEncode(src_buf, 0, &dest_buf, &dest_size)); in TEST()
30 pEncoders->RunLengthEncode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
38 uint32_t dest_size = 0; in TEST() local
44 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
45 ASSERT_EQ(3u, dest_size); in TEST()
66 uint32_t dest_size = 0; in TEST() local
74 pEncoders->RunLengthEncode(src_buf_1, src_size, &dest_buf, &dest_size)); in TEST()
77 RunLengthDecode(dest_buf, dest_size, &decoded_buf, &decoded_size); in TEST()
[all …]
Dfx_codec_flate.cpp53 unsigned long* dest_size, in FlateCompress() argument
56 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FlateCompress()
78 uint32_t dest_size) { in FlateOutput() argument
80 static_cast<z_stream*>(context)->avail_out = dest_size; in FlateOutput()
88 if (written < dest_size) in FlateOutput()
89 memset(dest_buf + written, '\0', dest_size - written); in FlateOutput()
159 uint32_t& dest_size, in Decode() argument
196 if (m_OutPos == dest_size) { in Decode()
225 if (m_OutPos + m_StackLen > dest_size) { in Decode()
238 dest_size = m_OutPos; in Decode()
[all …]
Dfx_codec.cpp1389 uint32_t* dest_size) { in RunLengthEncode() argument
1391 if (!src_buf || !dest_buf || !dest_size || src_size == 0) in RunLengthEncode()
1400 *dest_size = 3; in RunLengthEncode()
1462 *dest_size = out + 1 - *dest_buf; in RunLengthEncode()
1469 uint32_t* dest_size) { in A85Encode() argument
1471 if (!src_buf || !dest_buf || !dest_size) in A85Encode()
1475 *dest_size = 0; in A85Encode()
1533 *dest_size = out - *dest_buf; in A85Encode()
1599 uint32_t dest_size = 0; in CheckDestSize() local
1602 old_size = dest_size; in CheckDestSize()
[all …]
Dccodec_flatemodule.h38 uint32_t* dest_size);
43 uint32_t* dest_size);
48 uint32_t* dest_size);
Dccodec_basicmodule.h28 uint32_t* dest_size);
32 uint32_t* dest_size);
Dfx_codec_fax.cpp743 uint32_t* dest_size);
772 uint32_t* dest_size) { in Encode() argument
787 *dest_size = m_DestBuf.GetSize(); in Encode()
799 uint32_t* dest_size) { in FaxEncode() argument
801 encoder.Encode(dest_buf, dest_size); in FaxEncode()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode.cpp84 uint32_t* dest_size) { in A85Decode() argument
85 *dest_size = 0; in A85Decode()
123 memset(*dest_buf + *dest_size, 0, 4); in A85Decode()
126 *dest_size += 4; in A85Decode()
141 (*dest_buf)[(*dest_size)++] = static_cast<uint8_t>(res >> (3 - i) * 8); in A85Decode()
151 (*dest_buf)[(*dest_size)++] = static_cast<uint8_t>(res >> (3 - i) * 8); in A85Decode()
161 uint32_t* dest_size) { in HexDecode() argument
162 *dest_size = 0; in HexDecode()
189 (*dest_buf)[*dest_size] = digit * 16; in HexDecode()
191 (*dest_buf)[(*dest_size)++] += digit; in HexDecode()
[all …]
Dfpdf_parser_decode.h32 uint32_t* dest_size);
40 uint32_t* dest_size);
45 uint32_t* dest_size);
50 uint32_t* dest_size);
71 uint32_t* dest_size);
76 uint32_t* dest_size);
84 uint32_t* dest_size);
92 uint32_t* dest_size,
Dcpdf_crypto_handler.cpp54 uint32_t& dest_size) { in CryptBlock() argument
94 dest_size = 32 + nblocks * 16; in CryptBlock()
99 dest_size = src_size - 16; in CryptBlock()
100 dest_size -= dest_buf[dest_size - 1]; in CryptBlock()
103 ASSERT(dest_size == src_size); in CryptBlock()
107 CRYPT_ArcFourCryptBlock(dest_buf, dest_size, realkey, realkeylen); in CryptBlock()
393 uint32_t& dest_size) { in EncryptContent() argument
394 CryptBlock(true, objnum, gennum, src_buf, src_size, dest_buf, dest_size); in EncryptContent()
Dcpdf_crypto_handler.h42 uint32_t& dest_size);
63 uint32_t& dest_size);
/external/flac/include/share/
Dsafe_str.h42 safe_strncat(char *dest, const char *src, size_t dest_size) in safe_strncat() argument
46 if (dest_size < 1) in safe_strncat()
49 ret = strncat(dest, src, dest_size - strlen (dest)); in safe_strncat()
50 dest [dest_size - 1] = 0; in safe_strncat()
56 safe_strncpy(char *dest, const char *src, size_t dest_size) in safe_strncpy() argument
60 if (dest_size < 1) in safe_strncpy()
63 ret = strncpy(dest, src, dest_size); in safe_strncpy()
64 dest [dest_size - 1] = 0; in safe_strncpy()
/external/libmicrohttpd/src/microspdy/
Dcompression.c255 size_t *dest_size) in SPDYF_zlib_deflate() argument
263 *dest_size = 0; in SPDYF_zlib_deflate()
298 *dest_size += have; in SPDYF_zlib_deflate()
299 *dest = realloc(*dest, *dest_size); in SPDYF_zlib_deflate()
306 memcpy((*dest) + ((*dest_size) - have), out, have); in SPDYF_zlib_deflate()
354 size_t *dest_size) in SPDYF_zlib_inflate() argument
361 *dest_size = 0; in SPDYF_zlib_inflate()
425 *dest_size += have; in SPDYF_zlib_inflate()
427 *dest = realloc(*dest, *dest_size); in SPDYF_zlib_inflate()
434 memcpy((*dest) + ((*dest_size) - have), out, have); in SPDYF_zlib_inflate()
Dcompression.h74 size_t *dest_size);
115 size_t *dest_size);
/external/libtextclassifier/
Dquantization.cc30 const int bucket_id, float* dest, int dest_size) { in DequantizeAdd8bit() argument
33 for (int k = 0; k < dest_size; ++k) { in DequantizeAdd8bit()
43 int dest_size) { in DequantizeAddNBit() argument
46 for (int i = 0; i < dest_size; ++i) { in DequantizeAddNBit()
76 int dest_size) { in DequantizeAdd() argument
79 num_sparse_features, bucket_id, dest, dest_size); in DequantizeAdd()
83 dest_size); in DequantizeAdd()
Dmodel-executor.cc103 const TensorView<int>& sparse_features, float* dest, int dest_size) const { in AddEmbedding()
104 if (dest_size != output_embedding_size_) { in AddEmbedding()
106 << dest_size << " " << output_embedding_size_; in AddEmbedding()
118 quantization_bits_, bucket_id, dest, dest_size)) { in AddEmbedding()
Dtensor-view.h56 bool copy_to(T* dest, int dest_size) const { in copy_to() argument
57 if (dest_size < size_) { in copy_to()
Dmodel-executor.h98 int dest_size) const = 0;
111 int dest_size) const override;
/external/mesa3d/src/compiler/nir/
Dnir_search.c328 unsigned dest_size; member
352 tree->dest_size = nir_alu_type_get_type_size(info.output_type); in build_bitsize_tree()
360 tree->dest_size = nir_src_bit_size(state->variables[var->variable].src); in build_bitsize_tree()
373 assert(!tree->is_dest_sized || tree->dest_size == value->bit_size); in build_bitsize_tree()
400 if (tree->dest_size == 0) in bitsize_tree_filter_up()
401 tree->dest_size = tree->common_size; in bitsize_tree_filter_up()
403 assert(tree->dest_size == tree->common_size); in bitsize_tree_filter_up()
411 return tree->dest_size; in bitsize_tree_filter_up()
417 if (tree->dest_size) in bitsize_tree_filter_down()
418 assert(tree->dest_size == size); in bitsize_tree_filter_down()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamparser.cpp41 uint32_t* dest_size) { in DecodeAllScanlines() argument
53 *dest_size = pitch * height; // Safe since checked alloc returned. in DecodeAllScanlines()
71 uint32_t* dest_size) { in DecodeInlineStream() argument
75 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in DecodeInlineStream()
78 return A85Decode(src_buf, limit, dest_buf, dest_size); in DecodeInlineStream()
80 return HexDecode(src_buf, limit, dest_buf, dest_size); in DecodeInlineStream()
82 return FPDFAPI_FlateOrLZWDecode(false, src_buf, limit, pParam, *dest_size, in DecodeInlineStream()
83 dest_buf, dest_size); in DecodeInlineStream()
87 dest_size); in DecodeInlineStream()
94 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in DecodeInlineStream()
[all …]
/external/vboot_reference/host/lib/
Dhost_misc.c20 char* StrCopy(char* dest, const char* src, int dest_size) { in StrCopy() argument
21 strncpy(dest, src, dest_size); in StrCopy()
22 dest[dest_size - 1] = '\0'; in StrCopy()
/external/pdfium/core/fxge/win32/
Dcfx_psrenderer.cpp34 uint32_t* dest_size) { in FaxCompressData() argument
37 dest_buf, dest_size); in FaxCompressData()
41 *dest_size = (width + 7) / 8 * height; in FaxCompressData()
59 uint32_t dest_size = src_size; in PSCompressData() local
62 &dest_size)) { in PSCompressData()
67 &dest_buf, &dest_size)) { in PSCompressData()
71 if (dest_size < src_size) { in PSCompressData()
73 *output_size = dest_size; in PSCompressData()
690 uint32_t dest_size; in WritePSBinary() local
693 &dest_size)) { in WritePSBinary()
[all …]
/external/vboot_reference/firmware/2lib/
D2api.c131 uint32_t *dest_size) in vb2api_get_pcr_digest() argument
149 if (digest == NULL || *dest_size < digest_size) in vb2api_get_pcr_digest()
153 *dest_size = digest_size; in vb2api_get_pcr_digest()
/external/pdfium/testing/libfuzzer/
Dpdf_codec_a85_fuzzer.cc13 uint32_t dest_size = 0; in LLVMFuzzerTestOneInput() local
15 encoder_module.A85Encode(data, size, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput()
Dpdf_codec_rle_fuzzer.cc13 uint32_t dest_size = 0; in LLVMFuzzerTestOneInput() local
15 encoder_module.RunLengthEncode(data, size, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput()

12