diff options
author | Helen Fornazier <helen.koike@collabora.com> | 2017-06-19 20:00:19 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-23 15:13:57 +0300 |
commit | 88f42bf0b5bcab0ae1a9703d9636412785c1e680 (patch) | |
tree | 4b32a90027fffa8d1a1a4414a9d99f384a8601a8 /drivers/media/platform/vimc/vimc-common.h | |
parent | 4a29b70907496aa9da79112ec31cf9cf2b972c3f (diff) | |
download | linux-88f42bf0b5bcab0ae1a9703d9636412785c1e680.tar.xz |
[media] vimc: deb: Add debayer filter
Implement the debayer filter and integrate it with the core
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.h')
-rw-r--r-- | drivers/media/platform/vimc/vimc-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-common.h b/drivers/media/platform/vimc/vimc-common.h index a9c1cfdc0dff..25ba75283ed4 100644 --- a/drivers/media/platform/vimc/vimc-common.h +++ b/drivers/media/platform/vimc/vimc-common.h @@ -27,6 +27,8 @@ #define VIMC_FRAME_MIN_WIDTH 16 #define VIMC_FRAME_MIN_HEIGHT 16 +#define VIMC_FRAME_INDEX(lin, col, width, bpp) ((lin * width + col) * bpp) + /** * struct vimc_colorimetry_clamp - Adjust colorimetry parameters * |