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... | |
| #define VPI_MAKE_COLOR_SPEC_ABBREV | ( | cspace, | |
| encoding, | |||
| xferFunc, | |||
| range, | |||
| locHoriz, | |||
| locVert | |||
| ) |
#include <vpi/ColorSpec.h>
Creates a user-defined color spec constant using abbreviated parameters.
Example:
| [in] | cspace | Color Space. |
| [in] | encoding | R'G'B' <-> Y'CbCr encoding. |
| [in] | xferFunc | Color transfer function. |
| [in] | range | Color quantization range. |
| [in] | locHoriz | Horizontal chroma location. |
| [in] | locVert | Vertical chroma location. |
Definition at line 256 of file ColorSpec.h.
| #define VPI_MAKE_COLOR_SPEC | ( | cspace, | |
| encoding, | |||
| xferFunc, | |||
| range, | |||
| locHoriz, | |||
| locVert | |||
| ) |
#include <vpi/ColorSpec.h>
Creates a user-defined color spec constant.
Example:
| [in] | cspace | Color Space. |
| [in] | encoding | R'G'B' <-> Y'CbCr encoding. |
| [in] | xferFunc | Color transfer function. |
| [in] | range | Color quantization range. |
| [in] | locHoriz | Horizontal chroma location. |
| [in] | locVert | Vertical chroma location. |
Definition at line 279 of file ColorSpec.h.
| enum VPIColorModel |
#include <vpi/ColorSpec.h>
Defines color models.
A color model gives meaning to each channel of an image format. They are specified in a canonical XYZW ordering that can then be swizzled to the desired ordering.
Definition at line 76 of file ColorSpec.h.
| enum VPIColorSpace |
#include <vpi/ColorSpec.h>
Defines the color primaries and the white point of a VPIColorSpec.
Definition at line 86 of file ColorSpec.h.
| enum VPIWhitePoint |
#include <vpi/ColorSpec.h>
Defines the white point associated with a VPIColorSpace.
| Enumerator | |
|---|---|
| VPI_WHITE_POINT_D65 | D65 white point, K = 6504. |
| VPI_WHITE_POINT_UNDEFINED | White point not defined. |
Definition at line 98 of file ColorSpec.h.
| enum VPIYCbCrEncoding |
#include <vpi/ColorSpec.h>
Defines the YCbCr encoding used in a particular VPIColorSpec.
Definition at line 106 of file ColorSpec.h.
#include <vpi/ColorSpec.h>
Defines the color transfer function in a particular VPIColorSpec.
Definition at line 117 of file ColorSpec.h.
| enum VPIColorRange |
#include <vpi/ColorSpec.h>
Defines the color range of a particular VPIColorSpec.
| Enumerator | |
|---|---|
| VPI_COLOR_RANGE_FULL | Values cover the full underlying type range. |
| VPI_COLOR_RANGE_LIMITED | Values cover a limited range of the underlying type. |
Definition at line 129 of file ColorSpec.h.
| enum VPIChromaLocation |
#include <vpi/ColorSpec.h>
Chroma sampling location.
Definition at line 136 of file ColorSpec.h.
| enum VPIColorSpec |
#include <vpi/ColorSpec.h>
Color spec definitions.
These color specs define how color information is to be interpreted. It is defined by several parameters:
These parameters together defines how the color representation maps to its corresponding absolute color in a chromacity diagram.
Definition at line 161 of file ColorSpec.h.
| enum VPIRawPattern |
#include <vpi/ColorSpec.h>
Defines Bayer patterns used by RAW color model.
R,G,B represent the color primaries red, green, blue. C represent a clear channel, it lets all light pass.
Definition at line 302 of file ColorSpec.h.
| enum VPIChromaSubsampling |
#include <vpi/ColorSpec.h>
Defines how chroma-subsampling is done.
This is only applicable to image formats whose color model is YUV. Other image formats must use VPI_CSS_NONE. Chroma subsampling is defined by 2 parameters:
Definition at line 399 of file ColorSpec.h.
| VPIColorSpec vpiMakeColorSpec | ( | VPIColorSpace | cspace, |
| VPIYCbCrEncoding | encoding, | ||
| VPIColorTransferFunction | xferFunc, | ||
| VPIColorRange | range, | ||
| VPIChromaLocation | locHoriz, | ||
| VPIChromaLocation | locVert | ||
| ) |
#include <vpi/ColorSpec.h>
Creates a user-defined VPIColorSpec.
| [in] | cspace | Color space. |
| [in] | encoding | R'G'B' <-> Y'CbCr encoding. |
| [in] | xferFunc | Color transfer function. |
| [in] | range | Color quantization range. |
| [in] | locHoriz | Horizontal chroma location. |
| [in] | locVert | Vertical chroma location. |
| VPIChromaSubsampling vpiMakeChromaSubsampling | ( | int | samplesHoriz, |
| int | samplesVert | ||
| ) |
#include <vpi/ColorSpec.h>
Creates a VPIChromaSubsampling given the horizontal and vertical sampling.
| [in] | samplesHoriz | Number of horizontal samples, 1, 2 or 4. |
| [in] | samplesVert | Number of vertical samples, 1, 2 or 4. |
| VPI_CSS_NONE | Chroma subsampling isn't defined. |
| int vpiChromaSubsamplingGetSamplesHoriz | ( | VPIChromaSubsampling | css | ) |
#include <vpi/ColorSpec.h>
Get the number of chroma samples for each group of 4 horizontal luma samples.
| [in] | css | Chroma subsampling to be queried.
|
| 0 | css is invalid. |
| int vpiChromaSubsamplingGetSamplesVert | ( | VPIChromaSubsampling | css | ) |
#include <vpi/ColorSpec.h>
Get the number of chroma samples for each group of 4 vertical luma samples.
| [in] | css | Chroma subsampling to be queried.
|
| 0 | css is invalid. |
| VPIChromaLocation vpiColorSpecGetChromaLocHoriz | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the chroma horizontal sampling location of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_CHROMA_LOC_BOTH | cspec is invalid. |
| VPIChromaLocation vpiColorSpecGetChromaLocVert | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the chroma vertical sample location of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_CHROMA_LOC_BOTH | cspec is invalid. |
| VPIColorSpec vpiColorSpecSetChromaLoc | ( | VPIColorSpec | cspec, |
| VPIChromaLocation | locHoriz, | ||
| VPIChromaLocation | locVert | ||
| ) |
#include <vpi/ColorSpec.h>
Set the chroma sample location of a given color spec.
| [in] | cspec | The color spec to be modified.
|
| [in] | locHoriz | Horizontal chroma sampling location with respect to luma coordinate. |
| [in] | locVert | Vertical chroma sampling location with respect to luma coordinate. |
| VPI_COLOR_SPEC_INVALID | cspec is invalid. |
| VPIColorSpace vpiColorSpecGetSpace | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the color_space of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_COLOR_SPACE_UNDEFINED | cspec is invalid. |
| VPIColorSpec vpiColorSpecSetSpace | ( | VPIColorSpec | cspec, |
| VPIColorSpace | cspace | ||
| ) |
#include <vpi/ColorSpec.h>
Set the color_space of a given color spec.
| [in] | cspec | Color spec to be updated.
|
| [in] | cspace | The new color_space. |
| VPI_COLOR_SPEC_INVALID | cspec is invalid. |
| VPI_COLOR_SPEC_INVALID | cspace is invalid. |
| VPIYCbCrEncoding vpiColorSpecGetYCbCrEncoding | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the R'G'B' <-> Y'CbCr encoding scheme of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_YCbCr_ENC_UNDEFINED | cspec is invalid. |
| VPIColorSpec vpiColorSpecSetYCbCrEncoding | ( | VPIColorSpec | cspec, |
| VPIYCbCrEncoding | encoding | ||
| ) |
#include <vpi/ColorSpec.h>
Set the R'G'B' <-> Y'CbCr encoding scheme of a given color spec.
| [in] | cspec | Color spec to be updated.
|
| [in] | encoding | The new Y'CbCr encoding scheme. |
| VPI_COLOR_SPEC_INVALID | cspec is invalid. |
| VPIColorTransferFunction vpiColorSpecGetTransferFunction | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the color transfer function of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_COLOR_XFER_LINEAR | if cspec is invalid. |
| VPIColorSpec vpiColorSpecSetTransferFunction | ( | VPIColorSpec | cspec, |
| VPIColorTransferFunction | xferFunc | ||
| ) |
#include <vpi/ColorSpec.h>
Set the color transfer function of a given color spec.
| [in] | cspec | Color spec to be updated.
|
| [in] | xferFunc | The new color transfer function. |
| VPI_COLOR_SPEC_INVALID | cspec is invalid. |
| VPIColorRange vpiColorSpecGetRange | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Get the color quantization range of a given color spec.
| [in] | cspec | Color spec to be queried.
|
| VPI_COLOR_RANGE_FULL | cspec is invalid. |
| VPIColorSpec vpiColorSpecSetRange | ( | VPIColorSpec | cspec, |
| VPIColorRange | range | ||
| ) |
#include <vpi/ColorSpec.h>
Set the color quantization range of a given color spec.
| [in] | cspec | Color spec to be updated.
|
| [in] | range | The new color quantization range. |
| VPI_COLOR_SPEC_INVALID | cspec is invalid. |
| const char* vpiColorSpecGetName | ( | VPIColorSpec | cspec | ) |
#include <vpi/ColorSpec.h>
Returns a string representation of the color spec.
| [in] | cspec | Color spec whose name is to be returned. |