lkml.org 
[lkml]   [2021]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] media: intel-ipu3: Specify CCM values precision
Date
When trying to convert a CCM matrix for IPU3, extreme values for the
Color Correction Matrix.
Specify the precision to ease userspace integration.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
---
drivers/staging/media/ipu3/include/intel-ipu3.h | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/media/ipu3/include/intel-ipu3.h b/drivers/staging/media/ipu3/include/intel-ipu3.h
index edd8edda0647..68f7d11ce52f 100644
--- a/drivers/staging/media/ipu3/include/intel-ipu3.h
+++ b/drivers/staging/media/ipu3/include/intel-ipu3.h
@@ -923,19 +923,21 @@ struct ipu3_uapi_dm_config {
/**
* struct ipu3_uapi_ccm_mat_config - Color correction matrix
*
- * @coeff_m11: CCM 3x3 coefficient, range [-65536, 65535]
+ * @coeff_m11: CCM 3x3 coefficient, range [-32768, 32767]
* @coeff_m12: CCM 3x3 coefficient, range [-8192, 8191]
- * @coeff_m13: CCM 3x3 coefficient, range [-32768, 32767]
+ * @coeff_m13: CCM 3x3 coefficient, range [-8192, 8191]
* @coeff_o_r: Bias 3x1 coefficient, range [-8191, 8181]
- * @coeff_m21: CCM 3x3 coefficient, range [-32767, 32767]
- * @coeff_m22: CCM 3x3 coefficient, range [-8192, 8191]
- * @coeff_m23: CCM 3x3 coefficient, range [-32768, 32767]
+ * @coeff_m21: CCM 3x3 coefficient, range [-8192, 8191]
+ * @coeff_m22: CCM 3x3 coefficient, range [-32768, 32767]
+ * @coeff_m23: CCM 3x3 coefficient, range [-8192, 8191]
* @coeff_o_g: Bias 3x1 coefficient, range [-8191, 8181]
- * @coeff_m31: CCM 3x3 coefficient, range [-32768, 32767]
+ * @coeff_m31: CCM 3x3 coefficient, range [-8192, 8191]
* @coeff_m32: CCM 3x3 coefficient, range [-8192, 8191]
* @coeff_m33: CCM 3x3 coefficient, range [-32768, 32767]
* @coeff_o_b: Bias 3x1 coefficient, range [-8191, 8181]
*
+ * Precision s3.13, range [-8, 8).
+ *
* Transform sensor specific color space to standard sRGB by applying 3x3 matrix
* and adding a bias vector O. The transformation is basically a rotation and
* translation in the 3-dimensional color spaces. Here are the defaults:
--
2.27.0
\
 
 \ /
  Last update: 2021-02-05 22:28    [W:0.027 / U:1.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site