diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-06 17:44:39 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-10 10:13:14 +0100 |
commit | aa341469e626a4cdaf8b5cb974cc14652d30a2a5 (patch) | |
tree | 66206bd85dc37d5b2aa470191ec967cdf785d820 /test/v4l2_subdevice | |
parent | 83f0ea3bee555ef0fbae8f305e177712b74337b4 (diff) |
utils: rkisp1: Add script to extract LSC tables from Android
Android ship a per-sensor configuration file in .xml format.
The .xml file contains a main <matfile> node and a <sensor> sub-node
which contains an <LSC> entry. The LSC tables there contained can be
re-used for libcamera, by parsing them opportunely.
Add a script to utils/rkisp1/ to extract the LSC tables from Android
configuration file for the RkISP1 platform, modeled after the
requirements of the Rockchip closed source IQ tuning module.
Compared to the Rockchip IQ LSC module the one implemented in libcamera
is slightly simpler, and the parsing of the LSC table takes that into
account by:
- Only outputting tables for the larger found sensor resolution
- Only outputting tables for "vignetting" value == 70 (ignoring the ones
for vignetting values of 100)
The script outputs to stdout a "LensShadingCorrection" section that
can be directly pasted in a libcamera sensor configuration file.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'test/v4l2_subdevice')
0 files changed, 0 insertions, 0 deletions