![]() |
NVIDIA DRIVE 5.0 Linux SDK API Reference5.0.10.3 Release |
Defines and manages image objects.
NvMediaImages are video RAM surfaces storing YUV, RGBA or RAW data. They can store one or more images depending on the class. NvMediaImages are created with NvMediaImageCreateNew() and destroyed with NvMediaImageDestroy().
Data Structures | |
struct | NvMediaImage |
A handle representing image objects. More... | |
struct | NvMediaImageGroup |
A handle representing an image group. More... | |
Macros | |
#define | NVMEDIA_MAX_AGGREGATE_IMAGES |
Maximum number of images in an aggregate image. More... | |
#define | NVMEDIA_MAX_IMAGE_GROUP_SIZE |
Maximum number of images in an image group. More... | |
#define | NVMEDIA_IMAGE_TIMEOUT_INFINITE |
Infinite time-out for NvMediaImageGetStatus. More... | |
Enumerations | |
enum | NvMediaBitsPerPixel { NVMEDIA_BITS_PER_PIXEL_8 = 0, NVMEDIA_BITS_PER_PIXEL_10, NVMEDIA_BITS_PER_PIXEL_12, NVMEDIA_BITS_PER_PIXEL_14, NVMEDIA_BITS_PER_PIXEL_16, NVMEDIA_BITS_PER_PIXEL_20 } |
Bits per pixel. More... | |
enum | NvMediaRawPixelOrder { NVMEDIA_RAW_PIXEL_ORDER_RGGB = 0, NVMEDIA_RAW_PIXEL_ORDER_BGGR, NVMEDIA_RAW_PIXEL_ORDER_GRBG, NVMEDIA_RAW_PIXEL_ORDER_GBRG } |
Pixel order in a raw image. More... | |
Functions | |
NvMediaStatus | NvMediaImageGetVersion (NvMediaVersion *version) |
Gets the version for the NvMedia Image library. More... | |
NvMediaImage * | NvMediaImageCreateNew (NvMediaDevice *device, NvMediaSurfaceType type, NvMediaSurfAllocAttr *attrs, uint32_t numAttrs, uint32_t flags) |
Allocates an image object. More... | |
void | NvMediaImageDestroy (NvMediaImage *image) |
Destroys an image object that was created by NvMediaImageCreateNew. More... | |
#define NVMEDIA_IMAGE_TIMEOUT_INFINITE |
Infinite time-out for NvMediaImageGetStatus.
Definition at line 70 of file nvmedia_image.h.
#define NVMEDIA_MAX_AGGREGATE_IMAGES |
Maximum number of images in an aggregate image.
Definition at line 58 of file nvmedia_image.h.
#define NVMEDIA_MAX_IMAGE_GROUP_SIZE |
Maximum number of images in an image group.
Definition at line 64 of file nvmedia_image.h.
enum NvMediaBitsPerPixel |
Bits per pixel.
Definition at line 117 of file nvmedia_image.h.
enum NvMediaRawPixelOrder |
Pixel order in a raw image.
Enumerator | |
---|---|
NVMEDIA_RAW_PIXEL_ORDER_RGGB |
RGGB order. |
NVMEDIA_RAW_PIXEL_ORDER_BGGR |
BGGR order. |
NVMEDIA_RAW_PIXEL_ORDER_GRBG |
GRBG order. |
NVMEDIA_RAW_PIXEL_ORDER_GBRG |
GBRG order. |
Definition at line 135 of file nvmedia_image.h.
NvMediaImage* NvMediaImageCreateNew | ( | NvMediaDevice * | device, |
NvMediaSurfaceType | type, | ||
NvMediaSurfAllocAttr * | attrs, | ||
uint32_t | numAttrs, | ||
uint32_t | flags | ||
) |
Allocates an image object.
Upon creation, the contents are in an undefined state.
[in] | device | The NvMediaDevice. |
[in] | type | Surface format type obtained from NvMediaSurfaceFormatGetType API. |
[in] | attrs | An array of surface alloc attributes for surface creation. |
[in] | numAttrs | Number of attributes in the array. |
[in] | flags | Flags for module hint (used in future). |
void NvMediaImageDestroy | ( | NvMediaImage * | image | ) |
Destroys an image object that was created by NvMediaImageCreateNew.
[in] | image | The image to destroy. |
NvMediaStatus NvMediaImageGetVersion | ( | NvMediaVersion * | version | ) |
Gets the version for the NvMedia Image library.
[in] | version | A pointer to a NvMediaVersion structure of the client. |