Home
last modified time | relevance | path

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

1234

/cts/tests/media/jni/
DNativeMediaFormatUnitTest.cpp64 bool validateFormatInt32(AMediaFormat* fmt, int offset = 0, bool isClear = false);
65 bool validateFormatInt64(AMediaFormat* fmt, int offset = 0, bool isClear = false);
66 bool validateFormatFloat(AMediaFormat* fmt, float offset = 0.0f, bool isClear = false);
67 bool validateFormatDouble(AMediaFormat* fmt, double offset = 0.0, bool isClear = false);
68 bool validateFormatSize(AMediaFormat* fmt, size_t offset = 0, bool isClear = false);
69 bool validateFormatString(AMediaFormat* fmt, int offset = 0, bool isClear = false);
70 bool validateFormatRect(AMediaFormat* fmt, int offset = 0, bool isClear = false);
71 bool validateFormatBuffer(AMediaFormat* fmt, int offset = 0, bool isClear = false);
72 bool validateFormat(AMediaFormat* fmt, int offset = 0, bool isClear = false);
74 void configureFormatInt32(AMediaFormat* fmt, int offset = 0);
[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/utils/
Dcapture_request_utils.py144 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument
171 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_codes[fmt]]
232 fmt = 'yuv'
233 size = get_available_output_sizes(fmt, props)[-1]
234 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
255 fmt = 'yuv'
256 size = get_available_output_sizes(fmt, props)[-1]
257 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]}
365 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]}
367 return fmt
[all …]
/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.py280 for fmt in format_list:
281 fmt_iter = fmt['iter']
282 fmt_cmpr = fmt['cmpr']
285 fmt_cmpr, props, fmt['cmpr_size'])
290 fmt_iter, props, fmt['iter_max']):
/cts/apps/CameraITS/tests/scene0/
Dtest_solid_color_test_pattern.py74 def check_solid_color(img, exp_values, color, fmt): argument
86 if fmt == 'raw':
219 fmt = {'format': 'raw'}
221 fmt = {'format': 'yuv'}
222 logging.debug('Using format: %s', fmt['format'])
223 caps = cam.do_capture([req]*num_frames, fmt)
229 if fmt['format'] == 'yuv':
244 img, color['RGB'], color['color'], fmt['format'])
247 img, _BLACK['RGB'], _BLACK['color'], fmt['format'])
Dtest_read_write.py73 for fmt in valid_formats:
74 logging.debug('format: %s', fmt)
75 size = capture_request_utils.get_available_output_sizes(fmt, props)[-1]
76 out_surface = {'width': size[0], 'height': size[1], 'format': fmt}
85 index_list.append((fmt, exp, sens))
95 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)
72 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.py55 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props)
57 caps = cam.do_capture(reqs, fmt)
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ev_compensation_basic.py110 fmt = capture_request_utils.get_smallest_yuv_format(
112 if fmt['width'] * fmt['height'] > VGA_W * VGA_H:
113 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H}
114 logging.debug('YUV size: %d x %d', fmt['width'], fmt['height'])
120 caps = cam.do_capture([req]*THRESH_CONVERGE_FOR_EV, fmt)
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)
120 caps = cam.do_capture([auto_req] * FRAMES_PER_ITERATION, fmt)
Dtest_black_white.py47 def do_img_capture(cam, s, e, fmt, latency, cap_name, log_path): argument
64 cap = its_session_utils.do_capture_with_latency(cam, req, latency, fmt)
108 fmt = {'format': 'yuv', 'width': VGA_WIDTH, 'height': VGA_HEIGHT}
116 black_means = do_img_capture(cam, s, e, fmt, latency, 'black', log_path)
124 white_means = do_img_capture(cam, s, e, fmt, latency, 'white', log_path)
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)
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])
/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/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/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/apps/CameraITS/tests/scene2_a/
Dtest_auto_flash.py59 def take_captures_with_flash(cam, fmt): argument
88 still_capture_req, fmt)
126 fmt = {'format': fmt_name}
139 cap = cam.do_capture(no_flash_req, fmt)
169 cap = take_captures_with_flash(cam, fmt)
219 cap = cam.do_capture(req, fmt)
/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
62 cap = cam.do_capture(req, fmt)
147 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H}
150 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()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8425/
Dpoc.c31 #define ERR(fmt, ...) printf(fmt ": %d(%s)\n", ##__VA_ARGS__, errno, strerror(errno)) argument

1234