.size = sizeof(struct bcm2835_isp_denoise),
.flags = 0
}, {
+ .name = "Colour Denoise",
+ .id = V4L2_CID_USER_BCM2835_ISP_CDN,
+ .size = sizeof(struct bcm2835_isp_cdn),
+ .flags = 0
+ }, {
.name = "Defective Pixel Correction",
.id = V4L2_CID_USER_BCM2835_ISP_DPC,
.size = sizeof(struct bcm2835_isp_dpc),
ctrl->p_new.p_u8,
sizeof(struct bcm2835_isp_denoise));
break;
+ case V4L2_CID_USER_BCM2835_ISP_CDN:
+ ret = set_isp_param(node, MMAL_PARAMETER_CDN,
+ ctrl->p_new.p_u8,
+ sizeof(struct bcm2835_isp_cdn));
+ break;
case V4L2_CID_USER_BCM2835_ISP_SHARPEN:
ret = set_isp_param(node, MMAL_PARAMETER_SHARPEN,
ctrl->p_new.p_u8,
MMAL_PARAMETER_DPC,
/**< Tales a @ref MMAP_PARAMETER_GAMMA_T */
MMAL_PARAMETER_GAMMA,
+ /**< Takes a @ref MMAL_PARAMETER_CDN_T */
+ MMAL_PARAMETER_CDN,
/**< Takes a @ref MMAL_PARAMETER_BOOLEAN_T */
MMAL_PARAMETER_JPEG_IJG_SCALING,
};
u16 y[MMAL_NUM_GAMMA_PTS];
};
+enum mmal_parameter_cdn_mode {
+ MMAL_PARAM_CDN_FAST = 0,
+ MMAL_PARAM_CDN_HIGH_QUALITY = 1,
+ MMAL_PARAM_CDN_DUMMY = 0x7FFFFFFF
+};
+
+struct mmal_parameter_colour_denoise {
+ u32 enabled;
+ enum mmal_parameter_cdn_mode mode;
+};
+
struct mmal_parameter_denoise {
u32 enabled;
u32 constant;