Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
drm_fourcc.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Macros

#define fourcc_code(a, b, c, d)
 
#define DRM_FORMAT_BIG_ENDIAN   (1<<31) /* format is big endian instead of little endian */
 
#define DRM_FORMAT_C8   fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
 
#define DRM_FORMAT_RGB332   fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
 
#define DRM_FORMAT_BGR233   fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
 
#define DRM_FORMAT_XRGB4444   fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian */
 
#define DRM_FORMAT_XBGR4444   fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian */
 
#define DRM_FORMAT_RGBX4444   fourcc_code('R', 'X', '1', '2') /* [15:0] R:G:B:x 4:4:4:4 little endian */
 
#define DRM_FORMAT_BGRX4444   fourcc_code('B', 'X', '1', '2') /* [15:0] B:G:R:x 4:4:4:4 little endian */
 
#define DRM_FORMAT_ARGB4444   fourcc_code('A', 'R', '1', '2') /* [15:0] A:R:G:B 4:4:4:4 little endian */
 
#define DRM_FORMAT_ABGR4444   fourcc_code('A', 'B', '1', '2') /* [15:0] A:B:G:R 4:4:4:4 little endian */
 
#define DRM_FORMAT_RGBA4444   fourcc_code('R', 'A', '1', '2') /* [15:0] R:G:B:A 4:4:4:4 little endian */
 
#define DRM_FORMAT_BGRA4444   fourcc_code('B', 'A', '1', '2') /* [15:0] B:G:R:A 4:4:4:4 little endian */
 
#define DRM_FORMAT_XRGB1555   fourcc_code('X', 'R', '1', '5') /* [15:0] x:R:G:B 1:5:5:5 little endian */
 
#define DRM_FORMAT_XBGR1555   fourcc_code('X', 'B', '1', '5') /* [15:0] x:B:G:R 1:5:5:5 little endian */
 
#define DRM_FORMAT_RGBX5551   fourcc_code('R', 'X', '1', '5') /* [15:0] R:G:B:x 5:5:5:1 little endian */
 
#define DRM_FORMAT_BGRX5551   fourcc_code('B', 'X', '1', '5') /* [15:0] B:G:R:x 5:5:5:1 little endian */
 
#define DRM_FORMAT_ARGB1555   fourcc_code('A', 'R', '1', '5') /* [15:0] A:R:G:B 1:5:5:5 little endian */
 
#define DRM_FORMAT_ABGR1555   fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */
 
#define DRM_FORMAT_RGBA5551   fourcc_code('R', 'A', '1', '5') /* [15:0] R:G:B:A 5:5:5:1 little endian */
 
#define DRM_FORMAT_BGRA5551   fourcc_code('B', 'A', '1', '5') /* [15:0] B:G:R:A 5:5:5:1 little endian */
 
#define DRM_FORMAT_RGB565   fourcc_code('R', 'G', '1', '6') /* [15:0] R:G:B 5:6:5 little endian */
 
#define DRM_FORMAT_BGR565   fourcc_code('B', 'G', '1', '6') /* [15:0] B:G:R 5:6:5 little endian */
 
#define DRM_FORMAT_RGB888   fourcc_code('R', 'G', '2', '4') /* [23:0] R:G:B little endian */
 
#define DRM_FORMAT_BGR888   fourcc_code('B', 'G', '2', '4') /* [23:0] B:G:R little endian */
 
#define DRM_FORMAT_XRGB8888   fourcc_code('X', 'R', '2', '4') /* [31:0] x:R:G:B 8:8:8:8 little endian */
 
#define DRM_FORMAT_XBGR8888   fourcc_code('X', 'B', '2', '4') /* [31:0] x:B:G:R 8:8:8:8 little endian */
 
#define DRM_FORMAT_RGBX8888   fourcc_code('R', 'X', '2', '4') /* [31:0] R:G:B:x 8:8:8:8 little endian */
 
#define DRM_FORMAT_BGRX8888   fourcc_code('B', 'X', '2', '4') /* [31:0] B:G:R:x 8:8:8:8 little endian */
 
