v4l2_pixel_format = V4L2_PIX_FMT_YVU420M;
break;
+ case HAL_PIXEL_FORMAT_YV12:
+ v4l2_pixel_format = V4L2_PIX_FMT_YVU420;
+ break;
+
case HAL_PIXEL_FORMAT_YCbCr_420_P:
v4l2_pixel_format = V4L2_PIX_FMT_YUV420M;
break;
break;
case V4L2_PIX_FMT_YVU420:
+ hal_pixel_format = HAL_PIXEL_FORMAT_YV12;
+ break;
+
case V4L2_PIX_FMT_YVU420M:
hal_pixel_format = HAL_PIXEL_FORMAT_EXYNOS_YV12;
break;
break;
case HAL_PIXEL_FORMAT_YCbCr_420_I:
case HAL_PIXEL_FORMAT_CbYCrY_420_I:
- return 1;
+ case HAL_PIXEL_FORMAT_YV12:
+ return 1;
default:
return 1;
}
frame_size = size + 2 * ALIGN(width >> 1, 8) * ALIGN(height >> 1, 8);
break;
+ case HAL_PIXEL_FORMAT_YV12:
+ size = ALIGN(width, 16) * height;
+ frame_size = size + ALIGN(width / 2, 16) * height;
+ break;
+
case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP:
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
case HAL_PIXEL_FORMAT_YCbCr_420_SP:
*chroma_size = ALIGN_TO_8KB(ALIGN_TO_128B(width) *
ALIGN_TO_32B(height >> 1));
break;
+ case HAL_PIXEL_FORMAT_YV12:
+ size = ALIGN(width, 16) * height;
+ *luma_size = size + ALIGN(width / 2, 16) * height;
+ break;
+
default:
*luma_size = FRAME_SIZE(hal_pixel_format, width, height);
}