NVIDIA DRIVE 5.0 Linux SDK API Reference

5.0.5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_2d.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2017, 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_2D_H
16 #define _NVMEDIA_2D_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"
36 #define NVMEDIA_2D_VERSION_MAJOR 2
37 
38 #define NVMEDIA_2D_VERSION_MINOR 1
39 
40 
46 typedef enum
47 {
57 
61 typedef enum
62 {
66 
67 /*---------------------------------------------------------*/
77 typedef enum
78 {
88 
96 typedef struct
97 {
104  uint32_t validFields;
108  uint32_t flags;
114 
120 typedef struct
121 {
123  uint32_t crc;
125 
137  NvMediaVersion *version
138 );
139 
143 typedef void NvMedia2D;
144 
151 NvMedia2D *
153  NvMediaDevice *device
154 );
155 
162 void
164  NvMedia2D *i2d
165 );
166 
218  NvMedia2D *i2d,
219  NvMediaImage *dstSurface,
220  const NvMediaRect *dstRect,
221  NvMediaImage *srcSurface,
222  const NvMediaRect *srcRect,
223  const NvMedia2DBlitParameters *params,
224  NvMedia2DBlitParametersOut *paramsOut
225 );
226 
246  NvMediaImage *dstSurface,
247  uint32_t dstPlane,
248  NvMediaImage *srcSurface,
249  uint32_t srcPlane
250 );
251 
252 /*
253  * \defgroup history_nvmedia_2d History
254  * Provides change history for the NvMedia 2D API.
255  *
256  * \section history_nvmedia_2d Version History
257  *
258  * <b> Version 1.1 </b> Febraury 1, 2016
259  * - Initial release
260  *
261  * <b> Version 1.2 </b> May 11, 2016
262  * - Added \ref NvMedia2DCheckVersion API
263  *
264  * <b> Version 1.3 </b> May 5, 2017
265  * - Removed compositing, blending and alpha related defines and structures
266  *
267  * <b> Version 2.0 </b> May 11, 2017
268  * - Deprecated NvMedia2DBlit API
269  * - Deprecated NvMedia2DCheckVersion API
270  * - Deprecated NvMedia2DColorStandard, NvMedia2DColorRange and
271  * NvMedia2DColorMatrix types
272  * - Added \ref NvMedia2DGetVersion API
273  *
274  * <b> Version 2.1 </b> May 17, 2017
275  * - Moved transformation to nvmedia_common.h
276  * - Renamed NvMedia2DTransform to \ref NvMediaTransform
277  */
280 #ifdef __cplusplus
281 }; /* extern "C" */
282 #endif
283 
284 #endif /* _NVMEDIA_2D_H */
Struct for setting the additional parameters for a blit.
Definition: nvmedia_2d.h:96
A handle representing image objects.
Definition: nvmedia_image.h:75
Enable the best quality filtering.
Definition: nvmedia_2d.h:55
NvMediaTransform dstTransform
Destination transformation when NVMEDIA_2D_BLIT_PARAMS_DST_TRANSFORM is set.
Definition: nvmedia_2d.h:110
NvMedia2DStretchFilter filter
Filter mode.
Definition: nvmedia_2d.h:106
NvMediaStatus NvMedia2DCopyPlane(NvMediaImage *dstSurface, uint32_t dstPlane, NvMediaImage *srcSurface, uint32_t srcPlane)
Copies a plane of a YUV image to another YUV image.
NVIDIA Media Interface: Image Processing
NvMediaStatus NvMedia2DBlitEx(NvMedia2D *i2d, NvMediaImage *dstSurface, const NvMediaRect *dstRect, NvMediaImage *srcSurface, const NvMediaRect *srcRect, const NvMedia2DBlitParameters *params, NvMedia2DBlitParametersOut *paramsOut)
Perform a 2D blit operation with supplementary return values.
uint32_t crc
Returned CRC value.
Definition: nvmedia_2d.h:123
Holds NvMedia Version information.
Definition: nvmedia_core.h:231
Compute and return CRC value.
Definition: nvmedia_2d.h:64
NVIDIA Media Interface: Common Types for Video/Image Encode/Decode
NvMediaColorStandard colorStandard
Color space conversion standard when NVMEDIA_2D_BLIT_PARAMS_COLOR_STD is set.
Definition: nvmedia_2d.h:112
NvMediaColorStandard
Defines color standards.
Definition: nvmedia_core.h:112
void NvMedia2DDestroy(NvMedia2D *i2d)
Destroy a 2D object.
Enable use of blit flags.
Definition: nvmedia_2d.h:82
Disable the horizontal and vertical filtering.
Definition: nvmedia_2d.h:49
Enable use of color space conversion standard.
Definition: nvmedia_2d.h:86
NVIDIA Media Interface: Core
NvMediaStatus
The set of all possible error codes.
Definition: nvmedia_core.h:178
NvMediaTransform
Transformations.
NvMediaStatus NvMedia2DGetVersion(NvMediaVersion *version)
Returns the version information for the NvMedia 2D library.
uint32_t flags
Flags to be used when NVMEDIA_2D_BLIT_PARAMS_FLAGS is set.
Definition: nvmedia_2d.h:108
NvMedia2DStretchFilter
Filtering mode used for stretched blits.
Definition: nvmedia_2d.h:46
NvMedia2DBlitFlags
Operation flags that affect blit behavior.
Definition: nvmedia_2d.h:61
NvMedia2DBlitParamField
Bit-mask for validFields in NvMedia2DBlitParameters.
Definition: nvmedia_2d.h:77
Holds a rectangular region of a surface.
Definition: nvmedia_core.h:135
Struct for returning additional values from a blit.
Definition: nvmedia_2d.h:120
NvMedia2D * NvMedia2DCreate(NvMediaDevice *device)
Create a 2D object.
Enable low quality filtering.
Definition: nvmedia_2d.h:51
void NvMediaDevice
An opaque handle representing a NvMediaDevice object.
Definition: nvmedia_core.h:284
void NvMedia2D
An opaque handle representing an NvMedia2D object.
Definition: nvmedia_2d.h:143
Enable use of stretch filter.
Definition: nvmedia_2d.h:80
uint32_t validFields
Valid fields in this structure.
Definition: nvmedia_2d.h:104
Enable use of destination transform.
Definition: nvmedia_2d.h:84
Enable media quality filtering.
Definition: nvmedia_2d.h:53