#define DRM_FORMAT_ARGB8888   fourcc_code('A', 'R', '2', '4') /* [31:0] A:R:G:B 8:8:8:8 little endian */
 
#define DRM_FORMAT_ABGR8888   fourcc_code('A', 'B', '2', '4') /* [31:0] A:B:G:R 8:8:8:8 little endian */
 
#define DRM_FORMAT_RGBA8888   fourcc_code('R', 'A', '2', '4') /* [31:0] R:G:B:A 8:8:8:8 little endian */
 
#define DRM_FORMAT_BGRA8888   fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */
 
#define DRM_FORMAT_XRGB2101010   fourcc_code('X', 'R', '3', '0') /* [31:0] x:R:G:B 2:10:10:10 little endian */
 
#define DRM_FORMAT_XBGR2101010   fourcc_code('X', 'B', '3', '0') /* [31:0] x:B:G:R 2:10:10:10 little endian */
 
#define DRM_FORMAT_RGBX1010102   fourcc_code('R', 'X', '3', '0') /* [31:0] R:G:B:x 10:10:10:2 little endian */
 
#define DRM_FORMAT_BGRX1010102   fourcc_code('B', 'X', '3', '0') /* [31:0] B:G:R:x 10:10:10:2 little endian */
 
#define DRM_FORMAT_ARGB2101010   fourcc_code('A', 'R', '3', '0') /* [31:0] A:R:G:B 2:10:10:10 little endian */
 
#define DRM_FORMAT_ABGR2101010   fourcc_code('A', 'B', '3', '0') /* [31:0] A:B:G:R 2:10:10:10 little endian */
 
#define DRM_FORMAT_RGBA1010102   fourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */
 
#define DRM_FORMAT_BGRA1010102   fourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */
 
#define DRM_FORMAT_YUYV   fourcc_code('Y', 'U', 'Y', 'V') /* [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian */
 
#define DRM_FORMAT_YVYU   fourcc_code('Y', 'V', 'Y', 'U') /* [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian */
 
#define DRM_FORMAT_UYVY   fourcc_code('U', 'Y', 'V', 'Y') /* [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian */
 
#define DRM_FORMAT_VYUY   fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */
 
#define DRM_FORMAT_AYUV   fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */
 
#define DRM_FORMAT_NV12   fourcc_code('N', 'V', '1', '2') /* 2x2 subsampled Cr:Cb plane */
 
#define DRM_FORMAT_NV21   fourcc_code('N', 'V', '2', '1') /* 2x2 subsampled Cb:Cr plane */
 
#define DRM_FORMAT_NV16   fourcc_code('N', 'V', '1', '6') /* 2x1 subsampled Cr:Cb plane */
 
#define DRM_FORMAT_NV61   fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */
 
#define DRM_FORMAT_NV24   fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */
 
#define DRM_FORMAT_NV42   fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */
 
#define DRM_FORMAT_NV12MT   fourcc_code('T', 'M', '1', '2') /* 2x2 subsampled Cr:Cb plane 64x32 macroblocks */
 
#define DRM_FORMAT_YUV410   fourcc_code('Y', 'U', 'V', '9') /* 4x4 subsampled Cb (1) and Cr (2) planes */
 
#define DRM_FORMAT_YVU410   fourcc_code('Y', 'V', 'U', '9') /* 4x4 subsampled Cr (1) and Cb (2) planes */
 
#define DRM_FORMAT_YUV411   fourcc_code('Y', 'U', '1', '1') /* 4x1 subsampled Cb (1) and Cr (2) planes */
 
#define DRM_FORMAT_YVU411   fourcc_code('Y', 'V', '1', '1') /* 4x1 subsampled Cr (1) and Cb (2) planes */
 
#define DRM_FORMAT_YUV420   fourcc_code('Y', 'U', '1', '2') /* 2x2 subsampled Cb (1) and Cr (2) planes */
 
#define DRM_FORMAT_YVU420   fourcc_code('Y', 'V', '1', '2') /* 2x2 subsampled Cr (1) and Cb (2) planes */
 
