summaryrefslogtreecommitdiff
path: root/src/static_libs/libdrm/drm_fourcc.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-06-09 14:23:57 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-09 14:23:57 -0400
commitca66a9fa0de567086fc2c1405ca1980357a88db1 (patch)
tree732c4a6adbc2e89aa613ea4c8671191886dc7927 /src/static_libs/libdrm/drm_fourcc.h
parent11fd8259ba5aa8835ce610d7de8d695168473dac (diff)
static_libs/libdrm: Update static libdrm headers
This patch updates our static_libs/libdrm header files to version 2.4.81-1 (from arch). NB: derek, I don't have the exynos headers here. Please update them when you can. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/static_libs/libdrm/drm_fourcc.h')
-rw-r--r--src/static_libs/libdrm/drm_fourcc.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/static_libs/libdrm/drm_fourcc.h b/src/static_libs/libdrm/drm_fourcc.h
index e741b09a00..4d8da699a6 100644
--- a/src/static_libs/libdrm/drm_fourcc.h
+++ b/src/static_libs/libdrm/drm_fourcc.h
@@ -24,16 +24,23 @@
24#ifndef DRM_FOURCC_H 24#ifndef DRM_FOURCC_H
25#define DRM_FOURCC_H 25#define DRM_FOURCC_H
26 26
27#include <inttypes.h> 27#include "drm.h"
28 28
29#define fourcc_code(a,b,c,d) ((uint32_t)(a) | ((uint32_t)(b) << 8) | \ 29#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
30 ((uint32_t)(c) << 16) | ((uint32_t)(d) << 24)) 30 ((__u32)(c) << 16) | ((__u32)(d) << 24))
31 31
32#define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */ 32#define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */
33 33
34/* color index */ 34/* color index */
35#define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */ 35#define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
36 36
37/* 8 bpp Red */
38#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
39
40/* 16 bpp RG */
41#define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
42#define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
43
37/* 8 bpp RGB */ 44/* 8 bpp RGB */
38#define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */ 45#define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
39#define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */ 46#define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
@@ -106,6 +113,8 @@
106#define DRM_FORMAT_NV21 fourcc_code('N', 'V', '2', '1') /* 2x2 subsampled Cb:Cr plane */ 113#define DRM_FORMAT_NV21 fourcc_code('N', 'V', '2', '1') /* 2x2 subsampled Cb:Cr plane */
107#define DRM_FORMAT_NV16 fourcc_code('N', 'V', '1', '6') /* 2x1 subsampled Cr:Cb plane */ 114#define DRM_FORMAT_NV16 fourcc_code('N', 'V', '1', '6') /* 2x1 subsampled Cr:Cb plane */
108#define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */ 115#define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */
116#define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */
117#define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */
109 118
110/* 119/*
111 * 3 plane YCbCr 120 * 3 plane YCbCr
@@ -216,7 +225,7 @@
216 * - multiple of 128 pixels for the width 225 * - multiple of 128 pixels for the width
217 * - multiple of 32 pixels for the height 226 * - multiple of 32 pixels for the height
218 * 227 *
219 * For more information: see http://linuxtv.org/downloads/v4l-dvb-apis/re32.html 228 * For more information: see https://linuxtv.org/downloads/v4l-dvb-apis/re32.html
220 */ 229 */
221#define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1) 230#define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1)
222 231