Skip to content

Commit e3ac768

Browse files
naushirpopcornmix
authored andcommitted
uapi: bcm2835-isp: Add colour denoise configuration
Add a configuration structure for colour denoise to the bcm2835_isp driver. Signed-off-by: Naushir Patuck <[email protected]>
1 parent abae119 commit e3ac768

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

include/uapi/linux/bcm2835-isp.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0007)
3232
#define V4L2_CID_USER_BCM2835_ISP_DPC \
3333
(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0008)
34+
#define V4L2_CID_USER_BCM2835_ISP_CDN \
35+
(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0009)
3436

3537
/*
3638
* All structs below are directly mapped onto the equivalent structs in
@@ -175,6 +177,31 @@ struct bcm2835_isp_gamma {
175177
__u16 y[BCM2835_NUM_GAMMA_PTS];
176178
};
177179

180+
/**
181+
* enum bcm2835_isp_cdn_mode - Mode of operation for colour denoise.
182+
*
183+
* @CDN_MODE_FAST: Fast (but lower quality) colour denoise
184+
* algorithm, typically used for video recording.
185+
* @CDN_HIGH_QUALITY: High quality (but slower) colour denoise
186+
* algorithm, typically used for stills capture.
187+
*/
188+
enum bcm2835_isp_cdn_mode {
189+
CDN_MODE_FAST = 0,
190+
CDN_MODE_HIGH_QUALITY = 1,
191+
};
192+
193+
/**
194+
* struct bcm2835_isp_cdn - Colour denoise parameters set with the
195+
* V4L2_CID_USER_BCM2835_ISP_CDN ctrl.
196+
*
197+
* @enabled: Enable colour denoise.
198+
* @mode: Colour denoise operating mode (see enum &bcm2835_isp_cdn_mode)
199+
*/
200+
struct bcm2835_isp_cdn {
201+
__u32 enabled;
202+
__u32 mode;
203+
};
204+
178205
/**
179206
* struct bcm2835_isp_denoise - Denoise parameters set with the
180207
* V4L2_CID_USER_BCM2835_ISP_DENOISE ctrl.

0 commit comments

Comments
 (0)