#define DRM_FORMAT_YUV422   fourcc_code('Y', 'U', '1', '6') /* 2x1 subsampled Cb (1) and Cr (2) planes */
 
#define DRM_FORMAT_YVU422   fourcc_code('Y', 'V', '1', '6') /* 2x1 subsampled Cr (1) and Cb (2) planes */
 
#define DRM_FORMAT_YUV444   fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */
 
#define DRM_FORMAT_YVU444   fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */
 

Macro Definition Documentation

#define DRM_FORMAT_ABGR1555   fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */

Definition at line 58 of file drm_fourcc.h.

#define DRM_FORMAT_ABGR2101010   fourcc_code('A', 'B', '3', '0') /* [31:0] A:B:G:R 2:10:10:10 little endian */

Definition at line 86 of file drm_fourcc.h.

#define DRM_FORMAT_ABGR4444   fourcc_code('A', 'B', '1', '2') /* [15:0] A:B:G:R 4:4:4:4 little endian */

Definition at line 48 of file drm_fourcc.h.

#define DRM_FORMAT_ABGR8888   fourcc_code('A', 'B', '2', '4') /* [31:0] A:B:G:R 8:8:8:8 little endian */

Definition at line 76 of file drm_fourcc.h.

#define DRM_FORMAT_ARGB1555   fourcc_code('A', 'R', '1', '5') /* [15:0] A:R:G:B 1:5:5:5 little endian */

Definition at line 57 of file drm_fourcc.h.

#define DRM_FORMAT_ARGB2101010   fourcc_code('A', 'R', '3', '0') /* [31:0] A:R:G:B 2:10:10:10 little endian */

Definition at line 85 of file drm_fourcc.h.

#define DRM_FORMAT_ARGB4444   fourcc_code('A', 'R', '1', '2') /* [15:0] A:R:G:B 4:4:4:4 little endian */

Definition at line 47 of file drm_fourcc.h.

#define DRM_FORMAT_ARGB8888   fourcc_code('A', 'R', '2', '4') /* [31:0] A:R:G:B 8:8:8:8 little endian */

Definition at line 75 of file drm_fourcc.h.

#define DRM_FORMAT_AYUV   fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */

Definition at line 96 of file drm_fourcc.h.

#define DRM_FORMAT_BGR233   fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */

Definition at line 39 of file drm_fourcc.h.

#define DRM_FORMAT_BGR565   fourcc_code('B', 'G', '1', '6') /* [15:0] B:G:R 5:6:5 little endian */

Definition at line 63 of file drm_fourcc.h.

#define DRM_FORMAT_BGR888   fourcc_code('B', 'G', '2', '4') /* [23:0] B:G:R little endian */

Definition at line 67 of file drm_fourcc.h.

#define DRM_FORMAT_BGRA1010102   fourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */

Definition at line 88 of file drm_fourcc.h.

#define DRM_FORMAT_BGRA4444   fourcc_code('B', 'A', '1', '2') /* [15:0] B:G:R:A 4:4:4:4 little endian */

Definition at line 50 of file drm_fourcc.h.

#define DRM_FORMAT_BGRA5551   fourcc_code('B', 'A', '1', '5') /* [15:0] B:G:R:A 5:5:5:1 little endian */

Definition at line 60 of file drm_fourcc.h.

#define DRM_FORMAT_BGRA8888   fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */

Definition at line 78 of file drm_fourcc.h.

#define DRM_FORMAT_BGRX1010102   fourcc_code('B', 'X', '3', '0') /* [31:0] B:G:R:x 10:10:10:2 little endian */

Definition at line 83 of file drm_fourcc.h.

#define DRM_FORMAT_BGRX4444   fourcc_code('B', 'X', '1', '2') /* [15:0] B:G:R:x 4:4:4:4 little endian */

Definition at line 45 of file drm_fourcc.h.

#define DRM_FORMAT_BGRX5551   fourcc_code('B', 'X', '1', '5') /* [15:0] B:G:R:x 5:5:5:1 little endian */

Definition at line 55 of file drm_fourcc.h.

