device: samsung_slsi: libcamera2: Add support video resolutions.
This patch add support video resolutions as below :
1920, 1080, // 16:9
1440, 1080, // 4:3
1280, 1024, // 5:4
1280, 720, // 16:9
960, 720, // 4:3
800, 480, // 5:3
768, 576, // 4:3
720, 576, // 5:4
720, 480, // 3:2
640, 480, // 4:3
352, 288, // 11:9
320, 240, // 4:3
240, 160, // 3:2
176, 144, // 6:5
128, 96, // 4:3
Change-Id: I9ed59a5c7869b293ec55718fab7e556347fae8f1
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
diff --git a/libcamera2/ExynosCamera2.cpp b/libcamera2/ExynosCamera2.cpp
index 95e4d81..87f3cd0 100644
--- a/libcamera2/ExynosCamera2.cpp
+++ b/libcamera2/ExynosCamera2.cpp
@@ -115,15 +115,22 @@
const int32_t scalerResolutionS5K4E5[] =
{
- 1920, 1080,
- 1440, 1080,
- 1440, 960,
- 1280, 1024,
- 1280, 720,
- 720, 480,
- 640, 480,
- 320, 240,
- 176, 144,
+ 1920, 1080, // 16:9
+ 1440, 1080, // 4:3
+ 1440, 960, // 3:2
+ 1280, 1024, // 5:4
+ 1280, 720, // 16:9
+ 960, 720, // 4:3
+ 800, 480, // 5:3
+ 768, 576, // 4:3
+ 720, 576, // 5:4
+ 720, 480, // 3:2
+ 640, 480, // 4:3
+ 352, 288, // 11:9
+ 320, 240, // 4:3
+ 240, 160, // 3:2
+ 176, 144, // 6:5
+ 128, 96, // 4:3
};
const int32_t jpegResolutionS5K4E5[] =
@@ -161,14 +168,22 @@
}
const int32_t scalerResolutionS5K6A3[] =
{
- 1392, 1392,
- 1344, 896,
- 1280, 1024,
- 1280, 960,
- 1280, 720,
- 720, 480,
- 640, 480,
- 176, 144,
+ 1392, 1392, // 1:1
+ 1344, 896, // 3:2
+ 1280, 1024, // 5:4
+ 1280, 960, // 4:3
+ 1280, 720, // 16:9
+ 960, 720, // 4:3
+ 800, 480, // 5:3
+ 768, 576, // 4:3
+ 720, 576, // 5:4
+ 720, 480, // 3:2
+ 640, 480, // 4:3
+ 352, 288, // 11:9
+ 320, 240, // 4:3
+ 240, 160, // 3:2
+ 176, 144, // 6:5
+ 128, 96, // 4:3
};
const int32_t jpegResolutionS5K6A3[] =