首页 / 操作系统 / Linux / Android4.0.4 framebuffer 支持32位色彩深度
Android4.0.4 framebuffer 支持32位色彩深度:1、在/hardware/libhardware/modules/gralloc/framebuffer.cpp中的
fb_device_open(hw_module_t const* module, const char* name,hw_device_t** device)中改动// int format = (m->info.bits_per_pixel == 32)
// ? HAL_PIXEL_FORMAT_RGBX_8888
// : HAL_PIXEL_FORMAT_RGB_565; int format = (m->info.bits_per_pixel == 32)
? HAL_PIXEL_FORMAT_BGRA_8888
: HAL_PIXEL_FORMAT_RGB_565;当framebuffer是32位色深时选择HAL_PIXEL_FORMAT_BGRA_8888格式;更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11