#define DRM_FORMAT_BGRX8888   fourcc_code('B', 'X', '2', '4') /* [31:0] B:G:R:x 8:8:8:8 little endian */

Definition at line 73 of file drm_fourcc.h.

#define DRM_FORMAT_BIG_ENDIAN   (1<<31) /* format is big endian instead of little endian */

Definition at line 32 of file drm_fourcc.h.

#define DRM_FORMAT_C8   fourcc_code('C', '8', ' ', ' ') /* [7:0] C */

Definition at line 35 of file drm_fourcc.h.

#define DRM_FORMAT_NV12   fourcc_code('N', 'V', '1', '2') /* 2x2 subsampled Cr:Cb plane */

Definition at line 105 of file drm_fourcc.h.

#define DRM_FORMAT_NV12MT   fourcc_code('T', 'M', '1', '2') /* 2x2 subsampled Cr:Cb plane 64x32 macroblocks */

Definition at line 113 of file drm_fourcc.h.

#define DRM_FORMAT_NV16   fourcc_code('N', 'V', '1', '6') /* 2x1 subsampled Cr:Cb plane */

Definition at line 107 of file drm_fourcc.h.

#define DRM_FORMAT_NV21   fourcc_code('N', 'V', '2', '1') /* 2x2 subsampled Cb:Cr plane */

Definition at line 106 of file drm_fourcc.h.

#define DRM_FORMAT_NV24   fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */

Definition at line 109 of file drm_fourcc.h.

#define DRM_FORMAT_NV42   fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */

Definition at line 110 of file drm_fourcc.h.

#define DRM_FORMAT_NV61   fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */

Definition at line 108 of file drm_fourcc.h.

#define DRM_FORMAT_RGB332   fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */

Definition at line 38 of file drm_fourcc.h.

#define DRM_FORMAT_RGB565   fourcc_code('R', 'G', '1', '6') /* [15:0] R:G:B 5:6:5 little endian */

Definition at line 62 of file drm_fourcc.h.

#define DRM_FORMAT_RGB888   fourcc_code('R', 'G', '2', '4') /* [23:0] R:G:B little endian */

Definition at line 66 of file drm_fourcc.h.

#define DRM_FORMAT_RGBA1010102   fourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */

Definition at line 87 of file drm_fourcc.h.

#define DRM_FORMAT_RGBA4444   fourcc_code('R', 'A', '1', '2') /* [15:0] R:G:B:A 4:4:4:4 little endian */

Definition at line 49 of file drm_fourcc.h.

#define DRM_FORMAT_RGBA5551   fourcc_code('R', 'A', '1', '5') /* [15:0] R:G:B:A 5:5:5:1 little endian */

Definition at line 59 of file drm_fourcc.h.

#define DRM_FORMAT_RGBA8888   fourcc_code('R', 'A', '2', '4') /* [31:0] R:G:B:A 8:8:8:8 little endian */

Definition at line 77 of file drm_fourcc.h.

#define DRM_FORMAT_RGBX1010102   fourcc_code('R', 'X', '3', '0') /* [31:0] R:G:B:x 10:10:10:2 little endian */

Definition at line 82 of file drm_fourcc.h.

#define DRM_FORMAT_RGBX4444   fourcc_code('R', 'X', '1', '2') /* [15:0] R:G:B:x 4:4:4:4 little endian */

Definition at line 44 of file drm_fourcc.h.

#define DRM_FORMAT_RGBX5551   fourcc_code('R', 'X', '1', '5') /* [15:0] R:G:B:x 5:5:5:1 little endian */

Definition at line 54 of file drm_fourcc.h.

#define DRM_FORMAT_RGBX8888   fourcc_code('R', 'X', '2', '4') /* [31:0] R:G:B:x 8:8:8:8 little endian */

Definition at line 72 of file drm_fourcc.h.

#define DRM_FORMAT_UYVY   fourcc_code('U', 'Y', 'V', 'Y') /* [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian */

Definition at line 93 of file drm_fourcc.h.

#define DRM_FORMAT_VYUY   fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */

Definition at line 94 of file drm_fourcc.h.

