1 .. SPDX-License-Identifier: GFDL-1.1-no-invari !! 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. >> 7 .. >> 8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections 2 9 3 .. _packed-hsv: 10 .. _packed-hsv: 4 11 5 ****************** 12 ****************** 6 Packed HSV formats 13 Packed HSV formats 7 ****************** 14 ****************** 8 15 9 Description 16 Description 10 =========== 17 =========== 11 18 12 The *hue* (h) is measured in degrees, the equi 19 The *hue* (h) is measured in degrees, the equivalence between degrees and LSBs 13 depends on the hsv-encoding used, see :ref:`co 20 depends on the hsv-encoding used, see :ref:`colorspaces`. 14 The *saturation* (s) and the *value* (v) are m 21 The *saturation* (s) and the *value* (v) are measured in percentage of the 15 cylinder: 0 being the smallest value and 255 t 22 cylinder: 0 being the smallest value and 255 the maximum. 16 23 17 24 18 The values are packed in 24 or 32 bit formats. 25 The values are packed in 24 or 32 bit formats. 19 26 20 27 21 .. raw:: latex 28 .. raw:: latex 22 29 23 \begingroup 30 \begingroup 24 \tiny 31 \tiny 25 \setlength{\tabcolsep}{2pt} 32 \setlength{\tabcolsep}{2pt} 26 33 27 .. tabularcolumns:: |p{2.6cm}|p{0.8cm}|p{0.22c 34 .. tabularcolumns:: |p{2.6cm}|p{0.8cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}| 28 35 29 .. _packed-hsv-formats: 36 .. _packed-hsv-formats: 30 37 31 .. flat-table:: Packed HSV Image Formats 38 .. flat-table:: Packed HSV Image Formats 32 :header-rows: 2 39 :header-rows: 2 33 :stub-columns: 0 40 :stub-columns: 0 34 41 35 * - Identifier 42 * - Identifier 36 - Code 43 - Code 37 - 44 - 38 - :cspan:`7` Byte 0 in memory 45 - :cspan:`7` Byte 0 in memory 39 - :cspan:`7` Byte 1 46 - :cspan:`7` Byte 1 40 - :cspan:`7` Byte 2 47 - :cspan:`7` Byte 2 41 - :cspan:`7` Byte 3 48 - :cspan:`7` Byte 3 42 * - 49 * - 43 - 50 - 44 - Bit 51 - Bit 45 - 7 52 - 7 46 - 6 53 - 6 47 - 5 54 - 5 48 - 4 55 - 4 49 - 3 56 - 3 50 - 2 57 - 2 51 - 1 58 - 1 52 - 0 59 - 0 53 60 54 - 7 61 - 7 55 - 6 62 - 6 56 - 5 63 - 5 57 - 4 64 - 4 58 - 3 65 - 3 59 - 2 66 - 2 60 - 1 67 - 1 61 - 0 68 - 0 62 69 63 - 7 70 - 7 64 - 6 71 - 6 65 - 5 72 - 5 66 - 4 73 - 4 67 - 3 74 - 3 68 - 2 75 - 2 69 - 1 76 - 1 70 - 0 77 - 0 71 78 72 - 7 79 - 7 73 - 6 80 - 6 74 - 5 81 - 5 75 - 4 82 - 4 76 - 3 83 - 3 77 - 2 84 - 2 78 - 1 85 - 1 79 - 0 86 - 0 80 * .. _V4L2-PIX-FMT-HSV32: 87 * .. _V4L2-PIX-FMT-HSV32: 81 88 82 - ``V4L2_PIX_FMT_HSV32`` 89 - ``V4L2_PIX_FMT_HSV32`` 83 - 'HSV4' 90 - 'HSV4' 84 - 91 - 85 - 92 - 86 - 93 - 87 - 94 - 88 - 95 - 89 - 96 - 90 - 97 - 91 - 98 - 92 - 99 - 93 100 94 - h\ :sub:`7` 101 - h\ :sub:`7` 95 - h\ :sub:`6` 102 - h\ :sub:`6` 96 - h\ :sub:`5` 103 - h\ :sub:`5` 97 - h\ :sub:`4` 104 - h\ :sub:`4` 98 - h\ :sub:`3` 105 - h\ :sub:`3` 99 - h\ :sub:`2` 106 - h\ :sub:`2` 100 - h\ :sub:`1` 107 - h\ :sub:`1` 101 - h\ :sub:`0` 108 - h\ :sub:`0` 102 109 103 - s\ :sub:`7` 110 - s\ :sub:`7` 104 - s\ :sub:`6` 111 - s\ :sub:`6` 105 - s\ :sub:`5` 112 - s\ :sub:`5` 106 - s\ :sub:`4` 113 - s\ :sub:`4` 107 - s\ :sub:`3` 114 - s\ :sub:`3` 108 - s\ :sub:`2` 115 - s\ :sub:`2` 109 - s\ :sub:`1` 116 - s\ :sub:`1` 110 - s\ :sub:`0` 117 - s\ :sub:`0` 111 118 112 - v\ :sub:`7` 119 - v\ :sub:`7` 113 - v\ :sub:`6` 120 - v\ :sub:`6` 114 - v\ :sub:`5` 121 - v\ :sub:`5` 115 - v\ :sub:`4` 122 - v\ :sub:`4` 116 - v\ :sub:`3` 123 - v\ :sub:`3` 117 - v\ :sub:`2` 124 - v\ :sub:`2` 118 - v\ :sub:`1` 125 - v\ :sub:`1` 119 - v\ :sub:`0` 126 - v\ :sub:`0` 120 * .. _V4L2-PIX-FMT-HSV24: 127 * .. _V4L2-PIX-FMT-HSV24: 121 128 122 - ``V4L2_PIX_FMT_HSV24`` 129 - ``V4L2_PIX_FMT_HSV24`` 123 - 'HSV3' 130 - 'HSV3' 124 - 131 - 125 - h\ :sub:`7` 132 - h\ :sub:`7` 126 - h\ :sub:`6` 133 - h\ :sub:`6` 127 - h\ :sub:`5` 134 - h\ :sub:`5` 128 - h\ :sub:`4` 135 - h\ :sub:`4` 129 - h\ :sub:`3` 136 - h\ :sub:`3` 130 - h\ :sub:`2` 137 - h\ :sub:`2` 131 - h\ :sub:`1` 138 - h\ :sub:`1` 132 - h\ :sub:`0` 139 - h\ :sub:`0` 133 140 134 - s\ :sub:`7` 141 - s\ :sub:`7` 135 - s\ :sub:`6` 142 - s\ :sub:`6` 136 - s\ :sub:`5` 143 - s\ :sub:`5` 137 - s\ :sub:`4` 144 - s\ :sub:`4` 138 - s\ :sub:`3` 145 - s\ :sub:`3` 139 - s\ :sub:`2` 146 - s\ :sub:`2` 140 - s\ :sub:`1` 147 - s\ :sub:`1` 141 - s\ :sub:`0` 148 - s\ :sub:`0` 142 149 143 - v\ :sub:`7` 150 - v\ :sub:`7` 144 - v\ :sub:`6` 151 - v\ :sub:`6` 145 - v\ :sub:`5` 152 - v\ :sub:`5` 146 - v\ :sub:`4` 153 - v\ :sub:`4` 147 - v\ :sub:`3` 154 - v\ :sub:`3` 148 - v\ :sub:`2` 155 - v\ :sub:`2` 149 - v\ :sub:`1` 156 - v\ :sub:`1` 150 - v\ :sub:`0` 157 - v\ :sub:`0` 151 - 158 - 152 159 153 .. raw:: latex 160 .. raw:: latex 154 161 155 \endgroup 162 \endgroup 156 163 157 Bit 7 is the most significant bit. 164 Bit 7 is the most significant bit.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.