}
switch (par->format)
{
+ case XRGB888:
case ARGB888:
par->y_offset = (yoffset*xvir + xoffset)*4;
break;
#if 1
switch (data_format)
{
- case HAL_PIXEL_FORMAT_RGBA_8888 : // rgb
case HAL_PIXEL_FORMAT_RGBX_8888:
+ #if defined(CONFIG_ARCH_RK3188)
+ par->format = XRGB888;
+ fix->line_length = 4 * xvir;
+ par->y_offset = (yoffset*xvir + xoffset)*4;
+ break;
+ #endif
+ case HAL_PIXEL_FORMAT_RGBA_8888 : // rgb
par->format = ARGB888;
fix->line_length = 4 * xvir;
par->y_offset = (yoffset*xvir + xoffset)*4;