class ColorSpace
Defined at line 771 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
Expresses the color space used to interpret video pixel values.
This list has a separate entry for each variant of a color space standard.
For this reason, should we ever add support for the RGB variant of 709, for
example, we'd add a separate entry to this list for that variant. Similarly
for the RGB variants of 2020 or 2100. Similarly for the YcCbcCrc variant of
2020. Similarly for the ICtCp variant of 2100.
See ImageFormatIsSupportedColorSpaceForPixelFormat() for whether a
combination of `PixelFormat` and `ColorSpace` is potentially supported.
Generally, a `ColorSpace` is not supported for any `PixelFormat` whose
bits-per-sample isn't compatible with the color space's spec, nor for any
`PixelFormat` which is a mismatch in terms of RGB vs. YUV.
The "limited range" in comments below refers to where black and white are
defined to be (and simimlar for chroma), but should not be interpreted as
guaranteeing that there won't be values outside the nominal "limited range".
In other words, "limited range" doesn't necessarily mean there won't be any
values below black or above white, or outside the "limited" chroma range.
For "full range", black is 0 and white is the max possible/permitted numeric
value (and similar for chroma).
Public Members
static ColorSpace kInvalid
static ColorSpace kSrgb
static ColorSpace kRec601Ntsc
static ColorSpace kRec601NtscFullRange
static ColorSpace kRec601Pal
static ColorSpace kRec601PalFullRange
static ColorSpace kRec709
static ColorSpace kRec2020
static ColorSpace kRec2100
static ColorSpace kPassthrough
static ColorSpace kDoNotCare
Public Methods
void ColorSpace ()
Defined at line 823 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
void ColorSpace (uint32_t value)
Defined at line 824 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
EnumForSwitching_ operator fuchsia_images2::ColorSpace::EnumForSwitching_ ()
Defined at line 825 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
uint32_t operator unsigned int ()
Defined at line 826 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
bool IsUnknown ()
Defined at line 828 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h
ColorSpace Unknown ()
Returns an enum corresponding to the member designated as
in the
FIDL schema if exists, or a compiler-reserved unknown value otherwise.
Defined at line 859 of file fidling/gen/sdk/fidl/fuchsia.images2/fuchsia.images2/cpp/fidl/fuchsia.images2/cpp/common_types.h