int exynos_sc_set_csc_property(
void *handle,
unsigned int csc_range,
- unsigned int v4l2_colorspace,
+ unsigned int v4l2_colorspace __unused,
unsigned int filter)
{
return -1;
sc->SetCSCWide(csc_range);
- sc->SetCSCEq(v4l2_colorspace);
sc->SetFilter(filter);
return 0;
int exynos_sc_csc_exclusive(void *handle,
unsigned int range_full,
- unsigned int v4l2_colorspace)
+ unsigned int v4l2_colorspace __unused)
{
CScalerV4L2 *sc = GetScaler(handle);
if (!sc)
return -1;
sc->SetCSCWide(range_full);
- sc->SetCSCEq(v4l2_colorspace);
return 0;
}
unsigned int srcblendfmt) {
if (src_color_space == V4L2_PIX_FMT_NV12M) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV12M_RGB32;
- else if ((srcblendfmt == V4L2_PIX_FMT_BGR32))
+ else if (srcblendfmt == V4L2_PIX_FMT_BGR32)
src_color_space = V4L2_PIX_FMT_NV12M_BGR32;
- else if ((srcblendfmt == V4L2_PIX_FMT_RGB565))
+ else if (srcblendfmt == V4L2_PIX_FMT_RGB565)
src_color_space = V4L2_PIX_FMT_NV12M_RGB565;
- else if ((srcblendfmt == V4L2_PIX_FMT_RGB444))
+ else if (srcblendfmt == V4L2_PIX_FMT_RGB444)
src_color_space = V4L2_PIX_FMT_NV12M_RGB444;
- else if ((srcblendfmt == V4L2_PIX_FMT_RGB555X))
+ else if (srcblendfmt == V4L2_PIX_FMT_RGB555X)
src_color_space = V4L2_PIX_FMT_NV12M_RGB555X;
} else if (src_color_space == V4L2_PIX_FMT_NV12) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV12_RGB32;
#ifdef V4L2_PIX_FMT_NV12N
} else if (src_color_space == V4L2_PIX_FMT_NV12N) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV12N_RGB32;
#endif
} else if (src_color_space == V4L2_PIX_FMT_NV12MT_16X16) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV12MT_16X16_RGB32;
} else if (src_color_space == V4L2_PIX_FMT_NV21M) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV21M_RGB32;
- else if ((srcblendfmt == V4L2_PIX_FMT_BGR32))
+ else if (srcblendfmt == V4L2_PIX_FMT_BGR32)
src_color_space = V4L2_PIX_FMT_NV21M_BGR32;
} else if (src_color_space == V4L2_PIX_FMT_NV21) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_NV21_RGB32;
} else if (src_color_space == V4L2_PIX_FMT_YVU420) {
- if ((srcblendfmt == V4L2_PIX_FMT_RGB32))
+ if (srcblendfmt == V4L2_PIX_FMT_RGB32)
src_color_space = V4L2_PIX_FMT_YVU420_RGB32;
} else {
src_color_space = -1;