Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 626) sorted by relevance

12345678910>>...26

/external/webp/src/dec/
Dwebp_dec.c55 size_t* const data_size, int have_all_data, in ParseRIFF() argument
58 assert(data_size != NULL); in ParseRIFF()
62 if (*data_size >= RIFF_HEADER_SIZE && !memcmp(*data, "RIFF", TAG_SIZE)) { in ParseRIFF()
74 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) { in ParseRIFF()
80 *data_size -= RIFF_HEADER_SIZE; in ParseRIFF()
94 size_t* const data_size, in ParseVP8X() argument
100 assert(data_size != NULL); in ParseVP8X()
105 if (*data_size < CHUNK_HEADER_SIZE) { in ParseVP8X()
118 if (*data_size < vp8x_size) { in ParseVP8X()
133 *data_size -= vp8x_size; in ParseVP8X()
[all …]
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_crypter_test.cc33 size_t data_size = gsec_test_bias_random_uint32(1024) + 1; in alts_crypter_test_random_seal_unseal() local
35 size_t protected_data_size = data_size + num_overhead_bytes; in alts_crypter_test_random_seal_unseal()
37 gsec_test_random_bytes(data_buffer, data_size); in alts_crypter_test_random_seal_unseal()
39 gsec_test_copy(data_buffer, &duplicate_buffer, data_size); in alts_crypter_test_random_seal_unseal()
42 size_t size = data_size; in alts_crypter_test_random_seal_unseal()
50 GPR_ASSERT(memcmp(data_buffer, duplicate_buffer, data_size) == 0); in alts_crypter_test_random_seal_unseal()
51 GPR_ASSERT(size == data_size); in alts_crypter_test_random_seal_unseal()
60 GPR_ASSERT(memcmp(data_buffer, duplicate_buffer, data_size) == 0); in alts_crypter_test_random_seal_unseal()
61 GPR_ASSERT(size == data_size); in alts_crypter_test_random_seal_unseal()
69 size_t data_size = gsec_test_bias_random_uint32(1024) + 1; in alts_crypter_test_multiple_random_seal_unseal() local
[all …]
/external/webp/src/webp/
Ddecode.h51 WEBP_EXTERN int WebPGetInfo(const uint8_t* data, size_t data_size,
59 WEBP_EXTERN uint8_t* WebPDecodeRGBA(const uint8_t* data, size_t data_size,
63 WEBP_EXTERN uint8_t* WebPDecodeARGB(const uint8_t* data, size_t data_size,
67 WEBP_EXTERN uint8_t* WebPDecodeBGRA(const uint8_t* data, size_t data_size,
72 WEBP_EXTERN uint8_t* WebPDecodeRGB(const uint8_t* data, size_t data_size,
76 WEBP_EXTERN uint8_t* WebPDecodeBGR(const uint8_t* data, size_t data_size,
89 WEBP_EXTERN uint8_t* WebPDecodeYUV(const uint8_t* data, size_t data_size,
103 const uint8_t* data, size_t data_size,
106 const uint8_t* data, size_t data_size,
109 const uint8_t* data, size_t data_size,
[all …]
/external/rust/crates/protobuf/src/rt/
Dpacked.rs32 let data_size = vec_packed_varint_data_size(vec); in vec_packed_varint_size() localVariable
33 tag_size(field_number) + data_size.len_varint() + data_size in vec_packed_varint_size()
67 let data_size = vec_packed_varint_zigzag_data_size(vec); in vec_packed_varint_zigzag_size() localVariable
68 tag_size(field_number) + data_size.len_varint() + data_size in vec_packed_varint_zigzag_size()
93 let data_size = vec_packed_enum_or_unknown_data_size(vec); in vec_packed_enum_or_unknown_size() localVariable
94 tag_size(field_number) + data_size.len_varint() + data_size in vec_packed_enum_or_unknown_size()
109 let data_size = vec_packed_fixed_data_size::<V>(vec); in vec_packed_fixed_size() localVariable
110 tag_size(field_number) + data_size.len_varint() + data_size in vec_packed_fixed_size()
/external/webp/imageio/
Dwebpdec.c56 const uint8_t** data, size_t* data_size, in LoadWebP() argument
60 if (!ImgIoUtilReadFile(in_file, data, data_size)) return 0; in LoadWebP()
66 status = WebPGetFeatures(*data, *data_size, bitstream); in LoadWebP()
70 *data_size = 0; in LoadWebP()
79 VP8StatusCode DecodeWebP(const uint8_t* const data, size_t data_size, in DecodeWebP() argument
83 return WebPDecode(data, data_size, config); in DecodeWebP()
87 const uint8_t* const data, size_t data_size, in DecodeWebPIncremental() argument
96 WebPIDecoder* const idec = WebPIDecode(data, data_size, config); in DecodeWebPIncremental()
101 status = WebPIUpdate(idec, data, data_size); in DecodeWebPIncremental()
111 static int ExtractMetadata(const uint8_t* const data, size_t data_size, in ExtractMetadata() argument
[all …]
Dimageio_util.c36 int ImgIoUtilReadFromStdin(const uint8_t** data, size_t* data_size) { in ImgIoUtilReadFromStdin() argument
42 if (data == NULL || data_size == NULL) return 0; in ImgIoUtilReadFromStdin()
44 *data_size = 0; in ImgIoUtilReadFromStdin()
62 *data_size = size; in ImgIoUtilReadFromStdin()
72 const uint8_t** data, size_t* data_size) { in ImgIoUtilReadFile() argument
79 if (from_stdin) return ImgIoUtilReadFromStdin(data, data_size); in ImgIoUtilReadFile()
81 if (data == NULL || data_size == NULL) return 0; in ImgIoUtilReadFile()
83 *data_size = 0; in ImgIoUtilReadFile()
112 *data_size = file_size; in ImgIoUtilReadFile()
119 const uint8_t* data, size_t data_size) { in ImgIoUtilWriteFile() argument
[all …]
Dpnmdec.c38 size_t data_size; member
53 static size_t ReadLine(const uint8_t* const data, size_t off, size_t data_size, in ReadLine() argument
58 for (i = 0; i < MAX_LINE_SIZE && off < data_size; ++i) { in ReadLine()
62 if (off < data_size) { in ReadLine()
84 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadPAMFields()
150 if (info->data == NULL || info->data_size < kMinPNMHeaderSize) return 0; in ReadHeader()
159 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
164 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
168 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
185 int ReadPNM(const uint8_t* const data, size_t data_size, in ReadPNM() argument
[all …]
Dimage_dec.c37 size_t data_size) { in WebPGuessImageType() argument
39 if (data != NULL && data_size >= 12) { in WebPGuessImageType()
59 static int FailReader(const uint8_t* const data, size_t data_size, in FailReader() argument
63 (void)data_size; in FailReader()
82 size_t data_size) { in WebPGuessImageReader() argument
83 return WebPGetImageReader(WebPGuessImageType(data, data_size)); in WebPGuessImageReader()
/external/open-dice/src/
Dcbor_writer.c91 static void* CborAllocStr(enum CborType type, size_t data_size, in CborAllocStr() argument
93 CborWriteType(type, data_size, out); in CborAllocStr()
94 bool overflow = CborWriteWouldOverflowCursor(data_size, out); in CborAllocStr()
95 bool fit = CborWriteFitsInBuffer(data_size, out); in CborAllocStr()
97 out->cursor = overflow ? SIZE_MAX : out->cursor + data_size; in CborAllocStr()
101 static void CborWriteStr(enum CborType type, size_t data_size, const void* data, in CborWriteStr() argument
103 uint8_t* ptr = CborAllocStr(type, data_size, out); in CborWriteStr()
104 if (ptr && data_size) { in CborWriteStr()
105 memcpy(ptr, data, data_size); in CborWriteStr()
121 void CborWriteBstr(size_t data_size, const uint8_t* data, struct CborOut* out) { in CborWriteBstr() argument
[all …]
/external/strace/
Ddm.c154 if (offset_end <= offset || offset_end > ioc->data_size) in dm_decode_dm_target_spec()
176 printstr_ex(tcp, addr + offset_end, ioc->data_size - offset_end, in dm_decode_dm_target_spec()
207 if (ioc->data_start == ioc->data_size) in dm_decode_dm_target_deps()
225 if (offset_end <= offset || offset_end > ioc->data_size) in dm_decode_dm_target_deps()
231 space = (ioc->data_size - offset_end) / sizeof(dev_buf); in dm_decode_dm_target_deps()
263 if (ioc->data_start == ioc->data_size) in dm_decode_dm_name_list()
279 if (offset_end <= offset || offset_end > ioc->data_size) in dm_decode_dm_name_list()
293 ioc->data_size - offset_end, in dm_decode_dm_name_list()
348 if (ioc->data_start == ioc->data_size) in dm_decode_dm_target_versions()
364 if (offset_end <= offset || offset_end > ioc->data_size) in dm_decode_dm_target_versions()
[all …]
Dio.c63 kernel_ulong_t data_size; member
87 if (len > c->data_size) in print_iovec()
88 len = c->data_size; in print_iovec()
89 if (c->data_size != (kernel_ulong_t) -1) in print_iovec()
90 c->data_size -= len; in print_iovec()
94 if (len > c->data_size) in print_iovec()
95 len = c->data_size; in print_iovec()
96 if (c->data_size != (kernel_ulong_t) -1) in print_iovec()
97 c->data_size -= len; in print_iovec()
118 const kernel_ulong_t data_size) in tprint_iov_upto() argument
[all …]
/external/google-breakpad/src/processor/testdata/
Dminidump2.dump.out13 location.data_size = 100
19 location.data_size = 1408
25 location.data_size = 52
31 location.data_size = 168
37 location.data_size = 56
43 location.data_size = 24
49 location.data_size = 12
55 location.data_size = 0
61 location.data_size = 0
85 stack.memory.data_size = 0xce4
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cBufferStorageTests.cpp1684 static const GLsizeiptr data_size = 32; in iterate() local
1685 static GLubyte data[data_size]; in iterate()
1688 buffer.InitStorage(GL_ARRAY_BUFFER, GL_DYNAMIC_STORAGE_BIT, data_size, data); in iterate()
1693 gl.namedBufferStorage(buffer.m_id, data_size, data, GL_DYNAMIC_STORAGE_BIT); in iterate()
1701 gl.bufferStorage(GL_ARRAY_BUFFER, data_size, data, GL_DYNAMIC_STORAGE_BIT); in iterate()
1712 static const GLsizeiptr data_size = 32; in iterate() local
1713 static GLubyte data[data_size]; in iterate()
1746 static const GLsizeiptr data_size = 32; in iterate() local
1747 static GLubyte data[data_size]; in iterate()
1755 gl.namedBufferStorage(buffer.m_id, data_size, data, GL_MAP_PERSISTENT_BIT); in iterate()
[all …]
/external/grpc-grpc/src/core/lib/slice/
Db64.cc59 char* grpc_base64_encode(const void* vdata, size_t data_size, int url_safe, in grpc_base64_encode() argument
62 grpc_base64_estimate_encoded_size(data_size, url_safe, multiline); in grpc_base64_encode()
64 grpc_base64_encode_core(result, vdata, data_size, url_safe, multiline); in grpc_base64_encode()
68 size_t grpc_base64_estimate_encoded_size(size_t data_size, int url_safe, in grpc_base64_estimate_encoded_size() argument
71 4 * ((data_size + 3) / 3) + in grpc_base64_estimate_encoded_size()
72 2 * (multiline ? (data_size / (3 * GRPC_BASE64_MULTILINE_NUM_BLOCKS)) in grpc_base64_estimate_encoded_size()
78 void grpc_base64_encode_core(char* result, const void* vdata, size_t data_size, in grpc_base64_encode_core() argument
84 grpc_base64_estimate_encoded_size(data_size, url_safe, multiline); in grpc_base64_encode_core()
91 while (data_size >= 3) { in grpc_base64_encode_core()
99 data_size -= 3; in grpc_base64_encode_core()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Db64.cc59 char* grpc_base64_encode(const void* vdata, size_t data_size, int url_safe, in grpc_base64_encode() argument
62 grpc_base64_estimate_encoded_size(data_size, multiline); in grpc_base64_encode()
64 grpc_base64_encode_core(result, vdata, data_size, url_safe, multiline); in grpc_base64_encode()
68 size_t grpc_base64_estimate_encoded_size(size_t data_size, int multiline) { in grpc_base64_estimate_encoded_size() argument
70 4 * ((data_size + 3) / 3) + in grpc_base64_estimate_encoded_size()
71 2 * (multiline ? (data_size / (3 * GRPC_BASE64_MULTILINE_NUM_BLOCKS)) in grpc_base64_estimate_encoded_size()
77 void grpc_base64_encode_core(char* result, const void* vdata, size_t data_size, in grpc_base64_encode_core() argument
83 grpc_base64_estimate_encoded_size(data_size, multiline); in grpc_base64_encode_core()
90 while (data_size >= 3) { in grpc_base64_encode_core()
98 data_size -= 3; in grpc_base64_encode_core()
[all …]
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_enqueue_api.cpp143 size_t data_size = elementNum * typeSizes[i]; in test_svm_enqueue_api() local
144 std::vector<cl_uchar> srcHostData(data_size, 0); in test_svm_enqueue_api()
145 std::vector<cl_uchar> dstHostData(data_size, 0); in test_svm_enqueue_api()
149 cl_uchar *srcBuffer = (cl_uchar *)clSVMAlloc(context, CL_MEM_READ_WRITE, data_size, 0); in test_svm_enqueue_api()
150 cl_uchar *dstBuffer = (cl_uchar *)clSVMAlloc(context, CL_MEM_READ_WRITE, data_size, 0); in test_svm_enqueue_api()
156 …error = clEnqueueSVMMemFill(queue, srcBuffer, &fillData0[0], typeSizes[i], data_size, 1, &userEven… in test_svm_enqueue_api()
158 …error = clEnqueueSVMMemFill(queue, dstBuffer, &fillData1[0], typeSizes[i], data_size, 1, &userEven… in test_svm_enqueue_api()
177 …error = clEnqueueSVMMemcpy(queue, CL_FALSE, dst_ptr, src_ptr, data_size, 2, &eventMemFillList[0], … in test_svm_enqueue_api()
183 …error = clEnqueueSVMMap(queue, CL_FALSE, CL_MAP_READ, srcBuffer, data_size, 1, &eventMemcpy, &even… in test_svm_enqueue_api()
186 …error = clEnqueueSVMMap(queue, CL_FALSE, CL_MAP_READ, dstBuffer, data_size, 1, &eventMemcpy, &even… in test_svm_enqueue_api()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dencode_proto_op.cc77 size_t data_size = 0; in TotalPackedSize() local
80 data_size += WireFormatLite::Int64Size( in TotalPackedSize()
83 return data_size; in TotalPackedSize()
90 size_t data_size = 0; in TotalPackedSize() local
93 data_size += WireFormatLite::UInt64Size( in TotalPackedSize()
96 return data_size; in TotalPackedSize()
103 size_t data_size = 0; in TotalPackedSize() local
106 data_size += WireFormatLite::Int32Size( in TotalPackedSize()
109 return data_size; in TotalPackedSize()
116 size_t data_size = 0; in TotalPackedSize() local
[all …]
/external/cronet/base/win/
Dpe_image_reader.cc121 size_t data_size = 0; in GetExportSection() local
122 const uint8_t* data = GetImageData(IMAGE_DIRECTORY_ENTRY_EXPORT, &data_size); in GetExportSection()
125 if (!data || data_size < sizeof(IMAGE_EXPORT_DIRECTORY)) in GetExportSection()
128 *section_size = data_size; in GetExportSection()
133 size_t data_size = 0; in GetNumberOfDebugEntries() local
134 const uint8_t* data = GetImageData(IMAGE_DIRECTORY_ENTRY_DEBUG, &data_size); in GetNumberOfDebugEntries()
135 return data ? (data_size / sizeof(IMAGE_DEBUG_DIRECTORY)) : 0; in GetNumberOfDebugEntries()
163 size_t data_size = 0; in EnumCertificates() local
165 GetImageData(IMAGE_DIRECTORY_ENTRY_SECURITY, &data_size); in EnumCertificates()
169 while (data_size) { in EnumCertificates()
[all …]
/external/nanopb-c/
Dpb_decode.c52 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
438 void *pItem = (char*)iter->pData + iter->pos->data_size * (*size); in decode_static_field()
458 char *pItem = (char*)iter->pData + iter->pos->data_size * (*size); in decode_static_field()
473 memset(iter->pData, 0, iter->pos->data_size); in decode_static_field()
490 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() argument
494 if (data_size == 0 || array_size == 0) in allocate_field()
501 if (data_size == 1 && array_size == 1) in allocate_field()
503 data_size = 2; in allocate_field()
514 if (data_size >= check_limit || array_size >= check_limit) in allocate_field()
517 if (size_max / array_size < data_size) in allocate_field()
[all …]
/external/arm-trusted-firmware/plat/nxp/common/nv_storage/
Dplat_nv_storage.c74 int data_size) in wr_nv_app_data() argument
84 if ((data_size > 1) || (*data != DEFAULT_SET_VALUE)) { in wr_nv_app_data()
95 assert((nv_base_addr + data_offset + data_size) > (nv_base_addr + F_SECTOR_ERASE_SZ)); in wr_nv_app_data()
105 ret = xspi_read(nv_base_addr + data_offset, (uint32_t *)read_val, data_size); in wr_nv_app_data()
109 if (memcmp(read_val, ready_to_write_val, data_size) == 0) { in wr_nv_app_data()
110 xspi_write(nv_base_addr + data_offset, data, data_size); in wr_nv_app_data()
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c50 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t …
379 void *pItem = (char*)iter->pData + iter->pos->data_size * (*size); in decode_static_field()
398 void *pItem = (char*)iter->pData + iter->pos->data_size * (*size); in decode_static_field()
412 memset(iter->pData, 0, iter->pos->data_size); in decode_static_field()
427 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t … in allocate_field() argument
431 if (data_size == 0 || array_size == 0) in allocate_field()
441 if (data_size >= check_limit || array_size >= check_limit) in allocate_field()
444 if (size_max / array_size < data_size) in allocate_field()
454 ptr = pb_realloc(ptr, array_size * data_size); in allocate_field()
514 if (!allocate_field(stream, iter->pData, iter->pos->data_size, 1)) in decode_pointer_field()
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_common.c159 if (sig->data_size > size) { in VerifyData()
164 if (!RSAVerifyBinary_f(NULL, key, data, sig->data_size, in VerifyData()
237 if (block->key_block_size < sig->data_size) { in KeyBlockVerify()
244 sig->data_size, in KeyBlockVerify()
272 if (block->key_block_size < sig->data_size) { in KeyBlockVerify()
288 if (sig->data_size < sizeof(VbKeyBlockHeader)) { in KeyBlockVerify()
299 if (VerifyPublicKeyInside(block, sig->data_size, &block->data_key)) { in KeyBlockVerify()
336 if (preamble->preamble_size < sig->data_size) { in VerifyFirmwarePreamble()
347 if (sig->data_size < sizeof(VbFirmwarePreambleHeader)) { in VerifyFirmwarePreamble()
353 if (VerifySignatureInside(preamble, sig->data_size, in VerifyFirmwarePreamble()
[all …]
/external/openthread/third_party/mbedtls/repo/library/
Dpsa_crypto_rsa.c171 size_t data_size, in mbedtls_psa_rsa_export_key() argument
177 uint8_t *pos = data + data_size; in mbedtls_psa_rsa_export_key()
187 ret = mbedtls_pk_write_key_der( &pk, data, data_size ); in mbedtls_psa_rsa_export_key()
194 memset( data, 0, data_size ); in mbedtls_psa_rsa_export_key()
201 if( 2 * (size_t) ret <= data_size ) in mbedtls_psa_rsa_export_key()
203 memcpy( data, data + data_size - ret, ret ); in mbedtls_psa_rsa_export_key()
204 memset( data + data_size - ret, 0, ret ); in mbedtls_psa_rsa_export_key()
206 else if( (size_t) ret < data_size ) in mbedtls_psa_rsa_export_key()
208 memmove( data, data + data_size - ret, ret ); in mbedtls_psa_rsa_export_key()
209 memset( data + ret, 0, data_size - ret ); in mbedtls_psa_rsa_export_key()
[all …]
/external/openthread/third_party/mbedtls/repo/tests/src/drivers/
Dtest_driver_key_management.c230 uint8_t *data, size_t data_size, size_t *data_length ) in mbedtls_test_opaque_export_key() argument
258 if( data_size < sizeof( mbedtls_test_driver_ecdsa_key ) ) in mbedtls_test_opaque_export_key()
279 if( data_size < sizeof( mbedtls_test_driver_aes_key ) ) in mbedtls_test_opaque_export_key()
295 uint8_t *data, size_t data_size, size_t *data_length ) in mbedtls_test_transparent_export_public_key() argument
305 data_size ) in mbedtls_test_transparent_export_public_key()
323 data, data_size, data_length ) ); in mbedtls_test_transparent_export_public_key()
329 data, data_size, data_length ) ); in mbedtls_test_transparent_export_public_key()
340 data, data_size, data_length ) ); in mbedtls_test_transparent_export_public_key()
346 data, data_size, data_length ) ); in mbedtls_test_transparent_export_public_key()
360 uint8_t *data, size_t data_size, size_t *data_length ) in mbedtls_test_opaque_export_public_key() argument
[all …]
/external/vboot_reference/firmware/lib20/
Dcommon.c97 if (sig->data_size > size) { in vb2_verify_data()
120 rv = vb2_digest_extend(dc, data, sig->data_size); in vb2_verify_data()
168 if (block->keyblock_size < sig->data_size) { in vb2_verify_keyblock()
181 if (sig->data_size < sizeof(struct vb2_keyblock)) { in vb2_verify_keyblock()
192 if (vb2_verify_packed_key_inside(block, sig->data_size, in vb2_verify_keyblock()
240 if (preamble->preamble_size < sig->data_size) { in vb2_verify_fw_preamble()
251 if (sig->data_size < sizeof(struct vb2_fw_preamble)) { in vb2_verify_fw_preamble()
257 if (vb2_verify_signature_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()
264 if (vb2_verify_packed_key_inside(preamble, sig->data_size, in vb2_verify_fw_preamble()

12345678910>>...26