1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef DRM_FOURCC_GS101_H 8 #define DRM_FOURCC_GS101_H 9 #include <drm/drm_fourcc.h> 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 #define DRM_FORMAT_Y010 fourcc_code('Y', '0', '1', '0') 14 #define DRM_FORMAT_MOD_PROTECTION fourcc_mod_code(NONE, (1ULL << 51)) 15 #define DRM_FORMAT_MOD_SAMSUNG_YUV_8_2_SPLIT fourcc_mod_code(SAMSUNG, 3) 16 #define DRM_FORMAT_MOD_SAMSUNG_COLORMAP fourcc_mod_code(SAMSUNG, 4) 17 #define SBWC_IDENTIFIER (1 << 4) 18 #define SBWC_FORMAT_MOD_BLOCK_SIZE_MASK (0xfULL << 5) 19 #define SBWC_BLOCK_SIZE_SET(blk_size) (((blk_size) << 5) & SBWC_FORMAT_MOD_BLOCK_SIZE_MASK) 20 #define SBWC_BLOCK_SIZE_GET(modifier) (((modifier) & SBWC_FORMAT_MOD_BLOCK_SIZE_MASK) >> 5) 21 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x2 (2ULL) 22 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x3 (3ULL) 23 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x4 (4ULL) 24 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x5 (5ULL) 25 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x6 (6ULL) 26 #define SBWC_FORMAT_MOD_LOSSY (1 << 12) 27 #define DRM_FORMAT_MOD_SAMSUNG_SBWC(blk_size) fourcc_mod_code(SAMSUNG, (SBWC_BLOCK_SIZE_SET(blk_size) | SBWC_IDENTIFIER)) 28 #define AFBC_FORMAT_MOD_SOURCE_MASK (0xfULL << 52) 29 #define AFBC_FORMAT_MOD_SOURCE_GPU (1ULL << 52) 30 #define AFBC_FORMAT_MOD_SOURCE_G2D (2ULL << 52) 31 #define AFBC_BLOCK_SIZE_GET(modifier) (modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK) 32 #ifdef __cplusplus 33 } 34 #endif 35 #endif 36