Home
last modified time | relevance | path

Searched refs:buffer_length (Results 1 – 25 of 76) sorted by relevance

1234

/external/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc116 int32_t buffer_length = std::min<int32_t>(COPY_BUFFER_SIZE, length); in CopyTo() local
118 Get(index + src_offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo()
123 buffer_length = std::min<int32_t>(b.size(), remaining_length); in CopyTo()
136 int32_t buffer_length = std::min<int32_t>(COPY_BUFFER_SIZE, length); in CopyTo() local
137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo()
140 buffer_length = std::min<int32_t>(b.size(), length - index); in CopyTo()
149 int32_t buffer_length = std::min<int32_t>(COPY_BUFFER_SIZE, length); in CopyFrom() local
150 while ((bytes_read = is->Read(&b, 0, buffer_length)) > 0) { in CopyFrom()
160 buffer_length = std::min<int32_t>(b.size(), length); in CopyFrom()
169 int32_t buffer_length = COPY_BUFFER_SIZE; in CopyFrom() local
[all …]
/external/webrtc/modules/audio_processing/transient/
Dtransient_detector_unittest.cc68 const size_t buffer_length = sample_rate_hz * ts::kChunkSizeMs / 1000; in TEST() local
69 std::unique_ptr<float[]> buffer(new float[buffer_length]); in TEST()
75 while (ReadInt16FromFileToFloatBuffer(&audio_file, buffer_length, in TEST()
76 buffer.get()) == buffer_length) { in TEST()
80 detector.Detect(buffer.get(), buffer_length, NULL, 0); in TEST()
/external/flac/src/plugin_xmms/
Dhttp.c71 static gint sock, rd_index, wr_index, buffer_length, prebuffer_length; variable
206 return buffer_length - (rd_index - wr_index); in http_used()
213 return (buffer_length - (wr_index - rd_index)) - 1; in http_free()
241 if (length > buffer_length) { in flac_http_read()
242 length = buffer_length; in flac_http_read()
256 rd_index = (rd_index + 1) % buffer_length; in flac_http_read()
265 cnt = min(meta_len, buffer_length - rd_index); in flac_http_read()
267 rd_index = (rd_index + cnt) % buffer_length; in flac_http_read()
292 cnt = min3(len, buffer_length - rd_index, http_used()); in flac_http_read()
295 …cnt = min4(len, buffer_length - rd_index, http_used(), icy_metaint - (gint) (buffer_read % icy_met… in flac_http_read()
[all …]
/external/libiio/src/examples/
Ddummy-iiostream.c90 static int buffer_length = 1; variable
177 buffer_length = atoi(optarg); in parse_options()
273 printf("* Creating non-cyclic IIO buffers with %d samples\n", buffer_length); in main()
274 rxbuf = iio_device_create_buffer(dev, buffer_length, false); in main()
343 buf = malloc(sample_size * buffer_length); in main()
346 bytes = iio_channel_read_raw(channels[i], rxbuf, buf, sample_size * buffer_length); in main()
348 bytes = iio_channel_read(channels[i], rxbuf, buf, sample_size * buffer_length); in main()
/external/zlib/contrib/tests/fuzzers/
Dinflate_fuzzer.cc20 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
27 stream.avail_out = buffer_length; in LLVMFuzzerTestOneInput()
28 stream.total_out = buffer_length; in LLVMFuzzerTestOneInput()
Ddeflate_set_dictionary_fuzzer.cc19 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
26 stream.avail_out = buffer_length; in LLVMFuzzerTestOneInput()
27 stream.total_out = buffer_length; in LLVMFuzzerTestOneInput()
Duncompress_fuzzer.cc15 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
17 uncompress(buffer, &buffer_length, data, static_cast<uLong>(size))) { in LLVMFuzzerTestOneInput()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_runtime.h128 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length,
144 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length,
150 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length,
163 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length,
Dcpu_runtime.cc233 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length, in __xla_cpu_runtime_AcquireInfeedBufferForDequeue() argument
247 CHECK_EQ(buffer->length(), buffer_length) in __xla_cpu_runtime_AcquireInfeedBufferForDequeue()
248 << "XLA program infeed request buffer size " << buffer_length in __xla_cpu_runtime_AcquireInfeedBufferForDequeue()
257 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length, in __xla_cpu_runtime_ReleaseInfeedBufferAfterDequeue() argument
270 xfeed->infeed()->ReleaseCurrentBuffer(buffer_length, buffer_ptr, in __xla_cpu_runtime_ReleaseInfeedBufferAfterDequeue()
276 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length, in __xla_cpu_runtime_AcquireOutfeedBufferForPopulation() argument
290 CHECK_EQ(buffer->length(), buffer_length) in __xla_cpu_runtime_AcquireOutfeedBufferForPopulation()
291 << "XLA program outfeed request buffer size " << buffer_length in __xla_cpu_runtime_AcquireOutfeedBufferForPopulation()
300 const xla::ExecutableRunOptions* run_options, xla::int32 buffer_length, in __xla_cpu_runtime_ReleaseOutfeedBufferAfterPopulation() argument
313 xfeed->outfeed()->ReleaseCurrentBuffer(buffer_length, buffer_ptr, in __xla_cpu_runtime_ReleaseOutfeedBufferAfterPopulation()
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc63 int buffer_length) { in SaveFile() argument
65 if (buffer_length > 0) { in SaveFile()
73 byte_count = fwrite(output_buffer, 1, buffer_length, output_file); in SaveFile()
77 return buffer_length == byte_count; in SaveFile()
/external/google-breakpad/src/common/mac/
Dfile_id.cc87 char *buffer, int buffer_length) { in ConvertIdentifierToString() argument
89 for (int idx = 0; (buffer_idx < buffer_length) && (idx < 16); ++idx) { in ConvertIdentifierToString()
103 buffer[(buffer_idx < buffer_length) ? buffer_idx : buffer_idx - 1] = 0; in ConvertIdentifierToString()
/external/oss-fuzz/projects/zlib/
Dzlib_uncompress_fuzzer.cc15 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
16 if (Z_OK != uncompress(buffer, &buffer_length, data, in LLVMFuzzerTestOneInput()
Dzlib_uncompress2_fuzzer.cc11 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
14 uncompress2(buffer, &buffer_length, data, &buf_size); in LLVMFuzzerTestOneInput()
/external/oss-fuzz/projects/binutils/
Dfuzz_disassemble.c69 disasm_info.buffer_length = Size-10; in LLVMFuzzerTestOneInput()
89 if (disasm_info.buffer_length <= (size_t) octets) in LLVMFuzzerTestOneInput()
93 disasm_info.buffer_length -= octets; in LLVMFuzzerTestOneInput()
/external/openscreen/osp/impl/quic/
Dquic_connection_impl.cc31 size_t buffer_length, in Write() argument
34 socket_->SendMessage(buffer, buffer_length, destination_); in Write()
35 OSP_DCHECK_LE(buffer_length, in Write()
37 return static_cast<int>(buffer_length); in Write()
/external/dynamic_depth/internal/dynamic_depth/
Ddepth_jpeg.cc20 int32_t ValidateAndroidDynamicDepthBuffer(const char* buffer, size_t buffer_length) { in ValidateAndroidDynamicDepthBuffer() argument
23 const string image_data(buffer, buffer_length); in ValidateAndroidDynamicDepthBuffer()
120 std::istringstream input_jpeg_stream(std::string(buffer, buffer_length)); in ValidateAndroidDynamicDepthBuffer()
/external/oss-fuzz/projects/bad_example/
Dbad_example_fuzzer.cc36 uLongf buffer_length = static_cast<uLongf>(sizeof(buffer)); in LLVMFuzzerTestOneInput() local
37 if (Z_OK != uncompress(buffer, &buffer_length, data, in LLVMFuzzerTestOneInput()
/external/brotli/python/
D_brotli.cc108 size_t buffer_length = 0; // Request all available output. in compress_stream() local
109 const uint8_t* buffer = BrotliEncoderTakeOutput(enc, &buffer_length); in compress_stream()
110 if (buffer_length) { in compress_stream()
111 (*output).insert((*output).end(), buffer, buffer + buffer_length); in compress_stream()
411 size_t buffer_length = 0; // Request all available output. in decompress_stream() local
412 const uint8_t* buffer = BrotliDecoderTakeOutput(dec, &buffer_length); in decompress_stream()
413 if (buffer_length) { in decompress_stream()
414 (*output).insert((*output).end(), buffer, buffer + buffer_length); in decompress_stream()
/external/tpm2-tss/src/tss2-fapi/
Difapi_io.c83 io->buffer_length = length; in ifapi_io_read_async()
116 io->buffer_length - io->buffer_idx); in ifapi_io_read_finish()
130 if (io->buffer_idx < io->buffer_length) in ifapi_io_read_finish()
143 *length = io->buffer_length; in ifapi_io_read_finish()
170 io->buffer_length = length; in ifapi_io_write_async()
224 io->buffer_length - io->buffer_idx); in ifapi_io_write_finish()
238 if (io->buffer_idx < io->buffer_length) in ifapi_io_write_finish()
Difapi_io.h20 size_t buffer_length; member
35 #define IFAPI_IO_BUFFLEN context->io.buffer_length
/external/libaom/libaom/av1/common/
Dobu_util.c97 aom_codec_err_t aom_read_obu_header(uint8_t *buffer, size_t buffer_length, in aom_read_obu_header() argument
100 if (buffer_length < 1 || !consumed || !header) return AOM_CODEC_INVALID_PARAM; in aom_read_obu_header()
104 struct aom_read_bit_buffer rb = { buffer, buffer + buffer_length, 0, NULL, in aom_read_obu_header()
/external/google-breakpad/src/tools/windows/converter_exe/
Dwininet_client.cc79 DWORD buffer_length,
230 DWORD buffer_length, in ReadData() argument
239 buffer_length, in ReadData()
Dwinhttp_client.cc80 DWORD buffer_length,
231 DWORD buffer_length, in ReadData() argument
240 buffer_length, in ReadData()
/external/dynamic_depth/internal/xmpmeta/
Dxmp_writer.cc145 const int buffer_length = static_cast<int>(buffer.length()); in CreateExtendedSections() local
148 buffer_length / (XmpConst::ExtendedMaxBufferSize() - overhead) + 1; in CreateExtendedSections()
151 std::min(static_cast<int>(buffer_length - position + overhead), in CreateExtendedSections()
163 WriteIntTo4Bytes(buffer_length, &data_stream); in CreateExtendedSections()
/external/tensorflow/tensorflow/lite/micro/
Dmicro_interpreter_test.cc275 int buffer_length = tflite::ElementCount(*cur_tensor->dims); in TF_LITE_MICRO_TEST() local
282 for (int j = 0; j < buffer_length; ++j) { in TF_LITE_MICRO_TEST()
289 for (int j = 0; j < buffer_length; ++j) { in TF_LITE_MICRO_TEST()
304 int buffer_length = tflite::ElementCount(*cur_tensor->dims); in TF_LITE_MICRO_TEST() local
311 for (int j = 0; j < buffer_length; ++j) { in TF_LITE_MICRO_TEST()
318 for (int j = 0; j < buffer_length; ++j) { in TF_LITE_MICRO_TEST()

1234