1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/userspace-api/media/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _v4l2-meta-fmt-vsp1-hgo:
12 *******************************
13 V4L2_META_FMT_VSP1_HGO ('VSPH')
14 *******************************
16 Renesas R-Car VSP1 1-D Histogram Data
22 This format describes histogram data generated by the Renesas R-Car VSP1 1-D
23 Histogram (HGO) engine.
25 The VSP1 HGO is a histogram computation engine that can operate on RGB, YCrCb
26 or HSV data. It operates on a possibly cropped and subsampled input image and
27 computes the minimum, maximum and sum of all pixels as well as per-channel
30 The HGO can compute histograms independently per channel, on the maximum of the
31 three channels (RGB data only) or on the Y channel only (YCbCr only). It can
32 additionally output the histogram with 64 or 256 bins, resulting in four
33 possible modes of operation.
35 - In *64 bins normal mode*, the HGO operates on the three channels independently
36 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are
38 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B)
39 channels to compute a single 64-bins histogram. Only the RGB image format is
41 - In *256 bins normal mode*, the HGO operates on the Y channel to compute a
42 single 256-bins histogram. Only the YCbCr image format is supported.
43 - In *256 bins maximum mode*, the HGO operates on the maximum of the (R, G, B)
44 channels to compute a single 256-bins histogram. Only the RGB image format is
48 All data is stored in memory in little endian format. Each cell in the tables
51 .. flat-table:: VSP1 HGO Data - 64 Bins, Normal Mode (792 bytes)
78 - :cspan:`4` R/Cr/H sum [31:0]
80 - :cspan:`4` G/Y/S sum [31:0]
82 - :cspan:`4` B/Cb/V sum [31:0]
84 - :cspan:`4` R/Cr/H bin 0 [31:0]
88 - :cspan:`4` R/Cr/H bin 63 [31:0]
90 - :cspan:`4` G/Y/S bin 0 [31:0]
94 - :cspan:`4` G/Y/S bin 63 [31:0]
96 - :cspan:`4` B/Cb/V bin 0 [31:0]
100 - :cspan:`4` B/Cb/V bin 63 [31:0]
102 .. flat-table:: VSP1 HGO Data - 64 Bins, Max Mode (264 bytes)
115 - max(R,G,B) max [7:0]
117 - max(R,G,B) min [7:0]
119 - :cspan:`4` max(R,G,B) sum [31:0]
121 - :cspan:`4` max(R,G,B) bin 0 [31:0]
125 - :cspan:`4` max(R,G,B) bin 63 [31:0]
127 .. flat-table:: VSP1 HGO Data - 256 Bins, Normal Mode (1032 bytes)
144 - :cspan:`4` Y sum [31:0]
146 - :cspan:`4` Y bin 0 [31:0]
150 - :cspan:`4` Y bin 255 [31:0]
152 .. flat-table:: VSP1 HGO Data - 256 Bins, Max Mode (1032 bytes)
165 - max(R,G,B) max [7:0]
167 - max(R,G,B) min [7:0]
169 - :cspan:`4` max(R,G,B) sum [31:0]
171 - :cspan:`4` max(R,G,B) bin 0 [31:0]
175 - :cspan:`4` max(R,G,B) bin 255 [31:0]