summaryrefslogtreecommitdiffstats
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHans de Goede <johannes.goede@oss.qualcomm.com>2025-12-30 18:03:06 +0100
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-01-14 23:33:04 +0100
commit5e3c0bd3f864fec9f895bd42c172f56ac4cdeb63 (patch)
tree59f49bae5cf77c9ce3fb50efc5ca2f14f6603ee1 /tools/lib/python
parent633deb131082f41a3467f8a77abb9c95fb390008 (diff)
downloadlinux-5e3c0bd3f864fec9f895bd42c172f56ac4cdeb63.tar.gz
linux-5e3c0bd3f864fec9f895bd42c172f56ac4cdeb63.zip
media: mt9m114: Adjust IFP selections and source format when source format changes to/from RAW10
Changing the IFP source pad format to RAW10 means disabling the scaler, which means that the crop and compose rectangles must be reset to match the sink format size with no border. And when changing the source pad format back from RAW10 to another format which require demosaicing the crop and compose rectangles must be reset to the sink format size minus a 4 pixels border all around it. Also when changing the source pad format back from RAW10 to another format the colorspace, ycbcr_enc and quantization need to be updated too. Add a new mt9m114_ifp_update_sel_and_src_fmt() helper which resets all these taking the bordersize for the new source format into account and call this helper whenever the source pad format changes to/from RAW10. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions