ITS: doBasicRecording command impl.
This change consists of do_basic_recording implementation in
its_session_utils and doBasicRecording in ItsService.
The test has been updated to iterate through qualities and do the video
recording. The video recording will be available at path outputFilePath.
Following cls will have the change to process these video recordings,
extracting key frames and adding the checks.
Bug: 221286703
test: Make and install CtsVerifier.apk on Pixel 6 device and run
test_video_aspect_ratio_and_crop. Verified the recordings were generated
successfully.
Change-Id: Ib2a2d98477b90e3d80e00855d4cefbbf521b3c9e
diff --git a/apps/CameraITS/utils/video_processing_utils.py b/apps/CameraITS/utils/video_processing_utils.py
index 9646003..967bb9e 100644
--- a/apps/CameraITS/utils/video_processing_utils.py
+++ b/apps/CameraITS/utils/video_processing_utils.py
@@ -17,30 +17,14 @@
# CamcorderProfile. For Video ITS, we will currently test below qualities
# only if supported by the camera device.
_ITS_SUPPORTED_QUALITIES = (
- "HIGH",
- "2160P",
- "1080P",
- "720P",
- "480P",
- "CIF",
- "QCIF",
- "QVGA",
- "LOW",
- "VGA"
+ 'HIGH',
+ '2160P',
+ '1080P',
+ '720P',
+ '480P',
+ 'CIF',
+ 'QCIF',
+ 'QVGA',
+ 'LOW',
+ 'VGA'
)
-
-
-def create_test_format_list(qualities):
- """Returns the video quality levels to be tested.
-
- Args:
- qualities: List of all the quality levels supported by the camera device.
- Returns:
- test_qualities: Subset of test qualities to be tested from the
- supported qualities.
- """
- test_qualities = []
- for s in _ITS_SUPPORTED_QUALITIES:
- if s in qualities:
- test_qualities.append(s)
- return test_qualities