![]() |
NVIDIA DRIVE OS Linux SDK API Reference5.1.9.0 Release |
Image Pyramid Processing API.
Macros | |
#define | NVMEDIA_IMAGE_PYRAMID_VERSION_MAJOR 1 |
Major version number. More... | |
#define | NVMEDIA_IMAGE_PYRAMID_VERSION_MINOR 1 |
Minor version number. More... | |
#define | MAX_PYRAMID_LEVELS (10) |
Maximum number of levels allowed in a pyramid. More... | |
Typedefs | |
typedef struct NvMediaImagePyramid | NvMediaImagePyramid |
A handle representing an image pyramid object. More... | |
Functions | |
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 created by NvMediaImagePyramidCreate(). More... | |
NvMediaStatus | NvMediaImagePyramidGetStatus (NvMediaImagePyramid *pyramid, uint32_t millisecondWait, NvMediaTaskStatus *status) |
Gets the status of the current or most recent operation for the image pyramid; optionally waits for the current operation to complete or time out. More... | |
NvMediaImage * | NvMediaImagePyramidGetImageForLevel (NvMediaImagePyramid *pyramid, uint32_t level) |
Gets a pointer to the image for a level. More... | |
uint32_t | NvMediaImagePyramidGetNumLevels (NvMediaImagePyramid *pyramid) |
Returns the number of levels in a pyramid. More... | |
float | NvMediaImagePyramidGetScale (NvMediaImagePyramid *pyramid) |
Returns the scale factor of a pyramid. More... | |
#define MAX_PYRAMID_LEVELS (10) |
Maximum number of levels allowed in a pyramid.
Definition at line 51 of file nvmedia_image_pyramid.h.
#define NVMEDIA_IMAGE_PYRAMID_VERSION_MAJOR 1 |
Major version number.
Definition at line 46 of file nvmedia_image_pyramid.h.
#define NVMEDIA_IMAGE_PYRAMID_VERSION_MINOR 1 |
Minor version number.
Definition at line 48 of file nvmedia_image_pyramid.h.
typedef struct NvMediaImagePyramid NvMediaImagePyramid |
A handle representing an image pyramid object.
Definition at line 56 of file nvmedia_image_pyramid.h.
NvMediaImagePyramid* NvMediaImagePyramidCreate | ( | NvMediaDevice * | device, |
NvMediaSurfaceType | type, | ||
NvMediaSurfAllocAttr * | attrs, | ||
uint32_t | numLevels, | ||
float | scale, | ||
uint32_t | numAttrs, | ||
uint32_t | flags | ||
) |
Allocates an image pyramid.
[in] | device | A handle representing the associated NvMediaDevice. |
[in] | type | Surface format type, obtained by calling NvMediaSurfaceFormatGetType(). |
[in] | attrs | A pointer to 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. Must be in the range (0.0, 1.0]. |
[in] | numAttrs | Number of attributes in attrs. |
[in] | flags | Flags for module hints (reserved for future use). |
void NvMediaImagePyramidDestroy | ( | NvMediaImagePyramid * | pyramid | ) |
Destroys an image pyramid created by NvMediaImagePyramidCreate().
[in] | pyramid | A handle to the image pyramid to be destroyed. |
NvMediaImage* NvMediaImagePyramidGetImageForLevel | ( | NvMediaImagePyramid * | pyramid, |
uint32_t | level | ||
) |
Gets a pointer to the image for a level.
[in] | pyramid | A handle to the image pyramid. |
[in] | level | The level for which to obtain an image pointer. |
uint32_t NvMediaImagePyramidGetNumLevels | ( | NvMediaImagePyramid * | pyramid | ) |
Returns the number of levels in a pyramid.
[in] | pyramid | A handle to the image pyramid. |
float NvMediaImagePyramidGetScale | ( | NvMediaImagePyramid * | pyramid | ) |
Returns the scale factor of a pyramid.
[in] | pyramid | A handle to the image pyramid. |
NvMediaStatus NvMediaImagePyramidGetStatus | ( | NvMediaImagePyramid * | pyramid, |
uint32_t | millisecondWait, | ||
NvMediaTaskStatus * | status | ||
) |
Gets the status of the current or most recent operation for the image pyramid; optionally waits for the current operation to complete or time out.
[in] | pyramid | A pointer to the image. |
[in] | millisecondWait | Time in milliseconds to wait for the current operation to complete before getting status. NVMEDIA_IMAGE_TIMEOUT_INFINITE means wait indefinitely. |
[out] | status | A pointer to the status of the operation. |
NVMEDIA_STATUS_OK | indates that the operation is successful. |
NVMEDIA_STATUS_BAD_PARAMETER | indicates that pyramid or status is NULL. |
NVMEDIA_STATUS_ERROR | indicates another error. |