VPI - Vision Programming Interface

3.0 Release

ColorSpec.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020-2021 NVIDIA Corporation. All rights reserved.
3  *
4  * NOTICE TO LICENSEE:
5  *
6  * This source code and/or documentation ("Licensed Deliverables") are
7  * subject to NVIDIA intellectual property rights under U.S. and
8  * international Copyright laws.
9  *
10  * These Licensed Deliverables contained herein is PROPRIETARY and
11  * CONFIDENTIAL to NVIDIA and is being provided under the terms and
12  * conditions of a form of NVIDIA software license agreement by and
13  * between NVIDIA and Licensee ("License Agreement") or electronically
14  * accepted by Licensee. Notwithstanding any terms or conditions to
15  * the contrary in the License Agreement, reproduction or disclosure
16  * of the Licensed Deliverables to any third party without the express
17  * written consent of NVIDIA is prohibited.
18  *
19  * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
20  * LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
21  * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
22  * PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
23  * NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
24  * DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
25  * NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
26  * NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
27  * LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
28  * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
29  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
30  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
31  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
32  * OF THESE LICENSED DELIVERABLES.
33  *
34  * U.S. Government End Users. These Licensed Deliverables are a
35  * "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
36  * 1995), consisting of "commercial computer software" and "commercial
37  * computer software documentation" as such terms are used in 48
38  * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
39  * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
40  * 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
41  * U.S. Government End Users acquire the Licensed Deliverables with
42  * only those rights set forth herein.
43  *
44  * Any use of the Licensed Deliverables in individual and commercial
45  * software must include, in the user documentation and internal
46  * comments to the code, the above Disclaimer and U.S. Government End
47  * Users Notice.
48  */
49 
56 #ifndef NV_VPI_COLORSPEC_H
57 #define NV_VPI_COLORSPEC_H
58 
59 #include "Export.h"
60 #include "detail/FormatUtils.h"
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
76 typedef enum
77 {
84 
86 typedef enum
87 {
96 
98 typedef enum
99 {
102  VPI_WHITE_POINT_UNDEFINED = INT32_MAX
104 
106 typedef enum
107 {
115 
117 typedef enum
118 {
127 
129 typedef enum
130 {
134 
136 typedef enum
137 {
141  VPI_CHROMA_LOC_BOTH = 3,
144 
160 /* clang-format off */
161 typedef enum
162 {
165 
167  VPI_COLOR_SPEC_DEFAULT = VPI_DETAIL_MAKE_CSPC(SPACE_UNDEFINED, ENC_UNDEFINED, XFER_LINEAR, RANGE_FULL, LOC_BOTH, LOC_BOTH),
168 
172  VPI_COLOR_SPEC_UNDEFINED = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_UNDEFINED, XFER_LINEAR, RANGE_FULL, LOC_BOTH, LOC_BOTH),
173 
175  VPI_COLOR_SPEC_BT601 = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT601, XFER_BT709, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
176 
178  VPI_COLOR_SPEC_BT601_ER = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT601, XFER_BT709, RANGE_FULL, LOC_EVEN, LOC_EVEN),
179 
181  VPI_COLOR_SPEC_BT709 = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT709, XFER_BT709, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
182 
184  VPI_COLOR_SPEC_BT709_ER = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT709, XFER_BT709, RANGE_FULL, LOC_EVEN, LOC_EVEN),
185 
187  VPI_COLOR_SPEC_BT709_LINEAR = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT709, XFER_LINEAR, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
188 
190  VPI_COLOR_SPEC_BT2020 = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020, XFER_BT2020, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
191 
193  VPI_COLOR_SPEC_BT2020_ER = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020, XFER_BT2020, RANGE_FULL, LOC_EVEN, LOC_EVEN),
194 
196  VPI_COLOR_SPEC_BT2020_LINEAR = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020, XFER_LINEAR, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
197 
199  VPI_COLOR_SPEC_BT2020_PQ = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020, XFER_PQ, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
200 
202  VPI_COLOR_SPEC_BT2020_PQ_ER = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020, XFER_PQ, RANGE_FULL, LOC_EVEN, LOC_EVEN),
203 
205  VPI_COLOR_SPEC_BT2020c = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020c, XFER_BT2020, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
206 
208  VPI_COLOR_SPEC_BT2020c_ER = VPI_DETAIL_MAKE_CSPC(SPACE_BT2020, ENC_BT2020c, XFER_BT2020, RANGE_FULL, LOC_EVEN, LOC_EVEN),
209 
211  VPI_COLOR_SPEC_MPEG2_BT601 = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT601, XFER_BT709, RANGE_FULL, LOC_EVEN, LOC_CENTER),
212 
214  VPI_COLOR_SPEC_MPEG2_BT709 = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT709, XFER_BT709, RANGE_FULL, LOC_EVEN, LOC_CENTER),
215 
217  VPI_COLOR_SPEC_MPEG2_SMPTE240M = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_SMPTE240M, XFER_SMPTE240M, RANGE_FULL, LOC_EVEN, LOC_CENTER),
218 
220  VPI_COLOR_SPEC_sRGB = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_UNDEFINED, XFER_sRGB, RANGE_FULL, LOC_BOTH, LOC_BOTH),
221 
223  VPI_COLOR_SPEC_sYCC = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_BT601, XFER_sYCC, RANGE_FULL, LOC_CENTER, LOC_CENTER),
224 
226  VPI_COLOR_SPEC_SMPTE240M = VPI_DETAIL_MAKE_CSPC(SPACE_BT709, ENC_SMPTE240M, XFER_SMPTE240M, RANGE_LIMITED, LOC_EVEN, LOC_EVEN),
227 
229  VPI_COLOR_SPEC_DISPLAYP3 = VPI_DETAIL_MAKE_CSPC(SPACE_DCIP3, ENC_UNDEFINED, XFER_sRGB, RANGE_FULL, LOC_BOTH, LOC_BOTH),
230 
232  VPI_COLOR_SPEC_DISPLAYP3_LINEAR = VPI_DETAIL_MAKE_CSPC(SPACE_DCIP3, ENC_UNDEFINED, XFER_LINEAR, RANGE_FULL, LOC_BOTH, LOC_BOTH),
233 
235  VPI_COLOR_SPEC_SENSOR = VPI_DETAIL_MAKE_CSPC(SPACE_SENSOR, ENC_UNDEFINED, XFER_LINEAR, RANGE_FULL, LOC_BOTH, LOC_BOTH),
236 } VPIColorSpec;
237 /* clang-format on */
238 
255 #ifdef VPI_DOXYGEN
256 # define VPI_MAKE_COLOR_SPEC_ABBREV(cspace, encoding, xferFunc, range, locHoriz, locVert)
257 #else
258 # define VPI_MAKE_COLOR_SPEC_ABBREV (VPIColorSpec) VPI_DETAIL_MAKE_CSPC
259 #endif
260 
278 #ifdef VPI_DOXYGEN
279 # define VPI_MAKE_COLOR_SPEC(cspace, encoding, xferFunc, range, locHoriz, locVert)
280 #else
281 # define VPI_MAKE_COLOR_SPEC (VPIColorSpec) VPI_DETAIL_MAKE_COLOR_SPEC
282 #endif
283 
296  VPIColorTransferFunction xferFunc, VPIColorRange range,
297  VPIChromaLocation locHoriz, VPIChromaLocation locVert);
298 
302 typedef enum
303 {
329 
354 
379 
386 
388  VPI_RAW_FORCE8 = UINT8_MAX
389  /* \endcond */
390 } VPIRawPattern;
391 
399 typedef enum
400 {
405 
408 
411 
414 
417 
420 
424 
434 VPI_PUBLIC VPIChromaSubsampling vpiMakeChromaSubsampling(int samplesHoriz, int samplesVert);
435 
446 
456 
466 
476 
490  VPIChromaLocation locVert);
491 
501 
514 
524 
536 
546 
558 
568 
580 
589 VPI_PUBLIC const char *vpiColorSpecGetName(VPIColorSpec cspec);
590 
593 #ifdef __cplusplus
594 }
595 #endif
596 
597 #endif /* NV_VPI_COLORSPEC_H */
VPIColorSpec
Color spec definitions.
Definition: ColorSpec.h:162
VPIColorSpace vpiColorSpecGetSpace(VPIColorSpec cspec)
Get the color_space of a given color spec.
VPIColorSpec vpiColorSpecSetSpace(VPIColorSpec cspec, VPIColorSpace cspace)
Set the color_space of a given color spec.
VPIRawPattern
Defines Bayer patterns used by RAW color model.
Definition: ColorSpec.h:303
VPIChromaLocation vpiColorSpecGetChromaLocHoriz(VPIColorSpec cspec)
Get the chroma horizontal sampling location of a given color spec.
VPIColorRange vpiColorSpecGetRange(VPIColorSpec cspec)
Get the color quantization range of a given color spec.
VPIColorRange
Defines the color range of a particular VPIColorSpec.
Definition: ColorSpec.h:130
VPIColorModel
Defines color models.
Definition: ColorSpec.h:77
VPIColorSpec vpiColorSpecSetRange(VPIColorSpec cspec, VPIColorRange range)
Set the color quantization range of a given color spec.
VPIChromaSubsampling vpiMakeChromaSubsampling(int samplesHoriz, int samplesVert)
Creates a VPIChromaSubsampling given the horizontal and vertical sampling.
VPIColorTransferFunction
Defines the color transfer function in a particular VPIColorSpec.
Definition: ColorSpec.h:118
VPIYCbCrEncoding
Defines the YCbCr encoding used in a particular VPIColorSpec.
Definition: ColorSpec.h:107
VPIColorTransferFunction vpiColorSpecGetTransferFunction(VPIColorSpec cspec)
Get the color transfer function of a given color spec.
VPIColorSpec vpiMakeColorSpec(VPIColorSpace cspace, VPIYCbCrEncoding encoding, VPIColorTransferFunction xferFunc, VPIColorRange range, VPIChromaLocation locHoriz, VPIChromaLocation locVert)
Creates a user-defined VPIColorSpec.
VPIChromaSubsampling
Defines how chroma-subsampling is done.
Definition: ColorSpec.h:400
int vpiChromaSubsamplingGetSamplesVert(VPIChromaSubsampling css)
Get the number of chroma samples for each group of 4 vertical luma samples.
VPIYCbCrEncoding vpiColorSpecGetYCbCrEncoding(VPIColorSpec cspec)
Get the R'G'B' <-> Y'CbCr encoding scheme of a given color spec.
VPIColorSpace
Defines the color primaries and the white point of a VPIColorSpec.
Definition: ColorSpec.h:87
VPIColorSpec vpiColorSpecSetChromaLoc(VPIColorSpec cspec, VPIChromaLocation locHoriz, VPIChromaLocation locVert)
Set the chroma sample location of a given color spec.
VPIWhitePoint
Defines the white point associated with a VPIColorSpace.
Definition: ColorSpec.h:99
int vpiChromaSubsamplingGetSamplesHoriz(VPIChromaSubsampling css)
Get the number of chroma samples for each group of 4 horizontal luma samples.
VPIChromaLocation
Chroma sampling location.
Definition: ColorSpec.h:137
VPIColorSpec vpiColorSpecSetTransferFunction(VPIColorSpec cspec, VPIColorTransferFunction xferFunc)
Set the color transfer function of a given color spec.
VPIChromaLocation vpiColorSpecGetChromaLocVert(VPIColorSpec cspec)
Get the chroma vertical sample location of a given color spec.
VPIColorSpec vpiColorSpecSetYCbCrEncoding(VPIColorSpec cspec, VPIYCbCrEncoding encoding)
Set the R'G'B' <-> Y'CbCr encoding scheme of a given color spec.
const char * vpiColorSpecGetName(VPIColorSpec cspec)
Returns a string representation of the color spec.
@ VPI_COLOR_SPEC_BT709
Color spec defining ITU-R BT.709 standard, limited range.
Definition: ColorSpec.h:181
@ VPI_COLOR_SPEC_BT2020_ER
Color spec defining ITU-R BT.2020 standard, full range.
Definition: ColorSpec.h:193
@ VPI_COLOR_SPEC_MPEG2_BT601
Color spec defining MPEG2 standard using ITU-R BT.601 encoding.
Definition: ColorSpec.h:211
@ VPI_COLOR_SPEC_INVALID
Invalid color spec.
Definition: ColorSpec.h:164
@ VPI_COLOR_SPEC_UNDEFINED
No color spec defined.
Definition: ColorSpec.h:172
@ VPI_COLOR_SPEC_DEFAULT
Default color spec.
Definition: ColorSpec.h:167
@ VPI_COLOR_SPEC_BT2020c
Color spec defining ITU-R BT.2020 standard for constant luminance, limited range.
Definition: ColorSpec.h:205
@ VPI_COLOR_SPEC_SENSOR
Color spec used for images coming from an image sensor, right after demosaicing.
Definition: ColorSpec.h:235
@ VPI_COLOR_SPEC_sRGB
Color spec defining sRGB standard.
Definition: ColorSpec.h:220
@ VPI_COLOR_SPEC_DISPLAYP3
Color spec defining Display P3 standard, with sRGB color transfer function.
Definition: ColorSpec.h:229
@ VPI_COLOR_SPEC_BT709_LINEAR
Color spec defining ITU-R BT.709 standard, limited range and linear transfer function.
Definition: ColorSpec.h:187
@ VPI_COLOR_SPEC_BT2020c_ER
Color spec defining ITU-R BT.2020 standard for constant luminance, full range.
Definition: ColorSpec.h:208
@ VPI_COLOR_SPEC_DISPLAYP3_LINEAR
Color spec defining Display P3 standard, with linear color transfer function.
Definition: ColorSpec.h:232
@ VPI_COLOR_SPEC_SMPTE240M
Color spec defining SMPTE 240M standard, limited range.
Definition: ColorSpec.h:226
@ VPI_COLOR_SPEC_BT2020_PQ
Color spec defining ITU-R BT.2020 standard, limited range and perceptual quantizer transfer function.
Definition: ColorSpec.h:199
@ VPI_COLOR_SPEC_MPEG2_BT709
Color spec defining MPEG2 standard using ITU-R BT.709 encoding.
Definition: ColorSpec.h:214
@ VPI_COLOR_SPEC_BT601_ER
Color spec defining ITU-R BT.601 standard, full range, with BT.709 chrominancies and transfer functio...
Definition: ColorSpec.h:178
@ VPI_COLOR_SPEC_BT2020_PQ_ER
Color spec defining ITU-R BT.2020 standard, full range and perceptual quantizer transfer function.
Definition: ColorSpec.h:202
@ VPI_COLOR_SPEC_BT2020
Color spec defining ITU-R BT.2020 standard, limited range.
Definition: ColorSpec.h:190
@ VPI_COLOR_SPEC_BT2020_LINEAR
Color spec defining ITU-R BT.2020 standard, limited range and linear transfer function.
Definition: ColorSpec.h:196
@ VPI_COLOR_SPEC_BT709_ER
Color spec defining ITU-R BT.709 standard, full range.
Definition: ColorSpec.h:184
@ VPI_COLOR_SPEC_sYCC
Color spec defining sYCC standard.
Definition: ColorSpec.h:223
@ VPI_COLOR_SPEC_MPEG2_SMPTE240M
Color spec defining MPEG2 standard using SMPTE 240M encoding.
Definition: ColorSpec.h:217
@ VPI_COLOR_SPEC_BT601
Color spec defining ITU-R BT.601 standard, limited range, with BT.709 chrominancies and transfer func...
Definition: ColorSpec.h:175
@ VPI_RAW_BAYER_CBRC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:353
@ VPI_RAW_BAYER_CRCC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:366
@ VPI_RAW_BAYER_CCCR
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:378
@ VPI_RAW_BAYER_GBRG
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:328
@ VPI_RAW_BAYER_RCCB
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:335
@ VPI_RAW_BAYER_BCCR
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:341
@ VPI_RAW_INVALID
Invalid raw pattern.
Definition: ColorSpec.h:304
@ VPI_RAW_BAYER_CCRC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:372
@ VPI_RAW_BAYER_RGGB
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:310
@ VPI_RAW_BAYER_CCCC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:385
@ VPI_RAW_BAYER_GRBG
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:322
@ VPI_RAW_BAYER_RCCC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:360
@ VPI_RAW_BAYER_CRBC
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:347
@ VPI_RAW_BAYER_BGGR
Bayer format with X channel mapped to samples as follows:
Definition: ColorSpec.h:316
@ VPI_COLOR_RANGE_FULL
Values cover the full underlying type range.
Definition: ColorSpec.h:131
@ VPI_COLOR_RANGE_LIMITED
Values cover a limited range of the underlying type.
Definition: ColorSpec.h:132
@ VPI_COLOR_MODEL_RGB
red, green, blue components.
Definition: ColorSpec.h:80
@ VPI_COLOR_MODEL_UNDEFINED
Color model is undefined.
Definition: ColorSpec.h:78
@ VPI_COLOR_MODEL_XYZ
CIE XYZ tristimulus color spec.
Definition: ColorSpec.h:82
@ VPI_COLOR_MODEL_RAW
RAW color model, used for Bayer image formats.
Definition: ColorSpec.h:81
@ VPI_COLOR_MODEL_YCbCr
Luma + chroma (blue-luma, red-luma).
Definition: ColorSpec.h:79
@ VPI_COLOR_XFER_LINEAR
Linear color transfer function.
Definition: ColorSpec.h:119
@ VPI_COLOR_XFER_BT709
Color transfer function specified by ITU-R BT.709 standard.
Definition: ColorSpec.h:123
@ VPI_COLOR_XFER_sRGB
Color transfer function specified by sRGB standard.
Definition: ColorSpec.h:120
@ VPI_COLOR_XFER_PQ
Perceptual quantizer color transfer function.
Definition: ColorSpec.h:122
@ VPI_COLOR_XFER_sYCC
Color transfer function specified by sYCC standard.
Definition: ColorSpec.h:121
@ VPI_COLOR_XFER_SMPTE240M
Color transfer function specified by SMPTE 240M standard.
Definition: ColorSpec.h:125
@ VPI_COLOR_XFER_BT2020
Color transfer function specified by ITU-R BT.2020 standard.
Definition: ColorSpec.h:124
@ VPI_YCbCr_ENC_BT2020
Encoding specified by ITU-R BT.2020 standard.
Definition: ColorSpec.h:111
@ VPI_YCbCr_ENC_BT601
Encoding specified by ITU-R BT.601 standard.
Definition: ColorSpec.h:109
@ VPI_YCbCr_ENC_BT709
Encoding specified by ITU-R BT.709 standard.
Definition: ColorSpec.h:110
@ VPI_YCbCr_ENC_BT2020c
Encoding specified by ITU-R BT.2020 with constant luminance.
Definition: ColorSpec.h:112
@ VPI_YCbCr_ENC_SMPTE240M
Encoding specified by SMPTE 240M standard.
Definition: ColorSpec.h:113
@ VPI_YCbCr_ENC_UNDEFINED
Encoding not defined.
Definition: ColorSpec.h:108
@ VPI_CSS_422
4:2:2 BT.601 sub-sampling.
Definition: ColorSpec.h:410
@ VPI_CSS_422R
4:2:2R BT.601 sub-sampling.
Definition: ColorSpec.h:413
@ VPI_CSS_INVALID
Invalid chroma subsampling.
Definition: ColorSpec.h:401
@ VPI_CSS_411R
4:1:1 sub-sampling.
Definition: ColorSpec.h:419
@ VPI_CSS_420
4:2:0 sub-sampling.
Definition: ColorSpec.h:422
@ VPI_CSS_NONE
Used when no chroma subsampling takes place, specially for color specs without chroma components.
Definition: ColorSpec.h:404
@ VPI_CSS_444
4:4:4 sub-sampling.
Definition: ColorSpec.h:407
@ VPI_CSS_411
4:1:1 sub-sampling.
Definition: ColorSpec.h:416
@ VPI_COLOR_SPACE_BT709
Color primaries from ITU-R BT.709 standard, D65 white point.
Definition: ColorSpec.h:90
@ VPI_COLOR_SPACE_BT2020
Color primaries from ITU-R BT.2020 standard, D65 white point.
Definition: ColorSpec.h:91
@ VPI_COLOR_SPACE_BT601
Color primaries from ITU-R BT.601/625 lines standard, also known as EBU 3213-E.
Definition: ColorSpec.h:89
@ VPI_COLOR_SPACE_SENSOR
Color space from the sensor used to capture the image.
Definition: ColorSpec.h:88
@ VPI_COLOR_SPACE_DCIP3
Color primaries from DCI-P3 standard, D65 white point.
Definition: ColorSpec.h:92
@ VPI_COLOR_SPACE_UNDEFINED
Color space not defined.
Definition: ColorSpec.h:94
@ VPI_WHITE_POINT_UNDEFINED
White point not defined.
Definition: ColorSpec.h:102
@ VPI_WHITE_POINT_D65
D65 white point, K = 6504.
Definition: ColorSpec.h:100
@ VPI_CHROMA_LOC_BOTH
Sample chroma from even and odd coordinates.
Definition: ColorSpec.h:141
@ VPI_CHROMA_LOC_CENTER
Sample the chroma exactly between the even and odd coordinate.
Definition: ColorSpec.h:139
@ VPI_CHROMA_LOC_ODD
Sample the chroma with odd coordinate.
Definition: ColorSpec.h:140
@ VPI_CHROMA_LOC_EVEN
Sample the chroma with even coordinate.
Definition: ColorSpec.h:138