Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 - 25 of 131) sorted by relevance

123456

/third_party/node/deps/brotli/c/enc/
H A Dbackward_references_hq.c90 size_t num_bytes) { in InitZopfliCostModel()
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()
311 while (pos + len <= num_bytes in ComputeMinimumCopyLength()
88 InitZopfliCostModel( MemoryManager* m, ZopfliCostModel* self, const BrotliDistanceParams* dist, size_t num_bytes) InitZopfliCostModel() argument
302 ComputeMinimumCopyLength(const float start_cost, const ZopfliNode* nodes, const size_t num_bytes, const size_t pos) ComputeMinimumCopyLength() argument
402 UpdateNodes( const size_t num_bytes, const size_t block_start, const size_t pos, const uint8_t* ringbuffer, const size_t ringbuffer_mask, const BrotliEncoderParams* params, const size_t max_backward_limit, const int* starting_dist_cache, const size_t num_matches, const BackwardMatch* matches, const ZopfliCostModel* model, StartPosQueue* queue, ZopfliNode* nodes) UpdateNodes() argument
554 ComputeShortestPathFromNodes(size_t num_bytes, ZopfliNode* nodes) ComputeShortestPathFromNodes() argument
571 BrotliZopfliCreateCommands(const size_t num_bytes, const size_t block_start, const ZopfliNode* nodes, int* dist_cache, size_t* last_insert_len, const BrotliEncoderParams* params, Command* commands, size_t* num_literals) BrotliZopfliCreateCommands() argument
616 ZopfliIterate(size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, const BrotliEncoderParams* params, const size_t gap, const int* dist_cache, const ZopfliCostModel* model, const uint32_t* num_matches, const BackwardMatch* matches, ZopfliNode* nodes) ZopfliIterate() argument
657 BrotliZopfliComputeShortestPath(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, const int* dist_cache, Hasher* hasher, ZopfliNode* nodes) BrotliZopfliComputeShortestPath() argument
722 BrotliCreateZopfliBackwardReferences(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, Hasher* hasher, int* dist_cache, size_t* last_insert_len, Command* commands, size_t* num_commands, size_t* num_literals) BrotliCreateZopfliBackwardReferences() argument
739 BrotliCreateHqZopfliBackwardReferences(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, Hasher* hasher, int* dist_cache, size_t* last_insert_len, Command* commands, size_t* num_commands, size_t* num_literals) BrotliCreateHqZopfliBackwardReferences() argument
[all...]
H A Dbackward_references_hq.h27 size_t num_bytes,
34 size_t num_bytes,
68 position + num_bytes.
72 Note that the sum of the lengths of all commands can be less than num_bytes.
74 On return, the nodes[0..num_bytes] array will have the following
76 For each i in [1..num_bytes], if nodes[i].cost < kInfinity, then
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/
H A Dbackward_references_hq.c90 size_t num_bytes) { in InitZopfliCostModel()
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()
311 while (pos + len <= num_bytes in ComputeMinimumCopyLength()
88 InitZopfliCostModel( MemoryManager* m, ZopfliCostModel* self, const BrotliDistanceParams* dist, size_t num_bytes) InitZopfliCostModel() argument
302 ComputeMinimumCopyLength(const float start_cost, const ZopfliNode* nodes, const size_t num_bytes, const size_t pos) ComputeMinimumCopyLength() argument
402 UpdateNodes( const size_t num_bytes, const size_t block_start, const size_t pos, const uint8_t* ringbuffer, const size_t ringbuffer_mask, const BrotliEncoderParams* params, const size_t max_backward_limit, const int* starting_dist_cache, const size_t num_matches, const BackwardMatch* matches, const ZopfliCostModel* model, StartPosQueue* queue, ZopfliNode* nodes) UpdateNodes() argument
554 ComputeShortestPathFromNodes(size_t num_bytes, ZopfliNode* nodes) ComputeShortestPathFromNodes() argument
571 BrotliZopfliCreateCommands(const size_t num_bytes, const size_t block_start, const ZopfliNode* nodes, int* dist_cache, size_t* last_insert_len, const BrotliEncoderParams* params, Command* commands, size_t* num_literals) BrotliZopfliCreateCommands() argument
616 ZopfliIterate(size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, const BrotliEncoderParams* params, const size_t gap, const int* dist_cache, const ZopfliCostModel* model, const uint32_t* num_matches, const BackwardMatch* matches, ZopfliNode* nodes) ZopfliIterate() argument
657 BrotliZopfliComputeShortestPath(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, const int* dist_cache, Hasher* hasher, ZopfliNode* nodes) BrotliZopfliComputeShortestPath() argument
722 BrotliCreateZopfliBackwardReferences(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, Hasher* hasher, int* dist_cache, size_t* last_insert_len, Command* commands, size_t* num_commands, size_t* num_literals) BrotliCreateZopfliBackwardReferences() argument
739 BrotliCreateHqZopfliBackwardReferences(MemoryManager* m, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask, ContextLut literal_context_lut, const BrotliEncoderParams* params, Hasher* hasher, int* dist_cache, size_t* last_insert_len, Command* commands, size_t* num_commands, size_t* num_literals) BrotliCreateHqZopfliBackwardReferences() argument
[all...]
H A Dbackward_references_hq.h27 size_t num_bytes,
34 size_t num_bytes,
68 position + num_bytes.
72 Note that the sum of the lengths of all commands can be less than num_bytes.
74 On return, the nodes[0..num_bytes] array will have the following
76 For each i in [1..num_bytes], if nodes[i].cost < kInfinity, then
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/
H A 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) << "unaligne in TEST()
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/
H A 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()
H A 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/
H A 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/backends/backend/
H A Depsonds-jpeg.c83 jpeg_skip_input_data(j_decompress_ptr cinfo, long num_bytes) in jpeg_skip_input_data() argument
87 if (num_bytes > 0) { in jpeg_skip_input_data()
89 while (num_bytes > (long)src->pub.bytes_in_buffer) { in jpeg_skip_input_data()
90 num_bytes -= (long)src->pub.bytes_in_buffer; in jpeg_skip_input_data()
94 src->pub.next_input_byte += (size_t) num_bytes; in jpeg_skip_input_data()
95 src->pub.bytes_in_buffer -= (size_t) num_bytes; in jpeg_skip_input_data()
H A Dqcam.c819 size_t count, len, num_bytes; in reader_process() local
855 num_bytes = req.num_bytes; in reader_process()
858 (u_long) num_bytes); in reader_process()
867 && (!extra || buffer_size < num_bytes in reader_process()
868 || buffer_size >= 2 * num_bytes)) in reader_process()
871 extra = realloc (extra, num_bytes); in reader_process()
873 extra = malloc (num_bytes); in reader_process()
877 (long) num_bytes); in reader_process()
882 if (buffer_size < num_bytes || buffer_siz in reader_process()
[all...]
/third_party/mesa3d/src/imagination/rogue/
H A 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
[all...]
/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect02.c63 size_t 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()
86 } while (0 < num_bytes); in main()
/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dstring_utils.h51 size_t num_bytes = input.size(); in MakeVector() local
52 // SPIR-V strings are null-terminated. The byte_index == num_bytes in MakeVector()
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/
H A Dstring_utils.h51 size_t num_bytes = input.size(); in MakeVector() local
52 // SPIR-V strings are null-terminated. The byte_index == num_bytes in MakeVector()
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/backends/backend/escl/
H A Descl_jpeg.c81 * \fn static void skip_input_data(j_decompress_ptr cinfo, long num_bytes)
85 skip_input_data(j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument
89 if (num_bytes > 0) { in skip_input_data()
90 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data()
91 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data()
94 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data()
95 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
/third_party/skia/third_party/externals/zlib/google/
H A Dzip_reader.cc46 // Appends |num_bytes| bytes from |data| to the output string. Returns false
47 // if |num_bytes| will cause the string to exceed |max_read_bytes|.
48 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()
375 // |num_bytes| is less than the length of current entry. in ExtractCurrentEntryToString()
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 WriteBytes(const char* data, int num_bytes) WriteBytes() argument
[all...]
H A 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()
H A Dzip_reader.h41 virtual bool WriteBytes(const char* data, int num_bytes) = 0;
251 // Writes |num_bytes| bytes of |data| to the file, returning false on error or
253 bool WriteBytes(const char* data, int num_bytes) override;
285 // Writes |num_bytes| bytes of |data| to the file, returning false if not all
287 bool WriteBytes(const char* data, int num_bytes) override;
/third_party/skia/third_party/externals/expat/expat/tests/
H A 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/spirv-tools/source/util/
H A Dstring_utils.h54 size_t num_bytes = input.size(); in AppendToVector() local
55 // SPIR-V strings are null-terminated. The byte_index == num_bytes in AppendToVector()
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/dng_sdk/source/
H A Ddng_jpeg_memory_source.cpp20 void SkipInputData(j_decompress_ptr cinfo, long num_bytes) { in SkipInputData() argument
21 if (num_bytes > 0) { in SkipInputData()
22 // Convert num_bytes to a size_t. in SkipInputData()
23 // We've established that num_bytes is positive, to it's safe to cast it in SkipInputData()
27 ConvertUnsigned(static_cast<unsigned long>(num_bytes), in SkipInputData()
/third_party/skia/third_party/externals/imgui/examples/example_android_opengl3/
H A 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/ffmpeg/libavcodec/
H A Dmlp.c117 int num_bytes = (bit_size + 2) / 8; in ff_mlp_restart_checksum() local
120 crc = av_crc(crc_1D, crc, buf + 1, num_bytes - 2); in ff_mlp_restart_checksum()
121 crc ^= buf[num_bytes - 1]; in ff_mlp_restart_checksum()
127 crc ^= (buf[num_bytes] >> (7 - i)) & 1; in ff_mlp_restart_checksum()
/third_party/mbedtls/library/
H A Doid.c1010 size_t num_bytes = 0; in oid_subidentifier_num_bytes() local
1014 num_bytes++; in oid_subidentifier_num_bytes()
1017 return num_bytes; in oid_subidentifier_num_bytes()
1024 size_t num_bytes = oid_subidentifier_num_bytes(value); in oid_subidentifier_encode_into() local
1026 if ((size_t) (bound - *p) < num_bytes) { in oid_subidentifier_encode_into()
1029 (*p)[num_bytes - 1] = (unsigned char) (value & 0x7f); in oid_subidentifier_encode_into()
1032 for (size_t i = 2; i <= num_bytes; i++) { in oid_subidentifier_encode_into()
1033 (*p)[num_bytes - i] = 0x80 | (unsigned char) (value & 0x7f); in oid_subidentifier_encode_into()
1036 *p += num_bytes; in oid_subidentifier_encode_into()
/third_party/vixl/src/
H A Dpool-manager-impl.h41 int num_bytes, in Emit()
86 num_bytes, in Emit()
130 int num_bytes, in ShouldSkipObject()
138 T max_actual_location = pc + num_bytes + max_pool_size_; in ShouldSkipObject()
191 int num_bytes, in MustEmit()
198 pc += num_bytes; in MustEmit()
251 if (last_reachable >= pc + num_bytes + max_pool_size_) return false; in MustEmit()
39 Emit(MacroAssemblerInterface* masm, T pc, int num_bytes, ForwardReference<T>* new_reference, LocationBase<T>* new_object, EmitOption option) Emit() argument
128 ShouldSkipObject(PoolObject<T>* pool_object, T pc, int num_bytes, ForwardReference<T>* new_reference, LocationBase<T>* new_object, PoolObject<T>* existing_object) const ShouldSkipObject() argument
190 MustEmit(T pc, int num_bytes, ForwardReference<T>* reference, LocationBase<T>* label_base) const MustEmit() argument

Completed in 26 milliseconds

123456