56 #ifndef NV_VPI_PYRAMID_H
57 #define NV_VPI_PYRAMID_H
105 #define VPI_MAX_PYRAMID_LEVEL_COUNT (10)
111 typedef struct VPIPyramidDataRec
115 #if NV_VPI_VERSION_API_AT_LEAST(1, 1)
215 #if NV_VPI_VERSION_API_IS(1, 0)
216 __asm__(
".symver vpiPyramidLock,vpiPyramidLock@VPI_1.0");
Functions and structures for dealing with VPI images.
Declaration of VPI status codes handling functions.
Defines all types needed for programming with VPI.
Functions and structures for handling VPI library version.
struct VPIImageImpl * VPIImage
A handle to an image.
Stores information about image characteristics and content.
int32_t numLevels
Number of levels (i.e.
VPIStatus vpiPyramidLock(VPIPyramid pyr, VPILockMode lock, VPIPyramidData *out)
Acquires the lock on a pyramid object and returns pointers to each level of the pyramid.
VPIStatus vpiPyramidGetSize(VPIPyramid pyr, int32_t outSize, int32_t *outWidth, int32_t *outHeight)
Get the image width and height in pixels (for all levels at once).
struct VPIPyramidImpl * VPIPyramid
A handle to an image pyramid.
VPIStatus vpiPyramidGetFormat(VPIPyramid pyr, VPIImageFormat *fmt)
Returns the image format of the pyramid levels.
VPIStatus vpiPyramidGetNumLevels(VPIPyramid pyr, int32_t *numLevels)
Get the image pyramid level count.
#define VPI_MAX_PYRAMID_LEVEL_COUNT
Maximum number of pyramid levels.
VPIStatus vpiImageCreatePyramidLevelWrapper(VPIPyramid pyr, int32_t level, VPIImage *img)
Creates an image that wraps one pyramid level.
VPIStatus vpiPyramidUnlock(VPIPyramid pyr)
Releases the lock on a image pyramid object.
VPIStatus vpiPyramidGetFlags(VPIPyramid pyr, uint32_t *flags)
Returns the flags associated with the pyramid.
VPIStatus vpiPyramidCreate(int32_t width, int32_t height, VPIImageFormat fmt, int32_t numLevels, float scale, uint32_t flags, VPIPyramid *pyr)
Create an empty image pyramid instance with the specified flags.
VPIStatus vpiPyramidGetScale(VPIPyramid pyr, float *scale)
Returns the scale factor of the pyramid levels.
void vpiPyramidDestroy(VPIPyramid pyr)
Destroy an image pyramid instance as well as all resources it owns.
Stores the pyramid contents.
VPILockMode
Defines the lock modes used by memory lock functions.