56 #ifndef NV_VPI_PYRAMID_H
57 #define NV_VPI_PYRAMID_H
105 #define VPI_MAX_PYRAMID_LEVEL_COUNT (10)
111 typedef struct VPIPyramidDataRec
struct VPIImageImpl * VPIImage
图像的句柄。
VPIImageBufferType
表示图像数据的存储方式。
float scale
两个相邻层级之间分辨率的缩放因子。
VPIStatus vpiPyramidCreate(int32_t width, int32_t height, VPIImageFormat fmt, int32_t numLevels, float scale, uint64_t flags, VPIPyramid *pyr)
使用指定的标志创建空的图像金字塔实例。
VPIStatus vpiPyramidGetSize(VPIPyramid pyr, int32_t outSize, int32_t *outWidth, int32_t *outHeight)
获取图像宽度和高度(一次获取所有层级)。
struct VPIPyramidImpl * VPIPyramid
图像金字塔的句柄。
VPIStatus vpiPyramidGetFormat(VPIPyramid pyr, VPIImageFormat *fmt)
返回金字塔层级的图像格式。
VPIStatus vpiPyramidGetNumLevels(VPIPyramid pyr, int32_t *numLevels)
获取图像金字塔层级计数。
#define VPI_MAX_PYRAMID_LEVEL_COUNT
金字塔层级的最大数量。
VPIStatus vpiPyramidUnlock(VPIPyramid pyr)
释放图像金字塔对象的锁定。
VPIStatus vpiPyramidGetFlags(VPIPyramid pyr, uint64_t *flags)
返回与金字塔关联的标志。
VPIStatus vpiImageCreateWrapperPyramidLevel(VPIPyramid pyr, int32_t level, VPIImage *img)
创建包装一个金字塔层级的图像。
VPIStatus vpiPyramidGetScale(VPIPyramid pyr, float *scale)
返回金字塔层级的缩放因子。
VPIStatus vpiPyramidLockData(VPIPyramid pyr, VPILockMode lock, VPIImageBufferType bufType, VPIPyramidData *out)
获取金字塔对象的锁定,并返回指向金字塔每一层级的宿主机可访问的指针...
VPIStatus vpiPyramidLock(VPIPyramid pyr, VPILockMode lock)
获取金字塔对象的锁定。
void vpiPyramidDestroy(VPIPyramid pyr)
销毁图像金字塔实例以及它拥有的所有资源。
VPILockMode
定义内存锁定功能使用的锁定模式。