VPI - Vision Programming Interface

0.4.4 Release

Format.h File Reference

Defines types and functions to handle memory formats. More...

#include "Export.h"
#include "detail/FormatUtils.h"
+ Include dependency graph for Format.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VPI_MAKE_SWIZZLE(x, y, z, w)   ((VPISwizzle)VPI_DETAIL_MAKE_SWIZZLE(x, y, z, w))
 Creates an user-defined swizzle operation. More...
 

Enumerations

enum  VPIFormatPacking
 Defines how channels are packed into an image plane element. More...
 
enum  VPIFormatDataType
 Defines the channel data type. More...
 
enum  VPIMemLayout
 Defines how the 2D plane pixels are laid out in memory. More...
 
enum  VPISwizzleChannel
 Defines the format channel names. More...
 
enum  VPISwizzle
 Defines the supported channel swizzle operations. More...
 
enum  VPIColorModel
 Defines color models. More...
 
enum  VPIColorSpace
 Defines color spaces. More...
 
enum  VPIChromaSubsampling
 Defines how chroma-subsampling is done. More...
 

Functions

VPISwizzle vpiMakeSwizzle (VPISwizzleChannel x, VPISwizzleChannel y, VPISwizzleChannel z, VPISwizzleChannel w)
 Creates an user-defined VPISwizzle operation. More...
 
VPIChromaSubsampling vpiMakeChromaSubsampling (int divHoriz, int divVert, int centerSampleHoriz, int centerSampleVert)
 Creates an user-defined VPIChromaSubsampling definition. More...
 
VPIFormatPacking vpiMakeFormatPacking (int fixed, int bitsX, int bitsY, int bitsZ, int bitsW)
 Returns a pre-defined VPIFormatPacking given the number of bits in each channel. More...
 
void vpiFormatPackingGetParams (VPIFormatPacking packing, int *fixed, int *bitsX, int *bitsY, int *bitsZ, int *bitsW)
 Returns channels' information from a format packing. More...
 
int vpiFormatPackingGetChannelCount (VPIFormatPacking packing)
 Returns the number of channels defined by the given packing. More...
 
int vpiFormatPackingGetBitsPerPixel (VPIFormatPacking packing)
 Returns the number of bits per pixel of the given packing. More...
 

Detailed Description

Defines types and functions to handle memory formats.

Definition in file Format.h.