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 File Reference

Detailed Description

NVIDIA Media Interface: 2D Processing Control

Description: This file contains the Image 2D Processing API.

Definition in file nvmedia_2d.h.

Go to the source code of this file.

Data Structures

struct  NvMedia2DBlitParameters
 Struct for setting the additional parameters for a blit. More...
 
struct  NvMedia2DBlitParametersOut
 Struct for returning additional values from a blit. More...
 

Macros

#define NVMEDIA_2D_VERSION_MAJOR   2
 Major Version number. More...
 
#define NVMEDIA_2D_VERSION_MINOR   1
 Minor Version number. More...
 

Typedefs

typedef void NvMedia2D
 An opaque handle representing an NvMedia2D object. More...
 

Enumerations

enum  NvMedia2DStretchFilter {
  NVMEDIA_2D_STRETCH_FILTER_OFF = 0x1,
  NVMEDIA_2D_STRETCH_FILTER_LOW,
  NVMEDIA_2D_STRETCH_FILTER_MEDIUM,
  NVMEDIA_2D_STRETCH_FILTER_HIGH
}
 Filtering mode used for stretched blits. More...
 
enum  NvMedia2DBlitFlags { NVMEDIA_2D_BLIT_FLAG_RETURN_CRC = (1u << 0) }
 Operation flags that affect blit behavior. More...
 
enum  NvMedia2DBlitParamField {
  NVMEDIA_2D_BLIT_PARAMS_FILTER = (1u << 0),
  NVMEDIA_2D_BLIT_PARAMS_FLAGS = (1u << 1),
  NVMEDIA_2D_BLIT_PARAMS_DST_TRANSFORM = (1u << 2),
  NVMEDIA_2D_BLIT_PARAMS_COLOR_STD = (1u << 3)
}
 Bit-mask for validFields in NvMedia2DBlitParameters. More...
 

Functions

NvMediaStatus NvMedia2DGetVersion (NvMediaVersion *version)
 Returns the version information for the NvMedia 2D library. More...
 
NvMedia2DNvMedia2DCreate (NvMediaDevice *device)
 Create a 2D object. More...
 
void NvMedia2DDestroy (NvMedia2D *i2d)
 Destroy a 2D object. More...
 
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. More...
 
NvMediaStatus NvMedia2DCopyPlane (NvMediaImage *dstSurface, uint32_t dstPlane, NvMediaImage *srcSurface, uint32_t srcPlane)
 Copies a plane of a YUV image to another YUV image. More...