Home
last modified time | relevance | path

Searched refs:sample_size (Results 1 – 25 of 82) sorted by relevance

1234

/external/libvpx/libvpx/third_party/libyuv/source/
Dmjpeg_validate.cc21 static LIBYUV_BOOL ScanEOI(const uint8_t* sample, size_t sample_size) { in ScanEOI() argument
22 if (sample_size >= 2) { in ScanEOI()
23 const uint8_t* end = sample + sample_size - 1; in ScanEOI()
42 LIBYUV_BOOL ValidateJpeg(const uint8_t* sample, size_t sample_size) { in ValidateJpeg() argument
46 if (sample_size < 64 || sample_size > kMaxJpegSize || !sample) { in ValidateJpeg()
56 if (sample_size > kBackSearchSize) { in ValidateJpeg()
57 if (ScanEOI(sample + sample_size - kBackSearchSize, kBackSearchSize)) { in ValidateJpeg()
61 sample_size = sample_size - kBackSearchSize + 1; in ValidateJpeg()
64 return ScanEOI(sample + 2, sample_size - 2); in ValidateJpeg()
Dconvert_jpeg.cc93 size_t sample_size, in MJPGSize() argument
97 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGSize()
111 size_t sample_size, in MJPGToI420() argument
122 if (sample_size == kUnknownDataSize) { in MJPGToI420()
129 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToI420()
249 size_t sample_size, in MJPGToARGB() argument
256 if (sample_size == kUnknownDataSize) { in MJPGToARGB()
263 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToARGB()
/external/libaom/libaom/third_party/libyuv/source/
Dmjpeg_validate.cc49 static LIBYUV_BOOL ScanEOI(const uint8* sample, size_t sample_size) { in ScanEOI() argument
50 const uint8* end = sample + sample_size - 1; in ScanEOI()
71 LIBYUV_BOOL ValidateJpeg(const uint8* sample, size_t sample_size) { in ValidateJpeg() argument
73 if (sample_size < 64) { in ValidateJpeg()
83 sample_size -= 2; in ValidateJpeg()
86 if (sample_size > kBackSearchSize) { in ValidateJpeg()
87 if (ScanEOI(sample + sample_size - kBackSearchSize, kBackSearchSize)) { in ValidateJpeg()
91 sample_size = sample_size - kBackSearchSize + 1; in ValidateJpeg()
93 return ScanEOI(sample, sample_size); in ValidateJpeg()
Dconvert_jpeg.cc124 int MJPGSize(const uint8* sample, size_t sample_size, in MJPGSize() argument
127 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGSize()
140 size_t sample_size, in MJPGToI420() argument
146 if (sample_size == kUnknownDataSize) { in MJPGToI420()
153 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToI420()
304 size_t sample_size, in MJPGToARGB() argument
308 if (sample_size == kUnknownDataSize) { in MJPGToARGB()
315 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToARGB()
/external/perfetto/src/profiling/memory/
Dbookkeeping.h136 uint64_t sample_size,
183 fn(addr_and_allocation.first, alloc.sample_size, alloc.alloc_size, in GetAllocations()
215 : sample_size(size), alloc_size(asize), sequence_number(seq) { in Allocation()
222 sample_size = other.sample_size; in Allocation()
243 uint64_t sample_size; member
285 current_unfreed_ += alloc.sample_size; in AddToCallstackAllocations()
286 alloc.callstack_allocations()->value.retain_max.cur += alloc.sample_size; in AddToCallstackAllocations()
314 alloc.sample_size; in AddToCallstackAllocations()
321 current_unfreed_ -= alloc.sample_size; in SubtractFromCallstackAllocations()
322 alloc.callstack_allocations()->value.retain_max.cur -= alloc.sample_size; in SubtractFromCallstackAllocations()
[all …]
Dbookkeeping.cc36 uint64_t sample_size, in RecordMalloc() argument
76 alloc.sample_size = sample_size; in RecordMalloc()
84 Allocation(sample_size, alloc_size, sequence_number, in RecordMalloc()
/external/libiio/src/
Dbuffer.c47 unsigned int sample_size = iio_device_get_sample_size(dev); in iio_device_create_buffer() local
49 if (!sample_size || !samples_count) in iio_device_create_buffer()
58 buf->dev_sample_size = sample_size; in iio_device_create_buffer()
59 buf->length = sample_size * samples_count; in iio_device_create_buffer()
96 buf->sample_size = iio_device_get_sample_size_mask(dev, in iio_device_create_buffer()
146 buffer->sample_size = iio_device_get_sample_size_mask(dev, in iio_buffer_refill()
209 if (buffer->sample_size == 0) in iio_buffer_foreach_sample()
215 while (end - ptr >= (size_t) buffer->sample_size) { in iio_buffer_foreach_sample()
295 return (ptrdiff_t) buffer->sample_size; in iio_buffer_step()
/external/libiio/src/tests/
Diio_readdev.c256 size_t sample_size; in main() local
370 sample_size = iio_device_get_sample_size(dev); in main()
394 if (iio_buffer_step(buffer) == sample_size) { in main()
399 if (num_samples && len > num_samples * sample_size) in main()
400 len = num_samples * sample_size; in main()
412 num_samples -= read_len / sample_size; in main()
Diio_writedev.c267 size_t sample_size; in main() local
385 sample_size = iio_device_get_sample_size(dev); in main()
403 if (iio_buffer_step(buffer) == sample_size) { in main()
408 if (num_samples && len > num_samples * sample_size) in main()
409 len = num_samples * sample_size; in main()
421 num_samples -= write_len / sample_size; in main()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/ceva/
Daudio_provider.cc99 const int sample_size = kNoOfSamples; in CaptureSamples() local
101 g_latest_audio_timestamp + (sample_size / (kAudioSampleFrequency / 1000)); in CaptureSamples()
106 for (int i = 0; i < sample_size; ++i) { in CaptureSamples()
/external/rust/crates/criterion/src/
Dlib.rs429 sample_size: 100, in default()
517 pub fn sample_size(mut self, n: usize) -> Criterion<M> { in sample_size() method
520 self.config.sample_size = n; in sample_size()
788 …t!("Changes the default size of the sample for this run. [default: {}]", self.config.sample_size))) in configure_from_args()
994 self.config.sample_size = num_size; in configure_from_args()
1533 let sample_size = (-1.0 + (4.0 * c).sqrt()) / 2.0; in recommend_linear_sample_size() localVariable
1534 let sample_size = sample_size as u64; in recommend_linear_sample_size() localVariable
1537 let sample_size = (sample_size / 10) * 10; in recommend_linear_sample_size() localVariable
1540 if sample_size < 10 { in recommend_linear_sample_size()
1543 sample_size in recommend_linear_sample_size()
[all …]
Dbenchmark.rs22 pub sample_size: usize, field
35 pub(crate) sample_size: Option<usize>, field
49 sample_size: None, in default()
65 sample_size: self.sample_size.unwrap_or(defaults.sample_size), in to_complete()
121 pub fn sample_size(mut self, n: usize) -> Self {
124 self.config.sample_size = Some(n);
/external/libiio/src/bindings/csharp/
DChannel.cs70 private uint sample_size; field in iio.Channel
142 sample_size = (uint)Marshal.ReadInt32(iio_channel_get_data_format(this.chn)) / 8; in Channel()
191 byte[] array = new byte[(int) (buffer.samples_count * sample_size)]; in read()
198 … count = iio_channel_read_raw(this.chn, buffer.buf, addr, buffer.samples_count * sample_size); in read()
200 … count = iio_channel_read(this.chn, buffer.buf, addr, buffer.samples_count * sample_size); in read()
/external/libiio/src/examples/
Ddummy-iiostream.c341 size_t sample_size = fmt->length / 8 * repeat; in main() local
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()
351 for (int sample = 0; sample < bytes / sample_size; ++sample) { in main()
/external/libiio/src/iiod/
Dops.c44 unsigned int nb, sample_size, samples_count; member
107 unsigned int sample_size, nb_clients; member
418 bool demux = server_demux && dev->sample_size != thd->sample_size; in send_data()
421 len = (len / dev->sample_size) * thd->sample_size; in send_data()
471 if (dev->sample_size == thd->sample_size) { in receive_data()
535 unsigned int sample_size; in rw_thd() local
595 entry->sample_size = iio_device_get_sample_size(dev); in rw_thd()
599 sample_size = entry->sample_size; in rw_thd()
602 thd->active = !thd->err && thd->nb >= sample_size; in rw_thd()
665 if (ret < 0 || thd->nb < sample_size) in rw_thd()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/osx/
Daudio_provider.cc46 const int sample_size = buffer->mAudioDataByteSize / sizeof(float); in OnAudioBufferFilledCallback() local
49 (sample_offset + sample_size) / (kAudioSampleFrequency / 1000); in OnAudioBufferFilledCallback()
51 for (int i = 0; i < sample_size; ++i) { in OnAudioBufferFilledCallback()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/disco_f746ng/
Daudio_provider.cc111 const int sample_size = AUDIO_BLOCK_SIZE / (sizeof(int16_t) * 2); in CaptureSamples() local
113 g_latest_audio_timestamp + (sample_size / (kAudioSampleFrequency / 1000)); in CaptureSamples()
117 for (int i = 0; i < sample_size; ++i) { in CaptureSamples()
/external/python/cpython2/Lib/
Dsndhdr.py92 sample_size = 1 # default
99 sample_size = 2
102 frame_size = sample_size * nchannels
/external/ruy/ruy/profiler/
Dprofiler.cc81 int sample_size = detail::GetBufferSize(thread_stack.stack()); in Sample() local
83 samples_buf_.resize(old_buf_size + sample_size); in Sample()
/external/python/cpython3/Lib/
Dsndhdr.py109 sample_size = 1 # default
116 sample_size = 2
119 frame_size = sample_size * nchannels
/external/perfetto/tools/
Dprofiling_sample_distribution.cc120 size_t sample_size = sampler.SampleSize(pair.second); in ProfilingSampleDistributionMain() local
124 totals[pair.first] += sample_size; in ProfilingSampleDistributionMain()
/external/libyuv/files/include/libyuv/
Dconvert.h426 size_t sample_size,
441 size_t sample_size,
454 size_t sample_size,
483 size_t sample_size,
/external/adhd/cras/src/server/
Dcras_audio_area.c98 const int sample_size = snd_pcm_format_physical_width(fmt->format) / 8; in cras_audio_area_config_buf_pointers() local
103 area->channels[i].buf = base_buffer + i * sample_size; in cras_audio_area_config_buf_pointers()
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/
Dconvert.h341 size_t sample_size,
356 size_t sample_size,
385 size_t sample_size,
/external/scapy/scapy/modules/
Dvoip.py31 def _merge_sound_bytes(x,y,sample_size=2): argument
36 ss=sample_size

1234