isp: add application control of Green Equalisation (GEQ) parameters

This commit is contained in:
David Plowman
2019-12-16 11:44:09 +00:00
committed by popcornmix
parent 010ffa92e4
commit f2f1eb651c
3 changed files with 23 additions and 0 deletions

View File

@@ -150,6 +150,7 @@ enum {
MMAL_PARAMETER_ANALOG_GAIN, /**< Takes a @ref MMAL_PARAMETER_RATIONAL_T */
MMAL_PARAMETER_DIGITAL_GAIN, /**< Takes a @ref MMAL_PARAMETER_RATIONAL_T */
MMAL_PARAMETER_DENOISE, /**< Takes a @ref MMAL_PARAMETER_DENOISE_T */
MMAL_PARAMETER_GREEN_EQ, /**< Takes a @ref MMAL_PARAMETER_GREEN_EQ_T */
};
/** Thumbnail configuration parameter type */
@@ -1013,4 +1014,12 @@ typedef struct MMAL_PARAMETER_DENOISE_T {
MMAL_RATIONAL_T strength; /**< Denoise strength. */
} MMAL_PARAMETER_DENOISE_T;
typedef struct MMAL_PARAMETER_GREEN_EQ_T {
MMAL_PARAMETER_HEADER_T hdr;
MMAL_BOOL_T enable; /**< Enable Green Equalisation parameters. */
uint32_t offset; /**< Offset of Green Equalisation threshold. */
MMAL_RATIONAL_T slope; /**< Rate at which Green Equalisation threshold ramps. */
} MMAL_PARAMETER_GREEN_EQ_T;
#endif /* MMAL_PARAMETERS_CAMERA_H */

View File

@@ -2765,5 +2765,18 @@ typedef struct OMX_PARAM_DENOISETYPE {
OMX_U32 nStrength; /**< Strength of denoising, Q16 format with 0 = off */
} OMX_PARAM_DENOISETYPE;
/* OMX_IndexParamGreenEq: Manual Green Equalisation parameters. */
/*
Configures the Green Equalisation block within the ISP pipeline.
*/
typedef struct OMX_PARAM_GREENEQTYPE {
OMX_U32 nSize;
OMX_VERSIONTYPE nVersion;
OMX_BOOL bEnabled; /**< Enable Green Equalisation */
OMX_U32 nOffset; /**< Offset of Green Equalisation threshold. */
OMX_U32 nSlope; /**< Slope of Green Equalisation threshold against pixel value, 0p16 */
} OMX_PARAM_GREENEQTYPE;
#endif
/* File EOF */

View File

@@ -540,6 +540,7 @@ typedef enum OMX_INDEXTYPE {
OMX_IndexConfigBrcmDroppableRunLength, /**< reference: OMX_PARAM_U32TYPE */
OMX_IndexParamMinimumAlignment, /**< reference: OMX_PARAM_MINALIGNTYPE */
OMX_IndexParamDenoise, /**< reference: OMX_PARAM_DENOISETYPE */
OMX_IndexParamGreenEq, /**< reference: OMX_PARAM_GREENEQTYPE */
OMX_IndexMax = 0x7FFFFFFF
} OMX_INDEXTYPE;