VPI - Vision Programming Interface

0.1.0 Release

Pyramid.h File Reference
#include <stdint.h>
#include "Export.h"
#include "Image.h"
#include "Status.h"
#include "Types.h"
+ Include dependency graph for Pyramid.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VPIPyramidData
 Stores the pyramid contents. More...
 

Macros

#define VPI_MAX_PYRAMID_LEVEL_COUNT   (10)
 Maximum number of pyramid levels.
 
Pyramid flags
#define VPI_PYRAMID_NO_PVA   0x01
 Pyramid can't be used by PVA backend.
 
#define VPI_PYRAMID_NO_CPU   0x02
 Pyramid can't be used by CPU backend.
 
#define VPI_PYRAMID_NO_CUDA   0x04
 Pyramid can't be used by CUDA backend.
 
Pyramid helper flags
#define VPI_PYRAMID_ONLY_CUDA   (VPI_PYRAMID_NO_PVA | VPI_PYRAMID_NO_CPU)
 Pyramid can only be used by CUDA backend.
 
#define VPI_PYRAMID_ONLY_CPU   (VPI_PYRAMID_NO_PVA | VPI_PYRAMID_NO_CUDA)
 Pyramid can only be used by CPU backend.
 
#define VPI_PYRAMID_ONLY_PVA   (VPI_PYRAMID_NO_CUDA | VPI_PYRAMID_NO_CPU)
 Pyramid can only be used by PVA backend.
 

Functions

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. More...
 
void vpiPyramidDestroy (VPIPyramid pyr)
 Destroy an image pyramid instance as well as all resources it owns. More...
 
VPIStatus vpiPyramidGetFlags (VPIPyramid pyr, uint32_t *flags)
 Returns the flags associated with the pyramid. More...
 
VPIStatus vpiPyramidGetType (VPIPyramid pyr, VPIImageType *type)
 Returns the image type of the pyramid levels. More...
 
VPIStatus vpiPyramidGetNumLevels (VPIPyramid pyr, uint32_t *numLevels)
 Get the image pyramid level count. More...
 
VPIStatus vpiPyramidGetWidth (VPIPyramid pyr, uint32_t outSize, uint32_t *out)
 Get the image width in pixels (for all levels at once). More...
 
VPIStatus vpiPyramidGetHeight (VPIPyramid pyr, uint32_t outSize, uint32_t *out)
 Get the height of all image levels. More...
 
VPIStatus vpiPyramidLock (VPIPyramid pyr, VPILockMode lock, VPIPyramidData *out)
 Acquires the lock on a pyramid object and returns pointers to each level of the pyramid. More...
 
VPIStatus vpiImageWrapPyramidLevel (VPIPyramid pyr, uint32_t level, VPIImage *img)
 Creates an image that wraps one pyramid level. More...
 
VPIStatus vpiPyramidUnlock (VPIPyramid pyr)
 Releases the lock on a image pyramid object. More...
 

Detailed Description

Functions and structures for dealing with VPI pyramids.

Definition in file Pyramid.h.