mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
hwc: RGB_565 pixel format is not supported
thanks @acroreiser Change-Id: I114fae3f6ebce32bbf0c07296a54b4fb4a599c08
This commit is contained in:
parent
47aba10dfc
commit
c85f6a008e
2 changed files with 1 additions and 3 deletions
|
@ -92,7 +92,6 @@ static int dup_or_warn(int fence)
|
|||
static bool format_is_supported_by_fimg(int format)
|
||||
{
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
|
@ -103,6 +102,7 @@ static bool format_is_supported_by_fimg(int format)
|
|||
case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP:
|
||||
return true;
|
||||
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
default:
|
||||
ALOGV("%s format=%d false", __FUNCTION__, format);
|
||||
return false;
|
||||
|
|
|
@ -97,8 +97,6 @@ enum s3c_fb_pixel_format format_to_s3c_format(int format)
|
|||
return S3C_FB_PIXEL_FORMAT_RGBX_8888;
|
||||
case HAL_PIXEL_FORMAT_RGB_888:
|
||||
return S3C_FB_PIXEL_FORMAT_RGB_888;
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
return S3C_FB_PIXEL_FORMAT_RGB_565;
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
return S3C_FB_PIXEL_FORMAT_BGRA_8888;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue