Home
last modified time | relevance | path

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

12

/external/pdfium/core/fxcodec/codec/
Dfx_codec_a85_unittest.cpp18 uint32_t dest_size = 0; in TEST() local
25 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, nullptr, &dest_size)); in TEST()
26 EXPECT_FALSE(pEncoders->A85Encode(src_buf, 0, &dest_buf, &dest_size)); in TEST()
27 EXPECT_FALSE(pEncoders->A85Encode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
36 uint32_t dest_size = 0; in TEST() local
42 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
45 ASSERT_EQ(12u, dest_size); in TEST()
61 uint32_t dest_size = 0; in TEST() local
68 pEncoders->A85Encode(src_buf_1leftover, src_size, &dest_buf, &dest_size)); in TEST()
69 ASSERT_EQ(9u, dest_size); // 5 chars for first symbol + 2 + 2 terminators. in TEST()
[all …]
Dfx_codec_rle_unittest.cpp19 uint32_t dest_size = 0; in TEST() local
28 pEncoders->RunLengthEncode(src_buf, src_size, nullptr, &dest_size)); in TEST()
29 EXPECT_FALSE(pEncoders->RunLengthEncode(src_buf, 0, &dest_buf, &dest_size)); in TEST()
31 pEncoders->RunLengthEncode(nullptr, src_size, &dest_buf, &dest_size)); in TEST()
39 uint32_t dest_size = 0; in TEST() local
45 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
46 ASSERT_EQ(3u, dest_size); in TEST()
67 uint32_t dest_size = 0; in TEST() local
75 pEncoders->RunLengthEncode(src_buf_1, src_size, &dest_buf, &dest_size)); in TEST()
78 RunLengthDecode(dest_buf, dest_size, decoded_buf, decoded_size); in TEST()
[all …]
Dfx_codec_flate.cpp36 unsigned long* dest_size, in FPDFAPI_FlateCompress() argument
39 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FPDFAPI_FlateCompress()
64 unsigned int dest_size) { in FPDFAPI_FlateOutput() argument
66 ((z_stream*)context)->avail_out = dest_size; in FPDFAPI_FlateOutput()
71 if (written < dest_size) { in FPDFAPI_FlateOutput()
72 FXSYS_memset(dest_buf + written, '\0', dest_size - written); in FPDFAPI_FlateOutput()
150 uint32_t& dest_size, in Decode() argument
185 if (m_OutPos == dest_size) { in Decode()
216 if (m_OutPos + m_StackLen > dest_size) { in Decode()
229 dest_size = m_OutPos; in Decode()
[all …]
Dfx_codec.cpp98 uint32_t* dest_size) { in RunLengthEncode() argument
100 if (!src_buf || !dest_buf || !dest_size || src_size == 0) in RunLengthEncode()
109 *dest_size = 3; in RunLengthEncode()
171 *dest_size = out + 1 - *dest_buf; in RunLengthEncode()
178 uint32_t* dest_size) { in A85Encode() argument
180 if (!src_buf || !dest_buf || !dest_size) in A85Encode()
184 *dest_size = 0; in A85Encode()
242 *dest_size = out - *dest_buf; in A85Encode()
309 uint32_t dest_size = 0; in CheckDestSize() local
312 old_size = dest_size; in CheckDestSize()
[all …]
Dccodec_flatemodule.h38 uint32_t& dest_size);
42 uint32_t* dest_size);
46 uint32_t* dest_size);
Dccodec_basicmodule.h28 uint32_t* dest_size);
32 uint32_t* dest_size);
Dfx_codec_fax.cpp747 uint32_t* dest_size);
776 uint32_t* dest_size) { in Encode() argument
792 *dest_size = m_DestBuf.GetSize(); in Encode()
804 uint32_t* dest_size) { in FaxEncode() argument
806 encoder.Encode(dest_buf, dest_size); in FaxEncode()
Dccodec_faxmodule.h35 uint32_t* dest_size);
Dccodec_jpegmodule.h65 FX_STRSIZE* dest_size);
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode.cpp78 uint32_t& dest_size) { in A85Decode() argument
79 dest_size = 0; in A85Decode()
110 pos = dest_size = 0; in A85Decode()
117 FXSYS_memset(dest_buf + dest_size, 0, 4); in A85Decode()
120 dest_size += 4; in A85Decode()
126 dest_buf[dest_size++] = (uint8_t)(res >> (3 - i) * 8); in A85Decode()
141 dest_buf[dest_size++] = (uint8_t)(res >> (3 - i) * 8); in A85Decode()
151 uint32_t& dest_size) { in HexDecode() argument
152 dest_size = 0; in HexDecode()
179 dest_buf[dest_size] = digit * 16; in HexDecode()
[all …]
Dfpdf_parser_decode.h32 uint32_t* dest_size);
40 uint32_t* dest_size);
45 uint32_t& dest_size);
49 uint32_t& dest_size);
71 uint32_t& dest_size);
76 uint32_t& dest_size);
84 uint32_t& dest_size);
89 uint32_t& dest_size,
Dcpdf_crypto_handler.cpp22 uint32_t& dest_size) { in CryptBlock() argument
61 dest_size = 32 + nblocks * 16; in CryptBlock()
65 dest_size = src_size - 16; in CryptBlock()
66 dest_size -= dest_buf[dest_size - 1]; in CryptBlock()
69 ASSERT(dest_size == src_size); in CryptBlock()
73 CRYPT_ArcFourCryptBlock(dest_buf, dest_size, realkey, realkeylen); in CryptBlock()
320 uint32_t& dest_size) { in EncryptContent() argument
321 CryptBlock(true, objnum, gennum, src_buf, src_size, dest_buf, dest_size); in EncryptContent()
Dcpdf_crypto_handler.h41 uint32_t& dest_size);
52 uint32_t& dest_size);
/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/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.cpp38 uint32_t& dest_size) { in DecodeAllScanlines() argument
50 dest_size = pitch * height; // Safe since checked alloc returned. in DecodeAllScanlines()
68 uint32_t& dest_size) { in PDF_DecodeInlineStream() argument
72 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in PDF_DecodeInlineStream()
75 return A85Decode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream()
77 return HexDecode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream()
79 return FPDFAPI_FlateOrLZWDecode(false, src_buf, limit, pParam, dest_size, in PDF_DecodeInlineStream()
80 dest_buf, dest_size); in PDF_DecodeInlineStream()
84 dest_size); in PDF_DecodeInlineStream()
91 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in PDF_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/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()
/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/core/fxge/win32/
Dcfx_psrenderer.cpp293 uint32_t* dest_size) { in FaxCompressData() argument
296 dest_buf, dest_size); in FaxCompressData()
300 *dest_size = (width + 7) / 8 * height; in FaxCompressData()
318 uint32_t dest_size = src_size; in PSCompressData() local
322 &dest_size)) { in PSCompressData()
328 &dest_buf, &dest_size)) { in PSCompressData()
332 if (dest_size < src_size) { in PSCompressData()
334 *output_size = dest_size; in PSCompressData()
676 uint32_t dest_size; in WritePSBinary() local
680 &dest_size)) { in WritePSBinary()
[all …]
/external/v8/src/base/platform/
Dplatform-win32.cc67 int strncpy_s(char* dest, size_t dest_size, const char* source, size_t count) { in strncpy_s() argument
70 CHECK_GT(dest_size, 0); in strncpy_s()
73 while (dest_size > 0 && *source != 0) { in strncpy_s()
75 --dest_size; in strncpy_s()
77 if (dest_size == 0) { in strncpy_s()
82 while (dest_size > 0 && count > 0 && *source != 0) { in strncpy_s()
84 --dest_size; in strncpy_s()
88 CHECK_GT(dest_size, 0); in strncpy_s()
/external/vboot_reference/host/lib/include/
Dhost_misc.h17 char* StrCopy(char* dest, const char* src, int dest_size);
/external/libvpx/libvpx/vp9/encoder/
Dvp9_bitstream.h22 int dest_size; member

12