NVIDIA DRIVE OS Linux SDK API Reference

5.1.6.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_idp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
15 #ifndef _NVMEDIA_IDP_H
16 #define _NVMEDIA_IDP_H
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include "nvmedia_core.h"
23 #include "nvmedia_common.h"
24 #include "nvmedia_image.h"
25 
36 #define NVMEDIA_IDP_VERSION_MAJOR 3
37 
38 #define NVMEDIA_IDP_VERSION_MINOR 0
39 
43 typedef struct {
45  uint32_t displayId;
47  uint32_t windowId;
49  uint32_t width;
51  uint32_t height;
53  float_t refreshRate;
54 } NvMediaIDP;
55 
61 typedef struct {
63  uint32_t width;
65  uint32_t height;
67  float_t refreshRate;
69 
73 typedef struct {
75  uint32_t displayId;
79  uint32_t width;
81  uint32_t height;
83  float_t refreshRate;
85 
97  NvMediaVersion *version
98 );
99 
112 NvMediaIDP *
114  uint32_t displayId,
115  uint32_t windowId,
116  NvMediaIDPPreferences *displayPreference,
117  NvMediaBool alreadyCreated
118 );
119 
125 void
127  NvMediaIDP *idp
128 );
129 
148  NvMediaIDP *idp,
149  uint32_t attributeMask,
150  NvMediaDispAttributes *attributes
151 );
152 
169  int32_t *displayDevices,
170  NvMediaIDPDeviceParams *displayParams
171 );
172 
198  NvMediaIDP *idp,
199  NvMediaImage *image,
200  NvMediaRect *srcRect,
201  NvMediaRect *dstRect,
202  NvMediaImage **releaseList,
203  NvMediaTime *timeStamp
204 );
205 
206 /*
207  * \defgroup history_nvmedia_idp History
208  * Provides change history for the NvMedia IDP API.
209  *
210  * \section history_nvmedia_idp Version History
211  *
212  * <b> Version 1.1 </b> September 24, 2015
213  * - Initial release
214  *
215  * <b> Version 1.2 </b> May 11, 2016
216  * - Added \ref NvMediaIDPCheckVersion API
217  *
218  * <b> Version 2.0 </b> May 12, 2017
219  * - Added \ref NvMediaIDPGetVersion API to get the version of NvMedia image display library
220  * - NvMediaIDPCheckVersion is deprecated. Use NvMediaIDPGetVersion() instead
221  * - Remove NvMediaIDPDeviceType
222  * - Remove imageType as input parameter of \ref NvMediaIDPCreate
223  * - Replace NvMediaIDPCompositionModes with \ref NvMediaDispCompMode
224  * - Replace NvMediaIDPAttributes with \ref NvMediaDispAttributes
225  * - Deprecated NvMediaIDPSetDepth, use NvMediaIDPSetAttributes with
226  * NVMEDIA_DISP_ATTR_SET_DEPTH instead
227  * - All NvMedia data types are moved to standard data types
228  *
229  * <b> Version 3.0 </b> February 6, 2019
230  * - Deprecated brightness, hue, saturation, contrast, limitedRGB and
231  * colorStandard support from \ref NvMediaIDPSetAttributes.
232  *
233  */
236 #ifdef __cplusplus
237 }; /* extern "C" */
238 #endif
239 
240 #endif /* _NVMEDIA_IDP_H */
Holds a handle representing image objects.
Definition: nvmedia_image.h:69
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
Definition: nvmedia_core.h:80
NvMediaStatus NvMediaIDPSetAttributes(NvMediaIDP *idp, uint32_t attributeMask, NvMediaDispAttributes *attributes)
Set NvMediaIDP attributes.
NvMediaStatus NvMediaIDPGetVersion(NvMediaVersion *version)
Gets the version compatibility for the NvMedia IDP library.
uint32_t windowId
Display window Id.
Definition: nvmedia_idp.h:47
NVIDIA Media Interface: Image Processing
NvMediaIDP * NvMediaIDPCreate(uint32_t displayId, uint32_t windowId, NvMediaIDPPreferences *displayPreference, NvMediaBool alreadyCreated)
Creates an image display object.
uint32_t displayId
Display device (head) Id.
Definition: nvmedia_idp.h:45
struct timespec NvMediaTime
Holds the media time (timespec as defined by the POSIX specification).
Definition: nvmedia_core.h:85
Holds NvMedia version information.
Definition: nvmedia_core.h:226
NVIDIA Media Interface: Common Types for Video/Image Encode/Decode
float_t refreshRate
Display refresh rate in Hertz.
Definition: nvmedia_idp.h:67
Device parameters returned by NvMediaIDPQuery function.
Definition: nvmedia_idp.h:73
NVIDIA Media Interface: Core
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:169
uint32_t width
Display width.
Definition: nvmedia_idp.h:79
uint32_t height
Display height.
Definition: nvmedia_idp.h:65
Holds a rectangular region of a surface.
Definition: nvmedia_core.h:133
uint32_t displayId
Display device Id.
Definition: nvmedia_idp.h:75
NvMediaStatus NvMediaIDPQuery(int32_t *displayDevices, NvMediaIDPDeviceParams *displayParams)
Queries the display system and returns the parameters of all display devices.
Sets the preferences for the image display creation.
Definition: nvmedia_idp.h:61
uint32_t width
Display width.
Definition: nvmedia_idp.h:63
Image display object created by NvMediaIDPCreate.
Definition: nvmedia_idp.h:43
Holds NvMedia display attributes.
float_t refreshRate
Display refresh rate in Hertz.
Definition: nvmedia_idp.h:83
void NvMediaIDPDestroy(NvMediaIDP *idp)
Destroy an image display object created by NvMediaIDPCreate.
uint32_t height
Display height.
Definition: nvmedia_idp.h:81
NvMediaBool enabled
Set to NVMEDIA_TRUE if the device is already enabled (initialized) by the system. ...
Definition: nvmedia_idp.h:77
uint32_t height
Display height.
Definition: nvmedia_idp.h:51
float_t refreshRate
Display refresh rate in Hertz.
Definition: nvmedia_idp.h:53
NvMediaStatus NvMediaIDPFlip(NvMediaIDP *idp, NvMediaImage *image, NvMediaRect *srcRect, NvMediaRect *dstRect, NvMediaImage **releaseList, NvMediaTime *timeStamp)
Displays an image on the display device.
uint32_t width
Display width.
Definition: nvmedia_idp.h:49