rk_fb: add RGB BT709/BT2020 format
authorMark Yao <mark.yao@rock-chips.com>
Thu, 29 Oct 2015 07:57:23 +0000 (15:57 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Fri, 6 Nov 2015 00:36:26 +0000 (08:36 +0800)
Change-Id: I9581f78955c3efe77375bfa5e8ac571ac1d5aae4
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
include/dt-bindings/rkfb/rk_fb.h

index 7e0596fd568d1621745e10944e39c1785b34a8a2..17df779e4a5647d5316ebc872ba533807ba20fcc 100755 (executable)
 #define ROTATE_270     12
 
 #define COLOR_RGB              0
+#define COLOR_RGB_BT2020       1
 /* default colorspace is bt601 */
-#define COLOR_YCBCR            1
+#define COLOR_YCBCR            2
+#define COLOR_YCBCR_BT709      3
+#define COLOR_YCBCR_BT2020     4
 
-#define COLOR_YCBCR_BT709      2
-#define COLOR_YCBCR_BT2020     3
+#define IS_YUV_COLOR(x)                ((x) >= COLOR_YCBCR)
 
 /* fb win map */
 #define FB_DEFAULT_ORDER               0