blob: a937410908ced617cdf2f56a55e011909d6085e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From 59fe808aa61465c79ee022d561515fe3b3b1405d Mon Sep 17 00:00:00 2001
From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Date: Thu, 2 Jul 2026 17:56:56 +0200
Subject: [PATCH] ipa: libipa: lsc_base: Add sampleForCrop documentation
Now that we have two in-tree implementations of LscImplementation
detail how the two perform lsc gain re-sampling.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
src/ipa/libipa/lsc_base.cpp | 15 +++++++++++++++
1 file changed, 15 insertions(+)
--- a/src/ipa/libipa/lsc_base.cpp
+++ b/src/ipa/libipa/lsc_base.cpp
@@ -103,6 +103,21 @@ void Interpolator<lsc::Components>::
* each segment of size 0.0625 and the list of nodes position will be
* [0, 0.0625, 0.125, 0.1875, ... , 1]. It is expected that the first position
* is 0 and the last position is 1.
+ *
+ * LSC tables are expressed in two formats:
+ * - A list of gain values (LscTable)
+ * - A radial polynomial (LscPolynomial)
+ *
+ * Table-based LSC tables are generated using an image at a fixed resolution and
+ * can't at the moment be re-sampled when a different resolution is used for a
+ * streaming session. Re-sampling a grid LSC table will return the same table
+ * as loaded from the tuning file.
+ *
+ * \todo: Implement grid based re-sampling
+ *
+ * Polynomial configurations are more flexible and can be re-sampled for a given
+ * sensor frame resolution using a list of horizontal and vertical nodes that
+ * define the LSC grid on which the polynomial is re-sampled on.
*/
} /* namespace ipa */
|