Defines types and functions to handle color specs. More...
#include "Export.h"
#include "detail/FormatUtils.h"
Go to the source code of this file.
Macros | |
#define | VPI_MAKE_COLOR_SPEC_ABBREV(cspace, encoding, xferFunc, range, locHoriz, locVert) |
Creates a user-defined color spec constant using abbreviated parameters. More... | |
#define | VPI_MAKE_COLOR_SPEC(cspace, encoding, xferFunc, range, locHoriz, locVert) |
Creates a user-defined color spec constant. More... | |
Enumerations | |
enum | VPIColorModel |
Defines color models. More... | |
enum | VPIColorSpace |
Defines the color primaries and the white point of a VPIColorSpec. More... | |
enum | VPIWhitePoint |
Defines the white point associated with a VPIColorSpace. More... | |
enum | VPIYCbCrEncoding |
Defines the YCbCr encoding used in a particular VPIColorSpec. More... | |
enum | VPIColorTransferFunction |
Defines the color transfer function in a particular VPIColorSpec. More... | |
enum | VPIColorRange |
Defines the color range of a particular VPIColorSpec. More... | |
enum | VPIChromaLocation |
Chroma sampling location. More... | |
enum | VPIColorSpec |
Color spec definitions. More... | |
enum | VPIRawPattern |
Defines Bayer patterns used by RAW color model. More... | |
enum | VPIChromaSubsampling |
Defines how chroma-subsampling is done. More... | |
Functions | |
VPIColorSpec | vpiMakeColorSpec (VPIColorSpace cspace, VPIYCbCrEncoding encoding, VPIColorTransferFunction xferFunc, VPIColorRange range, VPIChromaLocation locHoriz, VPIChromaLocation locVert) |
Creates a user-defined VPIColorSpec. More... | |
VPIChromaSubsampling | vpiMakeChromaSubsampling (int samplesHoriz, int samplesVert) |
Creates a VPIChromaSubsampling given the horizontal and vertical sampling. More... | |
int | vpiChromaSubsamplingGetSamplesHoriz (VPIChromaSubsampling css) |
Get the number of chroma samples for each group of 4 horizontal luma samples. More... | |
int | vpiChromaSubsamplingGetSamplesVert (VPIChromaSubsampling css) |
Get the number of chroma samples for each group of 4 vertical luma samples. More... | |
VPIChromaLocation | vpiColorSpecGetChromaLocHoriz (VPIColorSpec cspec) |
Get the chroma horizontal sampling location of a given color spec. More... | |
VPIChromaLocation | vpiColorSpecGetChromaLocVert (VPIColorSpec cspec) |
Get the chroma vertical sample location of a given color spec. More... | |
VPIColorSpec | vpiColorSpecSetChromaLoc (VPIColorSpec cspec, VPIChromaLocation locHoriz, VPIChromaLocation locVert) |
Set the chroma sample location of a given color spec. More... | |
VPIColorSpace | vpiColorSpecGetSpace (VPIColorSpec cspec) |
Get the color_space of a given color spec. More... | |
VPIColorSpec | vpiColorSpecSetSpace (VPIColorSpec cspec, VPIColorSpace cspace) |
Set the color_space of a given color spec. More... | |
VPIYCbCrEncoding | vpiColorSpecGetYCbCrEncoding (VPIColorSpec cspec) |
Get the R'G'B' <-> Y'CbCr encoding scheme of a given color spec. More... | |
VPIColorSpec | vpiColorSpecSetYCbCrEncoding (VPIColorSpec cspec, VPIYCbCrEncoding encoding) |
Set the R'G'B' <-> Y'CbCr encoding scheme of a given color spec. More... | |
VPIColorTransferFunction | vpiColorSpecGetTransferFunction (VPIColorSpec cspec) |
Get the color transfer function of a given color spec. More... | |
VPIColorSpec | vpiColorSpecSetTransferFunction (VPIColorSpec cspec, VPIColorTransferFunction xferFunc) |
Set the color transfer function of a given color spec. More... | |
VPIColorRange | vpiColorSpecGetRange (VPIColorSpec cspec) |
Get the color quantization range of a given color spec. More... | |
VPIColorSpec | vpiColorSpecSetRange (VPIColorSpec cspec, VPIColorRange range) |
Set the color quantization range of a given color spec. More... | |
const char * | vpiColorSpecGetName (VPIColorSpec cspec) |
Returns a string representation of the color spec. More... | |
Defines types and functions to handle color specs.
Definition in file ColorSpec.h.