/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
S3C_FB_PIXEL_FORMAT_RGBX_8888 = 1,
S3C_FB_PIXEL_FORMAT_RGBA_5551 = 2,
- S3C_FB_PIXEL_FORMAT_MAX = 3,
+ S3C_FB_PIXEL_FORMAT_RGB_565 = 3,
+ S3C_FB_PIXEL_FORMAT_MAX = 4,
};
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
enum s3c_fb_blending {
return S3C_FB_PIXEL_FORMAT_RGBX_8888;
case HAL_PIXEL_FORMAT_RGBA_5551:
return S3C_FB_PIXEL_FORMAT_RGBA_5551;
-
+ case HAL_PIXEL_FORMAT_RGB_565:
+ return S3C_FB_PIXEL_FORMAT_RGB_565;
default:
return S3C_FB_PIXEL_FORMAT_MAX;
}
static bool exynos5_format_requires_gscaler(int format)
{
- return exynos5_format_is_supported_by_gscaler(format) &&
- format != HAL_PIXEL_FORMAT_RGBX_8888;
+ return (exynos5_format_is_supported_by_gscaler(format) &&
+ (format != HAL_PIXEL_FORMAT_RGBX_8888) && (format != HAL_PIXEL_FORMAT_RGB_565));
}
static uint8_t exynos5_format_to_bpp(int format)
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
+ case HAL_PIXEL_FORMAT_RGB_565:
return 16;
default: