aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/omap3isp.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-18 11:24:48 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-11 15:59:54 -0300
commit6fd206cb6ebd59e42b376b9e2e8f40d90910757e (patch)
tree0700e2a42b84851af5c45dbbca9c6d11cb9bb4c6 /include/linux/omap3isp.h
parent[media] omap3isp: preview: Merge gamma correction and gamma bypass (diff)
downloadlinux-dev-6fd206cb6ebd59e42b376b9e2e8f40d90910757e.tar.xz
linux-dev-6fd206cb6ebd59e42b376b9e2e8f40d90910757e.zip
[media] omap3isp: preview: Add support for non-GRBG Bayer patterns
Rearrange the CFA interpolation coefficients table based on the Bayer pattern. Support for non-Bayer CFA patterns is dropped as they were not correctly supported, and have never been tested. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/omap3isp.h')
-rw-r--r--include/linux/omap3isp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/omap3isp.h b/include/linux/omap3isp.h
index 0cddaa9d08bb..c090cf9249bb 100644
--- a/include/linux/omap3isp.h
+++ b/include/linux/omap3isp.h
@@ -437,6 +437,7 @@ struct omap3isp_ccdc_update_config {
#define OMAP3ISP_PREV_NF_TBL_SIZE 64
#define OMAP3ISP_PREV_CFA_TBL_SIZE 576
+#define OMAP3ISP_PREV_CFA_BLK_SIZE (OMAP3ISP_PREV_CFA_TBL_SIZE / 4)
#define OMAP3ISP_PREV_GAMMA_TBL_SIZE 1024
#define OMAP3ISP_PREV_YENH_TBL_SIZE 128
@@ -478,7 +479,7 @@ struct omap3isp_prev_cfa {
enum omap3isp_cfa_fmt format;
__u8 gradthrs_vert;
__u8 gradthrs_horz;
- __u32 table[OMAP3ISP_PREV_CFA_TBL_SIZE];
+ __u32 table[4][OMAP3ISP_PREV_CFA_BLK_SIZE];
};
/**