Home
last modified time | relevance | path

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

12

/external/libyuv/files/source/
Dmjpeg_validate.cc21 static LIBYUV_BOOL ScanEOI(const uint8* sample, size_t sample_size) { in ScanEOI() argument
22 if (sample_size >= 2) { in ScanEOI()
23 const uint8* end = sample + sample_size - 1; in ScanEOI()
42 LIBYUV_BOOL ValidateJpeg(const uint8* 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.cc125 int MJPGSize(const uint8* sample, size_t sample_size, in MJPGSize() argument
128 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGSize()
141 size_t sample_size, in MJPGToI420() argument
147 if (sample_size == kUnknownDataSize) { in MJPGToI420()
154 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToI420()
305 size_t sample_size, in MJPGToARGB() argument
309 if (sample_size == kUnknownDataSize) { in MJPGToARGB()
316 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToARGB()
Dconvert_to_argb.cc32 int ConvertToARGB(const uint8* sample, size_t sample_size, in ConvertToARGB() argument
281 r = MJPGToARGB(sample, sample_size, in ConvertToARGB()
Dconvert_to_i420.cc29 size_t sample_size, in ConvertToI420() argument
307 r = MJPGToI420(sample, sample_size, in ConvertToI420()
/external/libvpx/libvpx/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()
Dconvert_to_argb.cc32 int ConvertToARGB(const uint8* sample, size_t sample_size, in ConvertToARGB() argument
282 r = MJPGToARGB(sample, sample_size, in ConvertToARGB()
Dconvert_to_i420.cc29 size_t sample_size, in ConvertToI420() argument
309 r = MJPGToI420(sample, sample_size, in ConvertToI420()
/external/webrtc/talk/media/base/
Dvideoframe.cc247 size_t sample_size) { in Validate() argument
317 << " " << sample_size; in Validate()
322 for (size_t i = 0; i < arraysize(four_samples) && i < sample_size; ++i) { in Validate()
325 if (sample_size < expected_size) { in Validate()
330 << " " << sample_size in Validate()
338 if (sample_size > kMaxSampleSize) { in Validate()
343 << " " << sample_size in Validate()
356 (sample_size > large_expected_size || sample_size > kMaxSampleSize) && in Validate()
363 << " bytes: " << sample_size in Validate()
380 << " bytes: " << sample_size in Validate()
Dvideoframe.h58 size_t sample_size,
203 size_t sample_size);
Dvideoframe_unittest.h135 size_t sample_size, in LoadFrame() argument
140 return LoadFrame(sample, sample_size, format, width, height, width, in LoadFrame()
144 size_t sample_size, in LoadFrame() argument
155 sample, sample_size, 1, 1, 0, rotation); in LoadFrame()
1177 size_t sample_size; in ValidateFrame() local
1178 ms->GetSize(&sample_size); in ValidateFrame()
1180 size_t data_size = sample_size + data_adjust; in ValidateFrame()
1193 memcpy(data_ptr, sample, std::min(data_size, sample_size)); in ValidateFrame()
1197 sample_size + size_adjust)); in ValidateFrame()
/external/webrtc/talk/media/webrtc/
Dwebrtcvideoframe.cc67 size_t sample_size, in Init() argument
72 return Reset(format, w, h, dw, dh, sample, sample_size, pixel_width, in Init()
198 size_t sample_size, in Reset() argument
204 if (!Validate(format, w, h, sample, sample_size)) { in Reset()
231 sample, sample_size, in Reset()
Dwebrtcvideoframe.h61 size_t sample_size,
82 size_t sample_size,
/external/ImageMagick/coders/
Dmat.c818 int sample_size; in ReadMATImage() local
994 sample_size = 8; in ReadMATImage()
1003 sample_size = 16; in ReadMATImage()
1009 sample_size = 32; in ReadMATImage()
1015 sample_size = 64; in ReadMATImage()
1020 sample_size = 32; in ReadMATImage()
1029 sample_size = 64; in ReadMATImage()
1044 (void) sample_size; in ReadMATImage()
/external/fio/
Diolog.c626 static void flush_samples(FILE *f, void *samples, uint64_t sample_size) in flush_samples() argument
632 if (!sample_size) in flush_samples()
638 nr_samples = sample_size / __log_entry_sz(log_offset); in flush_samples()
1093 size_t sample_size; in iolog_flush() local
1101 sample_size = log->nr_samples * log_entry_sz(log); in iolog_flush()
1102 data->samples = malloc(sample_size); in iolog_flush()
1108 memcpy(data->samples, log->log, sample_size); in iolog_flush()
/external/libyuv/files/include/libyuv/
Dconvert.h192 int MJPGToI420(const uint8* sample, size_t sample_size,
201 int MJPGSize(const uint8* sample, size_t sample_size,
Dmjpeg_decoder.h29 LIBYUV_BOOL ValidateJpeg(const uint8* sample, size_t sample_size);
Dconvert_argb.h268 int MJPGToARGB(const uint8* sample, size_t sample_size,
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/
Dconvert.h194 int MJPGToI420(const uint8* sample, size_t sample_size,
203 int MJPGSize(const uint8* sample, size_t sample_size,
Dmjpeg_decoder.h29 LIBYUV_BOOL ValidateJpeg(const uint8* sample, size_t sample_size);
Dconvert_argb.h189 int MJPGToARGB(const uint8* sample, size_t sample_size,
/external/webrtc/webrtc/common_video/libyuv/include/
Dwebrtc_libyuv.h115 size_t sample_size,
/external/autotest/client/cros/audio/
Daudio_helper.py237 sample_size=16): argument
246 cmdargs = [SOX_PATH, '-b', str(sample_size), '-n', '-t', 'alsa',
258 sample_size=16): argument
267 cmdargs = get_play_sine_args(channel, odev, freq, duration, sample_size)
/external/webrtc/webrtc/common_video/libyuv/
Dwebrtc_libyuv.cc237 size_t sample_size, in ConvertToI420() argument
248 return libyuv::ConvertToI420(src_frame, sample_size, in ConvertToI420()
/external/opencv/ml/src/
Dmlsvm.cpp1326 const int sample_size = var_count*sizeof(samples[0][0]); in do_train() local
1352 CV_CALL( sv[k] = (float*)cvMemStorageAlloc( storage, sample_size )); in do_train()
1353 memcpy( sv[k], samples[i], sample_size ); in do_train()
1496 CV_CALL( sv[k] = (float*)cvMemStorageAlloc( storage, sample_size )); in do_train()
1497 memcpy( sv[k], samples[i], sample_size ); in do_train()
1537 int svm_type, sample_count, var_count, sample_size; in train() local
1556 sample_size = var_count*sizeof(samples[0][0]); in train()
1562 block_size = MAX( block_size, sample_size*2 + 1024 ); in train()
1605 int svm_type, sample_count, var_count, sample_size; in train_auto() local
1708 sample_size = var_count*sizeof(samples[0][0]); in train_auto()
[all …]

12