1 .. -*- coding: utf-8; mode: rst -*-
3 .. _v4l2-meta-fmt-vsp1-hgo:
5 *******************************
6 V4L2_META_FMT_VSP1_HGO ('VSPH')
7 *******************************
9 Renesas R-Car VSP1 1-D Histogram Data
15 This format describes histogram data generated by the Renesas R-Car VSP1 1-D
16 Histogram (HGO) engine.
18 The VSP1 HGO is a histogram computation engine that can operate on RGB, YCrCb
19 or HSV data. It operates on a possibly cropped and subsampled input image and
20 computes the minimum, maximum and sum of all pixels as well as per-channel
23 The HGO can compute histograms independently per channel, on the maximum of the
24 three channels (RGB data only) or on the Y channel only (YCbCr only). It can
25 additionally output the histogram with 64 or 256 bins, resulting in four
26 possible modes of operation.
28 - In *64 bins normal mode*, the HGO operates on the three channels independently
29 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are
31 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B)
32 channels to compute a single 64-bins histogram. Only the RGB image format is
34 - In *256 bins normal mode*, the HGO operates on the Y channel to compute a
35 single 256-bins histogram. Only the YCbCr image format is supported.
36 - In *256 bins maximum mode*, the HGO operates on the maximum of the (R, G, B)
37 channels to compute a single 256-bins histogram. Only the RGB image format is
41 All data is stored in memory in little endian format. Each cell in the tables
44 .. flat-table:: VSP1 HGO Data - 64 Bins, Normal Mode (792 bytes)
71 - :cspan:`4` R/Cr/H sum [31:0]
73 - :cspan:`4` G/Y/S sum [31:0]
75 - :cspan:`4` B/Cb/V sum [31:0]
77 - :cspan:`4` R/Cr/H bin 0 [31:0]
81 - :cspan:`4` R/Cr/H bin 63 [31:0]
83 - :cspan:`4` G/Y/S bin 0 [31:0]
87 - :cspan:`4` G/Y/S bin 63 [31:0]
89 - :cspan:`4` B/Cb/V bin 0 [31:0]
93 - :cspan:`4` B/Cb/V bin 63 [31:0]
95 .. flat-table:: VSP1 HGO Data - 64 Bins, Max Mode (264 bytes)
108 - max(R,G,B) max [7:0]
110 - max(R,G,B) min [7:0]
112 - :cspan:`4` max(R,G,B) sum [31:0]
114 - :cspan:`4` max(R,G,B) bin 0 [31:0]
118 - :cspan:`4` max(R,G,B) bin 63 [31:0]
120 .. flat-table:: VSP1 HGO Data - 256 Bins, Normal Mode (1032 bytes)
137 - :cspan:`4` Y sum [31:0]
139 - :cspan:`4` Y bin 0 [31:0]
143 - :cspan:`4` Y bin 255 [31:0]
145 .. flat-table:: VSP1 HGO Data - 256 Bins, Max Mode (1032 bytes)
158 - max(R,G,B) max [7:0]
160 - max(R,G,B) min [7:0]
162 - :cspan:`4` max(R,G,B) sum [31:0]
164 - :cspan:`4` max(R,G,B) bin 0 [31:0]
168 - :cspan:`4` max(R,G,B) bin 255 [31:0]