1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28#ifndef __IPU_PIXFMT_H__
29#define __IPU_PIXFMT_H__
30
31#include <linux/list.h>
32#include <linux/fb.h>
33
34
35#define fourcc(a, b, c, d)\
36 (((__u32)(a)<<0)|((__u32)(b)<<8)|((__u32)(c)<<16)|((__u32)(d)<<24))
37
38
39
40
41
42
43#define IPU_PIX_FMT_GENERIC fourcc('I', 'P', 'U', '0')
44#define IPU_PIX_FMT_GENERIC_32 fourcc('I', 'P', 'U', '1')
45#define IPU_PIX_FMT_LVDS666 fourcc('L', 'V', 'D', '6')
46#define IPU_PIX_FMT_LVDS888 fourcc('L', 'V', 'D', '8')
47
48#define IPU_PIX_FMT_RGB332 fourcc('R', 'G', 'B', '1')
49#define IPU_PIX_FMT_RGB555 fourcc('R', 'G', 'B', 'O')
50#define IPU_PIX_FMT_RGB565 fourcc('R', 'G', 'B', 'P')
51#define IPU_PIX_FMT_RGB666 fourcc('R', 'G', 'B', '6')
52#define IPU_PIX_FMT_BGR666 fourcc('B', 'G', 'R', '6')
53#define IPU_PIX_FMT_BGR24 fourcc('B', 'G', 'R', '3')
54#define IPU_PIX_FMT_RGB24 fourcc('R', 'G', 'B', '3')
55#define IPU_PIX_FMT_BGR32 fourcc('B', 'G', 'R', '4')
56#define IPU_PIX_FMT_BGRA32 fourcc('B', 'G', 'R', 'A')
57#define IPU_PIX_FMT_RGB32 fourcc('R', 'G', 'B', '4')
58#define IPU_PIX_FMT_RGBA32 fourcc('R', 'G', 'B', 'A')
59#define IPU_PIX_FMT_ABGR32 fourcc('A', 'B', 'G', 'R')
60
61
62#define IPU_PIX_FMT_YUYV fourcc('Y', 'U', 'Y', 'V')
63#define IPU_PIX_FMT_UYVY fourcc('U', 'Y', 'V', 'Y')
64#define IPU_PIX_FMT_Y41P fourcc('Y', '4', '1', 'P')
65#define IPU_PIX_FMT_YUV444 fourcc('Y', '4', '4', '4')
66
67
68#define IPU_PIX_FMT_NV12 fourcc('N', 'V', '1', '2')
69
70#define IPU_PIX_FMT_GREY fourcc('G', 'R', 'E', 'Y')
71#define IPU_PIX_FMT_YVU410P fourcc('Y', 'V', 'U', '9')
72#define IPU_PIX_FMT_YUV410P fourcc('Y', 'U', 'V', '9')
73#define IPU_PIX_FMT_YVU420P fourcc('Y', 'V', '1', '2')
74#define IPU_PIX_FMT_YUV420P fourcc('I', '4', '2', '0')
75#define IPU_PIX_FMT_YUV420P2 fourcc('Y', 'U', '1', '2')
76#define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6')
77#define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P')
78
79int ipuv3_fb_init(struct fb_videomode const *mode,
80 uint8_t disp,
81 uint32_t pixfmt);
82void ipuv3_fb_shutdown(void);
83
84#endif
85