NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces 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
 Holds the additional parameters for a blit. More...
 
struct  NvMedia2DBlitParametersOut
 Holds additional values returned from a blit. More...
 

Macros

#define NVMEDIA_2D_VERSION_MAJOR   2
 Major Version number. More...
 
#define NVMEDIA_2D_VERSION_MINOR   2
 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
}
 Specifies filtering mode used for stretched blits. More...
 
enum  NvMedia2DBlitFlags { NVMEDIA_2D_BLIT_FLAG_RETURN_CRC = (1u << 0) }
 Specifies 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)
}
 Specifies bit-mask for NvMedia2DBlitParameters::validFields. More...
 

Functions

NvMediaStatus NvMedia2DGetVersion (NvMediaVersion *version)
 Returns the version information for the NvMedia 2D library. More...
 
NvMedia2DNvMedia2DCreate (NvMediaDevice *device)
 Creates a 2D object. More...
 
void NvMedia2DDestroy (NvMedia2D *i2d)
 Destroys a 2D object. More...
 
NvMediaStatus NvMedia2DBlitEx (NvMedia2D *i2d, NvMediaImage *dstSurface, const NvMediaRect *dstRect, NvMediaImage *srcSurface, const NvMediaRect *srcRect, const NvMedia2DBlitParameters *params, NvMedia2DBlitParametersOut *paramsOut)
 Performs a 2D blit operation with supplementary return values. More...
 
NvMediaStatus NvMedia2DCopyPlane (NvMediaImage *dstSurface, uint32_t dstPlane, NvMediaImage *srcSurface, uint32_t srcPlane) __NVM_DEPRECATED_MSG__("Use NvMedia2DCopyPlaneNew API")
 Copies a plane of a YUV image to another YUV image. More...
 
NvMediaStatus NvMedia2DCopyPlaneNew (NvMedia2D *i2d, NvMediaImage *dstSurface, uint32_t dstPlane, NvMediaImage *srcSurface, uint32_t srcPlane)
 Copies a plane of a YUV image to another YUV image. More...
 
NvMediaStatus NvMedia2DWeave (NvMediaDevice *device, NvMediaImage *imageOdd, NvMediaImage *imageEven, NvMediaImage *outImage) __NVM_DEPRECATED_MSG__("Use NvMedia2DWeaveNew() API")
 Performs an NvMedia2D weave operation on NvMedia images. More...
 
NvMediaStatus NvMedia2DWeaveNew (NvMedia2D *i2d, NvMediaImage *imageOdd, NvMediaImage *imageEven, NvMediaImage *outImage)
 Performs an NvMedia2D weave operation on NvMedia images. More...