|
@@ -628,11 +628,12 @@ static int s5p_jpeg_to_user_subsampling(struct s5p_jpeg_ctx *ctx)
|
|
|
return V4L2_JPEG_CHROMA_SUBSAMPLING_411;
|
|
|
return exynos3250_decoded_subsampling[ctx->subsampling];
|
|
|
case SJPEG_EXYNOS4:
|
|
|
- case SJPEG_EXYNOS5433:
|
|
|
WARN_ON(ctx->subsampling > 3);
|
|
|
if (ctx->subsampling > 2)
|
|
|
return V4L2_JPEG_CHROMA_SUBSAMPLING_420;
|
|
|
return exynos4x12_decoded_subsampling[ctx->subsampling];
|
|
|
+ case SJPEG_EXYNOS5433:
|
|
|
+ return ctx->subsampling; /* parsed from header */
|
|
|
default:
|
|
|
WARN_ON(ctx->subsampling > 3);
|
|
|
return V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY;
|