summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWayne Zou <b36644@freescale.com>2012-04-13 08:19:46 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:36:13 +0800
commit99bab876919f0ab75518ac295ad97702b9801c53 (patch)
treebb6cbbfb65a89cc1e01b7b7646ce9393920075eb /include
parent7e1e90f910aad11ad15e80bb30d03f0f13a1856c (diff)
ENGR00179513-2 IPU: Add TILED_NV12_FRAME_SIZE macro for consistency
VPU needs 4K align buffer address for tiled format data output. Use this macro for IPU/V4L2/Apps to calculate the frame/field size. Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ipu.h b/include/linux/ipu.h
index 973cfe9b45a5..e0c9e90c2804 100644
--- a/include/linux/ipu.h
+++ b/include/linux/ipu.h
@@ -141,6 +141,8 @@ typedef enum {
#define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*!< 16 YUV 4:2:2 */
/*! @} */
#define IPU_PIX_FMT_TILED_NV12_MBALIGN (16)
+#define TILED_NV12_FRAME_SIZE(w, h) \
+ (ALIGN((w) * (h), SZ_4K) + ALIGN((w) * (h) / 2, SZ_4K))
/* IPU device */
typedef enum {
RGB_CS,