diff options
author | Laurent Pinchart <[email protected]> | 2024-08-08 22:41:01 +0200 |
---|---|---|
committer | Laurent Pinchart <[email protected]> | 2024-08-14 16:42:56 +0300 |
commit | d2db5694fde8212a8bd4269f1b60ed9a2a3b20cc (patch) | |
tree | 09d091244b63203953c5e22a537f583833cc93eb /tools/perf/scripts/python/parallel-perf.py | |
parent | f848c0312e392d90556cbffa3b0632780c147f46 (diff) |
media: rkisp1: Add helper function to swap colour channels
The BLS parameters passed by userspace are specified for named colour
channels (R, Gr, Gb and B), while the hardware registers reference
positions in the 2x2 CFA pattern (A, B, C and D).
The BLS values are swapped based on the CFA pattern when writing to or
reading from registers, using hand-roled switch statements. The logic is
duplicated already, and new code will require similar processing. Move
the swap logic to a shared function, using static data to control the
channels order.
Reviewed-by: Jacopo Mondi <[email protected]>
Reviewed-by: Paul Elder <[email protected]>
Signed-off-by: Jacopo Mondi <[email protected]>
Tested-by: Kieran Bingham <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions