*format_actual = HAL_PIXEL_FORMAT_EXYNOS_YV12;
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 6;
newParameters.width = width;
*format_actual = HAL_PIXEL_FORMAT_YCbCr_420_SP; // NV12M
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 6;
subParameters->type = SUBSTREAM_TYPE_RECORD;
*format_actual = HAL_PIXEL_FORMAT_YCbCr_422_I; // YUYV
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 6;
newParameters.width = width;
*format_actual = HAL_PIXEL_FORMAT_YCbCr_422_I; // YUYV
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 6;
newParameters.width = width;
*format_actual = HAL_PIXEL_FORMAT_BLOB;
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 4;
subParameters->type = SUBSTREAM_TYPE_JPEG;
*format_actual = format;
*usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
+ if (m_wideAspect)
+ *usage |= GRALLOC_USAGE_PRIVATE_CHROMA;
*max_buffers = 6;
subParameters->type = SUBSTREAM_TYPE_PRVCB;