The Image Pyramid Processing API encompasses all NvMedia related functionality for handling pyramids of NvMediaImage.
|
NvMediaImagePyramid * | NvMediaImagePyramidCreate (NvMediaDevice *device, NvMediaSurfaceType type, NvMediaSurfAllocAttr *attrs, uint32_t numLevels, float scale, uint32_t numAttrs, uint32_t flags) |
| Allocates an image pyramid. More...
|
|
void | NvMediaImagePyramidDestroy (NvMediaImagePyramid *pyramid) |
| Destroys an image pyramid that NvMediaImagePyramidCreate() created. More...
|
|
NvMediaStatus | NvMediaImagePyramidGetStatus (NvMediaImagePyramid *pyramid, uint32_t millisecondWait, NvMediaTaskStatus *status) |
| Gets status of the current/last operation for the image pyramid, and optionally waits for operation to complete/timeout. More...
|
|
NvMediaImage * | NvMediaImagePyramidGetImageForLevel (NvMediaImagePyramid *pyramid, uint32_t level) |
| Returns NvMediaImage pointer of image for a level. More...
|
|
uint32_t | NvMediaImagePyramidGetNumLevels (NvMediaImagePyramid *pyramid) |
| Returns number of levels in the pyramid. More...
|
|
float | NvMediaImagePyramidGetScale (NvMediaImagePyramid *pyramid) |
| Returns scale factor of the pyramid. More...
|
|
#define MAX_PYRAMID_LEVELS (10) |
#define NVMEDIA_IMAGE_PYRAMID_VERSION_MAJOR 1 |
#define NVMEDIA_IMAGE_PYRAMID_VERSION_MINOR 0 |
Allocates an image pyramid.
- Parameters
-
[in] | device | The NvMediaDevice. |
[in] | type | Surface format type obtained from NvMediaSurfaceFormatGetType API. |
[in] | attrs | An array of surface alloc attributes for surface creation. Resolution is for the base level of the pyramid. |
[in] | numLevels | Number of levels in the pyramid. |
[in] | scale | Scale factor for the pyramid. |
[in] | numAttrs | Number of attributes in the array. |
[in] | flags | Flags for module hint (used in future). |
- Returns
- NvMediaImagePyramid The new image pyramid's handle or NULL if unsuccessful.
Returns NvMediaImage pointer of image for a level.
- Parameters
-
[in] | pyramid | The image pyramid handle. |
[in] | level | The level for which to obtain image pointer. |
- Returns
- NvMediaImage pointer. NULL in case of error.
Returns number of levels in the pyramid.
- Parameters
-
[in] | pyramid | The image pyramid handle. |
- Returns
- Number of levels. 0 in case of error.
Returns scale factor of the pyramid.
- Parameters
-
[in] | pyramid | The image pyramid handle. |
- Returns
- Scale factor. 0 in case of error.