common/csi: Add support for custom resolutions.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2025-08-08 14:43:55 +02:00
parent 294eaf309f
commit 451c1e7664
2 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ typedef struct _i2c_dev {
// Sensor frame size/resolution table.
uint16_t resolution[][2] = {
{0, 0 },
{0, 0 }, /* Custom set by drivers */
// C/SIF Resolutions
{88, 72 }, /* QQCIF */
{176, 144 }, /* QCIF */

View File

@ -145,6 +145,7 @@ typedef enum {
typedef enum {
OMV_CSI_FRAMESIZE_INVALID = 0,
OMV_CSI_FRAMESIZE_CUSTOM,
// C/SIF Resolutions
OMV_CSI_FRAMESIZE_QQCIF, // 88x72
OMV_CSI_FRAMESIZE_QCIF, // 176x144