lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri,  5 Feb 2021 17:38:19 +0100
From:   Jean-Michel Hautbois <jeanmichel.hautbois@...asonboard.com>
To:     linux-media@...r.kernel.org
Cc:     devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
        rahul.blr97@...il.com, gregkh@...uxfoundation.org,
        mchehab@...nel.org, tian.shu.qiu@...el.com, bingbu.cao@...el.com,
        sakari.ailus@...ux.intel.com, jeanmichel.hautbois@...asonboard.com
Subject: [PATCH] media: intel-ipu3: Specify CCM values precision

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@...asonboard.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