#define DRM_FORMAT_XBGR1555   fourcc_code('X', 'B', '1', '5') /* [15:0] x:B:G:R 1:5:5:5 little endian */

Definition at line 53 of file drm_fourcc.h.

#define DRM_FORMAT_XBGR2101010   fourcc_code('X', 'B', '3', '0') /* [31:0] x:B:G:R 2:10:10:10 little endian */

Definition at line 81 of file drm_fourcc.h.

#define DRM_FORMAT_XBGR4444   fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian */

Definition at line 43 of file drm_fourcc.h.

#define DRM_FORMAT_XBGR8888   fourcc_code('X', 'B', '2', '4') /* [31:0] x:B:G:R 8:8:8:8 little endian */

Definition at line 71 of file drm_fourcc.h.

#define DRM_FORMAT_XRGB1555   fourcc_code('X', 'R', '1', '5') /* [15:0] x:R:G:B 1:5:5:5 little endian */

Definition at line 52 of file drm_fourcc.h.

#define DRM_FORMAT_XRGB2101010   fourcc_code('X', 'R', '3', '0') /* [31:0] x:R:G:B 2:10:10:10 little endian */

Definition at line 80 of file drm_fourcc.h.

#define DRM_FORMAT_XRGB4444   fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian */

Definition at line 42 of file drm_fourcc.h.

#define DRM_FORMAT_XRGB8888   fourcc_code('X', 'R', '2', '4') /* [31:0] x:R:G:B 8:8:8:8 little endian */

Definition at line 70 of file drm_fourcc.h.

#define DRM_FORMAT_YUV410   fourcc_code('Y', 'U', 'V', '9') /* 4x4 subsampled Cb (1) and Cr (2) planes */

Definition at line 124 of file drm_fourcc.h.

#define DRM_FORMAT_YUV411   fourcc_code('Y', 'U', '1', '1') /* 4x1 subsampled Cb (1) and Cr (2) planes */

Definition at line 126 of file drm_fourcc.h.

#define DRM_FORMAT_YUV420   fourcc_code('Y', 'U', '1', '2') /* 2x2 subsampled Cb (1) and Cr (2) planes */

Definition at line 128 of file drm_fourcc.h.

#define DRM_FORMAT_YUV422   fourcc_code('Y', 'U', '1', '6') /* 2x1 subsampled Cb (1) and Cr (2) planes */

Definition at line 130 of file drm_fourcc.h.

#define DRM_FORMAT_YUV444   fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */

Definition at line 132 of file drm_fourcc.h.

#define DRM_FORMAT_YUYV   fourcc_code('Y', 'U', 'Y', 'V') /* [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian */

Definition at line 91 of file drm_fourcc.h.

#define DRM_FORMAT_YVU410   fourcc_code('Y', 'V', 'U', '9') /* 4x4 subsampled Cr (1) and Cb (2) planes */

Definition at line 125 of file drm_fourcc.h.

#define DRM_FORMAT_YVU411   fourcc_code('Y', 'V', '1', '1') /* 4x1 subsampled Cr (1) and Cb (2) planes */

Definition at line 127 of file drm_fourcc.h.

#define DRM_FORMAT_YVU420   fourcc_code('Y', 'V', '1', '2') /* 2x2 subsampled Cr (1) and Cb (2) planes */

Definition at line 129 of file drm_fourcc.h.

#define DRM_FORMAT_YVU422   fourcc_code('Y', 'V', '1', '6') /* 2x1 subsampled Cr (1) and Cb (2) planes */

Definition at line 131 of file drm_fourcc.h.

#define DRM_FORMAT_YVU444   fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */

Definition at line 133 of file drm_fourcc.h.

#define DRM_FORMAT_YVYU   fourcc_code('Y', 'V', 'Y', 'U') /* [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian */

Definition at line 92 of file drm_fourcc.h.

#define fourcc_code (   a,
  b,
  c,
  d 
)
Value:
((__u32)(a) | ((__u32)(b) << 8) | \
((__u32)(c) << 16) | ((__u32)(d) << 24))

Definition at line 29 of file drm_fourcc.h.