Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 148) sorted by relevance

123456

/third_party/node/deps/brotli/c/enc/
Dbackward_references_hq.c90 size_t num_bytes) { in InitZopfliCostModel() argument
91 self->num_bytes_ = num_bytes; in InitZopfliCostModel()
92 self->literal_costs_ = BROTLI_ALLOC(m, float, num_bytes + 2); in InitZopfliCostModel()
187 size_t num_bytes = self->num_bytes_; in ZopfliCostModelSetFromCommands() local
189 for (i = 0; i < num_bytes; ++i) { in ZopfliCostModelSetFromCommands()
206 size_t num_bytes = self->num_bytes_; in ZopfliCostModelSetFromLiteralCosts() local
208 BrotliEstimateBitCostsForLiterals(position, num_bytes, ringbuffer_mask, in ZopfliCostModelSetFromLiteralCosts()
211 for (i = 0; i < num_bytes; ++i) { in ZopfliCostModelSetFromLiteralCosts()
304 const size_t num_bytes, in ComputeMinimumCopyLength() argument
311 while (pos + len <= num_bytes && nodes[pos + len].u.cost <= min_cost) { in ComputeMinimumCopyLength()
[all …]
Dbackward_references_hq.h27 size_t num_bytes,
34 size_t num_bytes,
81 MemoryManager* m, size_t num_bytes,
87 const size_t num_bytes, const size_t block_start, const ZopfliNode* nodes,
/third_party/skia/third_party/externals/brotli/c/enc/
Dbackward_references_hq.c90 size_t num_bytes) { in InitZopfliCostModel() argument
91 self->num_bytes_ = num_bytes; in InitZopfliCostModel()
92 self->literal_costs_ = BROTLI_ALLOC(m, float, num_bytes + 2); in InitZopfliCostModel()
187 size_t num_bytes = self->num_bytes_; in ZopfliCostModelSetFromCommands() local
189 for (i = 0; i < num_bytes; ++i) { in ZopfliCostModelSetFromCommands()
206 size_t num_bytes = self->num_bytes_; in ZopfliCostModelSetFromLiteralCosts() local
208 BrotliEstimateBitCostsForLiterals(position, num_bytes, ringbuffer_mask, in ZopfliCostModelSetFromLiteralCosts()
211 for (i = 0; i < num_bytes; ++i) { in ZopfliCostModelSetFromLiteralCosts()
304 const size_t num_bytes, in ComputeMinimumCopyLength() argument
311 while (pos + len <= num_bytes && nodes[pos + len].u.cost <= min_cost) { in ComputeMinimumCopyLength()
[all …]
Dbackward_references_hq.h27 size_t num_bytes,
34 size_t num_bytes,
81 MemoryManager* m, size_t num_bytes,
87 const size_t num_bytes, const size_t block_start, const ZopfliNode* nodes,
/third_party/mesa3d/src/util/tests/
Dblob_test.cpp130 size_t delta, last, num_bytes; in TEST() local
149 for (num_bytes = 1; num_bytes < sizeof(intptr_t); num_bytes++) { in TEST()
150 blob_write_bytes(&blob, bytes, num_bytes); in TEST()
169 for (num_bytes = 1; num_bytes < sizeof(intptr_t); num_bytes++) { in TEST()
170 EXPECT_U8_ARRAY_EQUAL(bytes, (const uint8_t *) blob_read_bytes(&reader, num_bytes), in TEST()
171 num_bytes) << "unaligned read of bytes"; in TEST()
/third_party/f2fs-tools/tools/sg_write_buffer/include/
Dsg_unaligned.h102 static inline uint64_t sg_get_unaligned_be(int num_bytes, const void *p) in sg_get_unaligned_be() argument
104 if ((num_bytes <= 0) || (num_bytes > (int)sizeof(uint64_t))) in sg_get_unaligned_be()
110 for (++xp; num_bytes > 1; ++xp, --num_bytes) in sg_get_unaligned_be()
244 static inline uint64_t sg_get_unaligned_le(int num_bytes, const void *p) in sg_get_unaligned_le() argument
246 if ((num_bytes <= 0) || (num_bytes > (int)sizeof(uint64_t))) in sg_get_unaligned_le()
249 const uint8_t * xp = (const uint8_t *)p + (num_bytes - 1); in sg_get_unaligned_le()
252 for (--xp; num_bytes > 1; --xp, --num_bytes) in sg_get_unaligned_le()
/third_party/skia/third_party/externals/libjpeg-turbo/
Djdatasrc-tj.c110 skip_input_data(j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument
118 if (num_bytes > 0) { in skip_input_data()
119 while (num_bytes > (long)src->bytes_in_buffer) { in skip_input_data()
120 num_bytes -= (long)src->bytes_in_buffer; in skip_input_data()
126 src->next_input_byte += (size_t)num_bytes; in skip_input_data()
127 src->bytes_in_buffer -= (size_t)num_bytes; in skip_input_data()
Djdatasrc.c163 skip_input_data(j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument
171 if (num_bytes > 0) { in skip_input_data()
172 while (num_bytes > (long)src->bytes_in_buffer) { in skip_input_data()
173 num_bytes -= (long)src->bytes_in_buffer; in skip_input_data()
179 src->next_input_byte += (size_t)num_bytes; in skip_input_data()
180 src->bytes_in_buffer -= (size_t)num_bytes; in skip_input_data()
/third_party/gstreamer/gstreamer/tests/check/elements/
Dfilesink.c81 #define PUSH_BYTES(num_bytes) \ argument
83 GstBuffer *buf = gst_buffer_new_and_alloc(num_bytes); \
84 GRand *rand = g_rand_new_with_seed (num_bytes); \
90 for (i = 0; i < num_bytes; ++i) \
98 #define PUSH_BUFFER_WITH_MULTIPLE_MEM_BLOCKS(num_mem_blocks, num_bytes) \ argument
106 GstMemory* mem_block = gst_allocator_alloc(NULL,num_bytes,NULL); \
107 GRand *rand = g_rand_new_with_seed (num_bytes); \
110 for (j = 0; j < num_bytes; ++j) \
121 #define PUSH_BUFFER_LIST_WITH_MULTI_MEM_BLOCKS_BUFFERS(num_buffers, num_mem_blocks, num_bytes) \ argument
132 GstMemory* mem_block = gst_allocator_alloc(NULL,num_bytes,NULL); \
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/
D1-1.c52 int i, num_bytes; in main() local
62 num_bytes = rand() % i; in main()
64 ret_str = strncpy(sample_str_2, sample_str_1, num_bytes); in main()
66 sample_str_2[num_bytes] = '\0'; in main()
67 sample_str_1[num_bytes] = '\0'; in main()
/third_party/mesa3d/src/imagination/rogue/
Drogue_encode.c94 size_t num_bytes; member
107 .num_bytes = 8,
112 .num_bytes = 8,
117 .num_bytes = 8,
122 .num_bytes = 8,
141 .num_bytes = 16,
229 .num_bytes = 16,
285 .num_bytes = 16,
341 .num_bytes = 16,
380 .num_bytes = 16,
[all …]
/third_party/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect02.c63 unsigned int num_bytes; in main() local
76 num_bytes = getpagesize(); in main()
80 bytes_to_write = MIN(strlen(buf), num_bytes); in main()
82 num_bytes -= in main()
85 } while (0 < num_bytes); in main()
/third_party/skia/third_party/externals/zlib/google/
Dzip_reader.cc48 bool WriteBytes(const char* data, int num_bytes) override;
72 bool StringWriterDelegate::WriteBytes(const char* data, int num_bytes) { in WriteBytes() argument
73 if (output_->size() + num_bytes > max_read_bytes_) in WriteBytes()
75 output_->append(data, num_bytes); in WriteBytes()
462 bool FileWriterDelegate::WriteBytes(const char* data, int num_bytes) { in WriteBytes() argument
463 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes()
466 return bytes_written == num_bytes; in WriteBytes()
492 bool FilePathWriterDelegate::WriteBytes(const char* data, int num_bytes) { in WriteBytes() argument
493 return num_bytes == file_.WriteAtCurrentPos(data, num_bytes); in WriteBytes()
Dzip_writer.cc23 int num_bytes; in AddFileContentToZip() local
26 num_bytes = file.ReadAtCurrentPos(buf, zip::internal::kZipBufSize); in AddFileContentToZip()
28 if (num_bytes > 0) { in AddFileContentToZip()
29 if (zipWriteInFileInZip(zip_file, buf, num_bytes) != ZIP_OK) { in AddFileContentToZip()
35 } while (num_bytes > 0); in AddFileContentToZip()
/third_party/skia/third_party/externals/spirv-tools/source/util/
Dstring_utils.h51 size_t num_bytes = input.size(); in MakeVector() local
54 for (size_t byte_index = 0; byte_index <= num_bytes; byte_index++) { in MakeVector()
56 (byte_index < num_bytes ? uint8_t(input[byte_index]) : uint8_t(0)); in MakeVector()
64 if ((num_bytes + 1) % sizeof(uint32_t)) { in MakeVector()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
Dstring_utils.h51 size_t num_bytes = input.size(); in MakeVector() local
54 for (size_t byte_index = 0; byte_index <= num_bytes; byte_index++) { in MakeVector()
56 (byte_index < num_bytes ? uint8_t(input[byte_index]) : uint8_t(0)); in MakeVector()
64 if ((num_bytes + 1) % sizeof(uint32_t)) { in MakeVector()
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Drndbuffersize.c355 guint num_bytes, avail; in gst_rnd_buffer_size_drain_adapter() local
364 num_bytes = g_rand_int_range (self->rand, self->min, self->max); in gst_rnd_buffer_size_drain_adapter()
366 num_bytes = self->min; in gst_rnd_buffer_size_drain_adapter()
369 GST_LOG_OBJECT (self, "pulling %u bytes out of adapter", num_bytes); in gst_rnd_buffer_size_drain_adapter()
371 buf = gst_adapter_take_buffer (self->adapter, num_bytes); in gst_rnd_buffer_size_drain_adapter()
455 guint num_bytes, size; in gst_rnd_buffer_size_loop() local
461 num_bytes = g_rand_int_range (self->rand, self->min, self->max); in gst_rnd_buffer_size_loop()
463 num_bytes = self->min; in gst_rnd_buffer_size_loop()
467 num_bytes, self->offset); in gst_rnd_buffer_size_loop()
469 ret = gst_pad_pull_range (self->sinkpad, self->offset, num_bytes, &buf); in gst_rnd_buffer_size_loop()
[all …]
/third_party/ffmpeg/libavcodec/
Dmlp.c107 int num_bytes = (bit_size + 2) / 8; in ff_mlp_restart_checksum() local
110 crc = av_crc(crc_1D, crc, buf + 1, num_bytes - 2); in ff_mlp_restart_checksum()
111 crc ^= buf[num_bytes - 1]; in ff_mlp_restart_checksum()
117 crc ^= (buf[num_bytes] >> (7 - i)) & 1; in ff_mlp_restart_checksum()
/third_party/spirv-tools/source/util/
Dstring_utils.h54 size_t num_bytes = input.size(); in AppendToVector() local
57 for (size_t byte_index = 0; byte_index <= num_bytes; byte_index++) { in AppendToVector()
59 (byte_index < num_bytes ? uint8_t(input[byte_index]) : uint8_t(0)); in AppendToVector()
67 if ((num_bytes + 1) % sizeof(uint32_t)) { in AppendToVector()
/third_party/skia/third_party/externals/expat/expat/tests/
Dmemcheck.c46 size_t num_bytes; member
63 entry->num_bytes = size; in tracking_malloc()
173 entry->num_bytes = size; in tracking_realloc()
186 printf("Allocated %lu bytes at %p\n", (long unsigned)entry->num_bytes, in tracking_report()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_jpeg_memory_source.cpp20 void SkipInputData(j_decompress_ptr cinfo, long num_bytes) { in SkipInputData() argument
21 if (num_bytes > 0) { in SkipInputData()
27 ConvertUnsigned(static_cast<unsigned long>(num_bytes), in SkipInputData()
/third_party/skia/third_party/externals/imgui/examples/example_android_opengl3/
Dmain.cpp358 int num_bytes = 0; in GetAssetData() local
362 num_bytes = AAsset_getLength(asset_descriptor); in GetAssetData()
363 *outData = IM_ALLOC(num_bytes); in GetAssetData()
364 int64_t num_bytes_read = AAsset_read(asset_descriptor, *outData, num_bytes); in GetAssetData()
366 IM_ASSERT(num_bytes_read == num_bytes); in GetAssetData()
368 return num_bytes; in GetAssetData()
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dcurlfilesink.c69 gint num_bytes; in test_set_and_play_buffer() local
71 num_bytes = strlen (data); in test_set_and_play_buffer()
75 data, num_bytes, 0, num_bytes, data, NULL)); in test_set_and_play_buffer()
85 gint num_bytes; in test_set_and_fail_to_play_buffer() local
87 num_bytes = strlen (data); in test_set_and_fail_to_play_buffer()
91 data, num_bytes, 0, num_bytes, data, NULL)); in test_set_and_fail_to_play_buffer()
/third_party/cef/tests/shared/browser/
Dmain_message_loop_external_pump_linux.cc252 const size_t num_bytes = in HandleCheck() local
254 if (num_bytes < sizeof(int64)) { in HandleCheck()
257 if (num_bytes == sizeof(int64)) in HandleCheck()
259 if (num_bytes == sizeof(int64) * 2) in HandleCheck()
/third_party/node/deps/zlib/google/
Dzip_writer.cc39 const int num_bytes = in AddFileContent() local
42 if (num_bytes < 0) { in AddFileContent()
47 if (num_bytes == 0) in AddFileContent()
50 if (zipWriteInFileInZip(zip_file_, buf, num_bytes) != ZIP_OK) { in AddFileContent()
56 progress_.bytes += num_bytes; in AddFileContent()

123456