![]() |
NVIDIA DRIVE 5.0 Linux SDK API Reference5.0.10.3 Release |
Displays NvMediaImage type surfaces.
Data Structures | |
struct | NvMediaIDP |
Image display object created by NvMediaIDPCreate. More... | |
struct | NvMediaIDPPreferences |
Sets the preferences for the image display creation. More... | |
struct | NvMediaIDPDeviceParams |
Device parameters returned by NvMediaIDPQuery function. More... | |
Macros | |
#define | NVMEDIA_IDP_VERSION_MAJOR 2 |
Major Version number. More... | |
#define | NVMEDIA_IDP_VERSION_MINOR 0 |
Minor Version number. More... | |
Functions | |
NvMediaStatus | NvMediaIDPGetVersion (NvMediaVersion *version) |
Gets the version compatibility for the NvMedia IDP library. More... | |
NvMediaIDP * | NvMediaIDPCreate (uint32_t displayId, uint32_t windowId, NvMediaIDPPreferences *displayPreference, NvMediaBool alreadyCreated) |
Creates an image display object. More... | |
void | NvMediaIDPDestroy (NvMediaIDP *idp) |
Destroy an image display object created by NvMediaIDPCreate. More... | |
NvMediaStatus | NvMediaIDPSetAttributes (NvMediaIDP *idp, uint32_t attributeMask, NvMediaDispAttributes *attributes) |
Set NvMediaIDP attributes. More... | |
NvMediaStatus | NvMediaIDPQuery (int32_t *displayDevices, NvMediaIDPDeviceParams *displayParams) |
Queries the display system and returns the parameters of all display devices. More... | |
NvMediaStatus | NvMediaIDPFlip (NvMediaIDP *idp, NvMediaImage *image, NvMediaRect *srcRect, NvMediaRect *dstRect, NvMediaImage **releaseList, NvMediaTime *timeStamp) |
Displays an image on the display device. More... | |
#define NVMEDIA_IDP_VERSION_MAJOR 2 |
Major Version number.
Definition at line 36 of file nvmedia_idp.h.
#define NVMEDIA_IDP_VERSION_MINOR 0 |
Minor Version number.
Definition at line 38 of file nvmedia_idp.h.
NvMediaIDP* NvMediaIDPCreate | ( | uint32_t | displayId, |
uint32_t | windowId, | ||
NvMediaIDPPreferences * | displayPreference, | ||
NvMediaBool | alreadyCreated | ||
) |
Creates an image display object.
[in] | displayId | Display id (head) of the device. |
[in] | windowId | Specifies the h/w overlay window to access. ex: (windowId = 0) == (Overlay Window A). Valid values are 0 (A), 1 (B), 2 (C). |
[in] | displayPreference | Desired display parameters. To use defaults set it to NULL. |
[in] | alreadyCreated | Set to NVMEDIA_TRUE if the dislpay is already created (initialized) by another application. In this case NvMedia is not going to create a new one just reuse it. |
void NvMediaIDPDestroy | ( | NvMediaIDP * | idp | ) |
Destroy an image display object created by NvMediaIDPCreate.
[in] | idp | The display to be destroyed. |
NvMediaStatus NvMediaIDPFlip | ( | NvMediaIDP * | idp, |
NvMediaImage * | image, | ||
NvMediaRect * | srcRect, | ||
NvMediaRect * | dstRect, | ||
NvMediaImage ** | releaseList, | ||
NvMediaTime * | timeStamp | ||
) |
Displays an image on the display device.
[in] | idp | The display device object. |
[in] | image | The image to be displayed. |
[in] | srcRect | Source rectangle. If NULL, a rectangle of the full size of the NvMediaImage is implied. |
[in] | dstRect | Destination rectangle on the display. If NULL, a rectangle of the full size of the display device is implied. Note: Scaling is not supported for RGB type images and dstRect acts as a crop rectangle. |
[in] | releaseList | Points to an array of NvMediaImage pointers filled by this function and terminated with NULL. When NvMediaIDPFlip function is called it might need to use some of the input images for a longer time depending on the pipelining model. When the images are no longer needed they are released using this list. It is the application responsibility to allocate the memory for the list. The maximum size of the list is 2 including the one for the NULL terminator. |
[in] | timeStamp | Determines when the image is going to be displayed. This is a pointer to the time structure. NULL means the image is displayed as soon as possible. |
NvMediaStatus NvMediaIDPGetVersion | ( | NvMediaVersion * | version | ) |
Gets the version compatibility for the NvMedia IDP library.
[in] | version | A pointer to a NvMediaVersion structure of the client. |
NvMediaStatus NvMediaIDPQuery | ( | int32_t * | displayDevices, |
NvMediaIDPDeviceParams * | displayParams | ||
) |
Queries the display system and returns the parameters of all display devices.
If displayParams is NULL then only displayDevices is returned and this way the client can query the number of devices, allocate memory for the descriptors and call this function again with the properly allocated displayParams buffer.
[out] | displayDevices | Set by the function to the number of display devices. |
[out] | displayParams | This parameters is used as an array and the function fills it up with displayDevices number of entries. It is the client's responsibility to allocate sufficient memory. If NULL no data is returned. |
NvMediaStatus NvMediaIDPSetAttributes | ( | NvMediaIDP * | idp, |
uint32_t | attributeMask, | ||
NvMediaDispAttributes * | attributes | ||
) |
Set NvMediaIDP attributes.
[in] | idp | Image display object |
[in] | attributeMask | Determines which attributes are set. The value can be any combination of the binary OR of the following attributes: NVMEDIA_DISP_ATTR_BRIGHTNESS NVMEDIA_DISP_ATTR_CONTRAST NVMEDIA_DISP_ATTR_SATURATION NVMEDIA_DISP_ATTR_HUE NVMEDIA_DISP_ATTR_COLOR_STANDARD NVMEDIA_DISP_ATTR_LIMITED_RGB NVMEDIA_DISP_ATTR_COMPOSITION NVMEDIA_DISP_ATTR_SET_DEPTH |
[in] | attributes | A pointer to a structure that holds all the attributes but only those are used which are indicated in the attributeMask. |