diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2012-07-09 04:25:52 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 16:55:22 -0300 |
commit | 8f35c7bc265c99fadb5b4057f623e2e242043736 (patch) | |
tree | a5842a10391d6a167be7fc99b5d2d3a977521f67 /drivers/media/platform/coda.h | |
parent | 451d43ad44b00bd6d518254086378464ffef96ef (diff) | |
download | lwn-8f35c7bc265c99fadb5b4057f623e2e242043736.tar.gz lwn-8f35c7bc265c99fadb5b4057f623e2e242043736.zip |
[media] media: coda: add horizontal / vertical flipping support
The hardware can also rotate in 90° steps, but there is no
corresponding V4L2_CID defined yet.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/coda.h')
-rw-r--r-- | drivers/media/platform/coda.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/platform/coda.h b/drivers/media/platform/coda.h index 332401033194..f3f5e43c1ac2 100644 --- a/drivers/media/platform/coda.h +++ b/drivers/media/platform/coda.h @@ -188,6 +188,15 @@ #define CODA_CMD_ENC_PIC_SRC_ADDR_CR 0x188 #define CODA_CMD_ENC_PIC_QS 0x18c #define CODA_CMD_ENC_PIC_ROT_MODE 0x190 +#define CODA_ROT_MIR_ENABLE (1 << 4) +#define CODA_ROT_0 (0x0 << 0) +#define CODA_ROT_90 (0x1 << 0) +#define CODA_ROT_180 (0x2 << 0) +#define CODA_ROT_270 (0x3 << 0) +#define CODA_MIR_NONE (0x0 << 2) +#define CODA_MIR_VER (0x1 << 2) +#define CODA_MIR_HOR (0x2 << 2) +#define CODA_MIR_VER_HOR (0x3 << 2) #define CODA_CMD_ENC_PIC_OPTION 0x194 #define CODA_CMD_ENC_PIC_BB_START 0x198 #define CODA_CMD_ENC_PIC_BB_SIZE 0x19c |