Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 88) sorted by relevance

1234

/cts/apps/CameraITS/utils/
Dcapture_request_utils.py126 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument
153 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_codes[fmt]]
214 fmt = 'yuv'
215 size = get_available_output_sizes(fmt, props)[-1]
216 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
237 fmt = 'yuv'
238 size = get_available_output_sizes(fmt, props)[-1]
239 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
347 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]}
349 return fmt
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DAudioStringsHelper.java42 static private String encodingToString(int fmt) { in encodingToString() argument
43 return fmt < formatStrings.length ? formatStrings[fmt] : ("" + fmt + " Unknown Format "); in encodingToString()
46 static private String encodingToShortString(int fmt) { in encodingToShortString() argument
47 return fmt < shortFormatStrings.length in encodingToShortString()
48 ? shortFormatStrings[fmt] in encodingToShortString()
49 : ("" + fmt + " Unknown Format "); in encodingToShortString()
/cts/apps/CameraITS/tests/scene4/
Dtest_multi_camera_alignment.py48 def convert_cap_and_prep_img(cap, props, fmt, img_name, debug): argument
73 if fmt == 'raw':
135 def determine_valid_out_surfaces(cam, props, fmt, cap_camera_ids, sizes): argument
153 {'format': fmt, 'physicalCamera': cap_camera_ids[0],
156 {'format': fmt, 'physicalCamera': cap_camera_ids[1],
165 out_surface = {'format': fmt, 'physicalCamera': cap_id,
177 def take_images(cam, caps, props, fmt, cap_camera_ids, out_surfaces, log_path, argument
199 if fmt == 'raw':
203 _, caps[(fmt,
204 cap_camera_ids[0])], caps[(fmt,
[all …]
Dtest_aspect_ratio_and_crop.py267 fmt = capture_request_utils.get_largest_jpeg_format(props)
269 cap = cam.do_capture(req, fmt)
511 for fmt in format_list:
512 fmt_iter = fmt['iter']
513 fmt_cmpr = fmt['cmpr']
516 fmt_cmpr, props, fmt['cmpr_size'])
521 fmt_iter, props, fmt['iter_max']):
/cts/apps/CameraITS/tests/scene2_b/
Dtest_auto_per_frame_control.py50 def _check_delta_luma_vs_delta_gain(fmt, j, lumas, total_gains): argument
93 fmt = capture_request_utils.get_smallest_yuv_format(
96 return (cam.CAP_RAW, fmt)
98 return (fmt,)
155 def _plot_data(lumas, gains, fmt, log_path): argument
166 pylab.figure(fmt)
170 pylab.title(_NAME + ' ' + fmt)
183 '%s_plot_%s.png' % (os.path.join(log_path, _NAME), fmt))
241 for i, fmt in enumerate(fmts):
242 logging.debug('fmt: %s', str(fmt['format']))
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_read_write.py72 for fmt in valid_formats:
73 logging.debug('format: %s', fmt)
74 size = capture_request_utils.get_available_output_sizes(fmt, props)[-1]
75 out_surface = {'width': size[0], 'height': size[1], 'format': fmt}
84 index_list.append((fmt, exp, sens))
94 data[index_list[i]] = (fmt, exposure_read, sensitivity_read)
Dtest_unified_timestamps.py47 req, fmt = capture_request_utils.get_fastest_manual_capture_settings(
50 req, fmt = capture_request_utils.get_fastest_auto_capture_settings(
52 cap = cam.do_capture(req, fmt)
71 cap = cam.do_capture(req, fmt)
Dtest_capture_result_dump.py41 req, fmt = capture_request_utils.get_fastest_manual_capture_settings(
43 cap = cam.do_capture(req, fmt)
Dtest_param_sensitivity_burst.py54 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props)
56 caps = cam.do_capture(reqs, fmt)
/cts/tests/video/src/android/video/cts/
DCodecEncoderPerformanceTestBase.java86 MediaFormat fmt = new MediaFormat(); in setUpEncoderFormat() local
87 fmt.setString(MediaFormat.KEY_MIME, mime); in setUpEncoderFormat()
88 fmt.setInteger(MediaFormat.KEY_WIDTH, format.getInteger(MediaFormat.KEY_WIDTH)); in setUpEncoderFormat()
89 fmt.setInteger(MediaFormat.KEY_HEIGHT, format.getInteger(MediaFormat.KEY_HEIGHT)); in setUpEncoderFormat()
90 fmt.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setUpEncoderFormat()
91 fmt.setInteger(MediaFormat.KEY_FRAME_RATE, in setUpEncoderFormat()
93 fmt.setFloat(MediaFormat.KEY_I_FRAME_INTERVAL, 1.0f); in setUpEncoderFormat()
94 fmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, in setUpEncoderFormat()
96 return fmt; in setUpEncoderFormat()
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp110 bool FileUtil::doVprintf(bool fileOnly, int logLevel, const char *fmt, va_list ap) in doVprintf() argument
122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0 in doVprintf()
154 bool FileUtil::doPrintf(const char* fmt, ...) in doPrintf() argument
157 va_start(ap, fmt); in doPrintf()
158 bool result = doVprintf(false, -1, fmt, ap); in doPrintf()
DLog.cpp41 void Log::printf(LogLevel level, const char* fmt, ...) in printf() argument
44 va_start(ap, fmt); in printf()
45 FileUtil::doVprintf(level < mLogLevel, level, fmt, ap); in printf()
DReport.cpp66 void Report::printf(const char* fmt, ...) in printf() argument
69 va_start(ap, fmt); in printf()
70 FileUtil::doVprintf(false, -1, fmt, ap); in printf()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8431/
Dpoc.c25 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument
26 #define ERR(fmt, ...) printf(fmt " %d %s\n", ##__VA_ARGS__, errno, strerror(errno)) argument
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ae_precapture_trigger.py68 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props)
84 caps = cam.do_capture(manual_reqs, fmt)
96 cap = cam.do_capture(auto_req, fmt)
107 cap = cam.do_capture(auto_req, fmt)
119 caps = cam.do_capture([auto_req] * FRAMES_PER_ITERATION, fmt)
Dtest_black_white.py45 def do_img_capture(cam, s, e, fmt, latency, cap_name, log_path): argument
62 cap = its_session_utils.do_capture_with_latency(cam, req, latency, fmt)
106 fmt = {'format': 'yuv', 'width': VGA_WIDTH, 'height': VGA_HEIGHT}
114 black_means = do_img_capture(cam, s, e, fmt, latency, 'black', log_path)
122 white_means = do_img_capture(cam, s, e, fmt, latency, 'white', log_path)
Dtest_burst_sameness_manual.py74 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props)
78 w, h = fmt['width'], fmt['height']
88 caps = cam.do_capture([req]*BURST_LEN, [fmt])
Dtest_auto_vs_manual.py91 fmt = capture_request_utils.get_smallest_yuv_format(
103 cap_auto = cam.do_capture(req, fmt)
111 cap_man1 = cam.do_capture(req, fmt)
120 cap_man2 = cam.do_capture(req, fmt)
/cts/apps/CameraITS/tests/inprog/
Dtest_burst_sameness_auto.py45 _, fmt = its.objects.get_fastest_manual_capture_settings(props)
46 w,h = fmt["width"], fmt["height"]
65 caps = cam.do_capture([req]*BURST_LEN, [fmt])
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/
Dpoc.c29 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument
30 #define ERR(fmt, ...) printf(fmt " %d %s\n", ##__VA_ARGS__, errno, strerror(errno)) argument
/cts/suite/audio_quality/lib/include/
DFileUtil.h49 virtual bool doPrintf(const char* fmt, ...);
52 virtual bool doVprintf(bool fileOnly, int loglevel, const char *fmt, va_list ap);
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/
Dpoc.c36 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument
37 #define ERR(fmt, ...) printf(fmt ": %d(%d)\n", ##__VA_ARGS__, errno, errno) argument
/cts/apps/CameraITS/tests/scene1_2/
Dtest_tonemap_sequence.py43 cam, req, fmt, num_frames_per_cap, tonemap, log_path): argument
60 cap = cam.do_capture([req]*num_frames_per_cap, fmt)
102 fmt = capture_request_utils.get_smallest_yuv_format(
135 cam, req, fmt, num_frames_per_cap, tonemap, log_path))
/cts/apps/CameraITS/tests/scene3/
Dtest_flip_mirror.py41 def test_flip_mirror_impl(cam, props, fmt, chart, debug, log_path): argument
66 cap = cam.do_capture(req, fmt)
149 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H}
152 test_flip_mirror_impl(cam, props, fmt, chart, debug, self.log_path)
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureTest.java85 private void testBurst(int fmt, int burstSize, boolean checkFrameRate, boolean testStillBokeh) in testBurst() argument
123 burstTestByCamera(id, fmt, burstSize, checkFrameRate, testStillBokeh); in testBurst()
131 private void burstTestByCamera(String cameraId, int fmt, int burstSize, in burstTestByCamera() argument
143 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera()
155 config.getOutputMinFrameDuration(fmt, stillSize); in burstTestByCamera()
171 int burstTemplate = (fmt == ImageFormat.JPEG) ? in burstTestByCamera()
200 fmt, resultListener, in burstTestByCamera()

1234