msm: vidc: Enable color space conversion
Control for color space conversion is enabled with new HFI macro.
New control created for enabling custom matrix. Custom matrix
values moved to platform file.
CRs-Fixed: 2091104
Change-Id: I426b50f9d63995113f4b8836ee299fdff2a28a6b
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
diff --git a/drivers/media/platform/msm/vidc/msm_vidc_internal.h b/drivers/media/platform/msm/vidc/msm_vidc_internal.h
index 1ad28ba..c5fd060 100644
--- a/drivers/media/platform/msm/vidc/msm_vidc_internal.h
+++ b/drivers/media/platform/msm/vidc/msm_vidc_internal.h
@@ -169,6 +169,12 @@
enum buffer_owner buffer_ownership;
};
+struct msm_vidc_csc_coeff {
+ u32 *vpe_csc_custom_matrix_coeff;
+ u32 *vpe_csc_custom_bias_coeff;
+ u32 *vpe_csc_custom_limit_coeff;
+};
+
struct msm_vidc_common_data {
char key[128];
int value;
@@ -187,6 +193,7 @@
unsigned int common_data_length;
struct msm_vidc_codec_data *codec_data;
unsigned int codec_data_length;
+ struct msm_vidc_csc_coeff csc_data;
};
struct msm_vidc_format {