|
VPI - Vision Programming Interface
0.1.0 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_PYRAMID_H
57 #define NV_VPI_PYRAMID_H
104 #define VPI_PYRAMID_NO_PVA 0x01
105 #define VPI_PYRAMID_NO_CPU 0x02
106 #define VPI_PYRAMID_NO_CUDA 0x04
111 #define VPI_PYRAMID_ONLY_CUDA (VPI_PYRAMID_NO_PVA | VPI_PYRAMID_NO_CPU)
112 #define VPI_PYRAMID_ONLY_CPU (VPI_PYRAMID_NO_PVA | VPI_PYRAMID_NO_CUDA)
113 #define VPI_PYRAMID_ONLY_PVA (VPI_PYRAMID_NO_CUDA | VPI_PYRAMID_NO_CPU)
117 #define VPI_MAX_PYRAMID_LEVEL_COUNT (10)
123 typedef struct VPIPyramidDataRec
146 float scale, uint32_t flags,
VPIPyramid *pyr);
254 #endif // NV_VPI_PYRAMID_H
VPIStatus vpiImageWrapPyramidLevel(VPIPyramid pyr, uint32_t level, VPIImage *img)
Creates an image that wraps one pyramid level.
VPIStatus vpiPyramidCreate(uint32_t width, uint32_t height, VPIImageType fmt, uint32_t numLevels, float scale, uint32_t flags, VPIPyramid *pyr)
Create an empty image pyramid instance with the specified flags.
VPIImageType
Image formats.
#define VPI_MAX_PYRAMID_LEVEL_COUNT
Maximum number of pyramid levels.
VPIStatus vpiPyramidGetHeight(VPIPyramid pyr, uint32_t outSize, uint32_t *out)
Get the height of all image 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.
VPIStatus vpiPyramidGetType(VPIPyramid pyr, VPIImageType *type)
Returns the image type of the pyramid levels.
struct VPIImageImpl * VPIImage
VPILockMode
Defines the lock modes used by memory lock functions.
VPIStatus vpiPyramidGetFlags(VPIPyramid pyr, uint32_t *flags)
Returns the flags associated with the pyramid.
VPIStatus vpiPyramidGetWidth(VPIPyramid pyr, uint32_t outSize, uint32_t *out)
Get the image width in pixels (for all levels at once).
void vpiPyramidDestroy(VPIPyramid pyr)
Destroy an image pyramid instance as well as all resources it owns.
Stores the pyramid contents.
struct VPIPyramidImpl * VPIPyramid
VPIStatus vpiPyramidLock(VPIPyramid pyr, VPILockMode lock, VPIPyramidData *out)
Acquires the lock on a pyramid object and returns pointers to each level of the pyramid.