|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_PYRAMID_H
57 #define NV_VPI_PYRAMID_H
104 #define VPI_MAX_PYRAMID_LEVEL_COUNT (10)
110 typedef struct VPIPyramidDataRec
120 #define vpiPyramidCreate VPI_APINAME(vpiPyramidCreate, 004)
121 #define vpiPyramidGetFlags VPI_APINAME(vpiPyramidGetFlags, 004)
122 #define vpiPyramidGetType VPI_APINAME(vpiPyramidGetType, 004)
123 #define vpiPyramidLock VPI_APINAME(vpiPyramidLock, 004)
124 #define vpiImageCreatePyramidLevelWrapper VPI_APINAME(vpiImageCreatePyramidLevelWrapper, 004)
143 float scale, uint32_t flags,
VPIPyramid *pyr);
242 #endif // NV_VPI_PYRAMID_H
VPIStatus vpiImageCreatePyramidLevelWrapper(VPIPyramid pyr, uint32_t level, VPIImage *img)
Creates an image that wraps one pyramid level.
VPIStatus vpiPyramidGetSize(VPIPyramid pyr, uint32_t outSize, uint32_t *outWidth, uint32_t *outHeight)
Get the image width and height in pixels (for all levels at once).
Defines all types needed for programming with VPI.
#define VPI_MAX_PYRAMID_LEVEL_COUNT
Maximum number of pyramid levels.
int32_t numLevels
Number of levels (i.e.
VPIStatus vpiPyramidGetNumLevels(VPIPyramid pyr, uint32_t *numLevels)
Get the image pyramid level count.
VPIStatus vpiPyramidUnlock(VPIPyramid pyr)
Releases the lock on a image pyramid object.
Stores information about image characteristics and content.
Functions and structures for dealing with VPI images.
struct VPIImageImpl * VPIImage
A handle to an image.
VPIStatus vpiPyramidCreate(uint32_t width, uint32_t height, VPIImageFormat fmt, uint32_t numLevels, float scale, uint32_t flags, VPIPyramid *pyr)
Create an empty image pyramid instance with the specified flags.
VPIStatus vpiPyramidGetFlags(VPIPyramid pyr, uint32_t *flags)
Returns the flags associated with the pyramid.
Declaration of VPI status codes handling functions.
VPILockMode
Defines the lock modes used by memory lock functions.
VPIStatus vpiPyramidGetType(VPIPyramid pyr, VPIImageFormat *type)
Returns the image type of the pyramid levels.
void vpiPyramidDestroy(VPIPyramid pyr)
Destroy an image pyramid instance as well as all resources it owns.
Stores the pyramid contents.
struct VPIPyramidImpl * VPIPyramid
A handle to an image pyramid.
VPIStatus vpiPyramidLock(VPIPyramid pyr, VPILockMode lock, VPIPyramidData *out)
Acquires the lock on a pyramid object and returns pointers to each level of the pyramid.