static uint32_t tbm_bufmgr_emulator_color_format_list[] =
{
+ TBM_FORMAT_RGB888,
TBM_FORMAT_ARGB8888,
TBM_FORMAT_XRGB8888,
TBM_FORMAT_NV21,
*bo_idx = 0;
switch(format) {
+ case TBM_FORMAT_RGB888:
+ *size = width * height * 3;
+ *offset = 0;
+ *pitch = width * 3;
+ *bo_idx = 0;
+ return 1;
case TBM_FORMAT_XRGB8888:
case TBM_FORMAT_ARGB8888:
*size = width * height * 4;
int bpp;
switch(format) {
+ case TBM_FORMAT_RGB888:
+ bpp = 24;
+ break;
case TBM_FORMAT_XRGB8888:
case TBM_FORMAT_ARGB8888:
bpp = 32;
int num = 0;
switch(format) {
+ case TBM_FORMAT_RGB888:
case TBM_FORMAT_XRGB8888:
case TBM_FORMAT_ARGB8888:
/* NV21 : Y/CrCb 4:2:0 */