mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
misc: Add CSI2 hardware flag.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
ce8aee77c6
commit
c0b36aa86b
@ -265,6 +265,7 @@ typedef struct _omv_csi {
|
||||
uint32_t yuv_format : 1; // YUV/YVU output format.
|
||||
uint32_t jpg_format : 3; // JPEG output format/mode.
|
||||
uint32_t cfa_format : 3; // CFA format/pattern.
|
||||
uint32_t mipi_if : 1; // CSI-2 interface.
|
||||
};
|
||||
|
||||
const uint16_t *color_palette; // Color palette used for color lookup.
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
#define PAG7936_MIN_AGAIN (1472) // AGain min value, unit is 1/1024x
|
||||
#define PAG7936_MAX_AGAIN (16384) // AGain max value, unit is 1/1024x
|
||||
|
||||
#if OMV_PAG7936_MIPI
|
||||
#if OMV_PAG7936_MIPI_CSI2
|
||||
#define PAG7936_WIDTH_ALIGN (8)
|
||||
#else
|
||||
#define PAG7936_WIDTH_ALIGN (4)
|
||||
@ -409,6 +409,9 @@ int pag7936_init(omv_csi_t *csi) {
|
||||
csi->mono_bpp = 1;
|
||||
csi->raw_output = 1;
|
||||
csi->cfa_format = SUBFORMAT_ID_BGGR;
|
||||
#if OMV_PAG7936_MIPI_CSI2
|
||||
csi->mipi_if = 1;
|
||||
#endif
|
||||
|
||||
// Initialize csi ops.
|
||||
csi->reset = reset;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user