56 #ifndef NV_VPI_PIXEL_TYPE_H 
   57 #define NV_VPI_PIXEL_TYPE_H 
   60 #include "detail/FormatUtils.h" 
   79 #    pragma GCC diagnostic push 
   80 #    pragma GCC diagnostic ignored "-Wpedantic" 
  181     VPI_PIXEL_TYPE_FORCE64 = INT64_MAX
 
  186 #    pragma GCC diagnostic pop 
  203 #    define VPI_MAKE_PIXEL_TYPE_ABBREV(memLayout, dataType, packing) 
  205 #    define VPI_MAKE_PIXEL_TYPE_ABBREV (VPIPixelType) VPI_DETAIL_MAKE_PIXEL_FMT 
  221 #    define VPI_MAKE_PIXEL_TYPE(memLayout, dataType, packing) 
  223 #    define VPI_MAKE_PIXEL_TYPE (VPIPixelType) VPI_DETAIL_MAKE_PIXEL_TYPE 
Defines types and functions to handle data layouts.
 
VPIMemLayout vpiPixelTypeGetMemLayout(VPIPixelType type)
Get the memory layout of a pixel type.
 
VPIPixelType vpiMakePixelType(VPIMemLayout memLayout, VPIDataType dataType, VPIPacking packing)
Creates a user-defined pixel type.
 
VPIPacking vpiPixelTypeGetPacking(VPIPixelType type)
Get the packing of a pixel type.
 
int vpiPixelTypeGetChannelCount(VPIPixelType type)
Get the number of channels of a pixel type.
 
VPIDataType vpiPixelTypeGetDataType(VPIPixelType type)
Get the data type of a pixel type.
 
int vpiPixelTypeGetBitsPerPixel(VPIPixelType type)
Get the number of bits per pixel of a pixel type.
 
void vpiPixelTypeGetBitsPerChannel(VPIPixelType type, int32_t *bits)
Get the number of bits per channel of a pixel type.
 
const char * vpiPixelTypeGetName(VPIPixelType type)
Returns a string representation of the pixel type.
 
VPIPacking
Defines how channels are packed into an image plane element.
 
VPIMemLayout
Defines how the 2D plane pixels are laid out in memory.
 
VPIDataType
Defines the channel data type.