NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Image 2D Processing

Detailed Description

The Image 2D Processing API encompasses all NvMedia 2D image processing related functionality.

Data Structures

struct  NvMedia2DBlitParameters
 Holds the additional parameters for a blit. More...
 
struct  NvMedia2DBlitParametersOut
 Holds additional values returned from a blit. More...
 

Modules

 Blits
 Blit functions define valid parameters for a blit.
 
 Surface Filtering
 

Macros

#define NVMEDIA_2D_VERSION_MAJOR   3
 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...
 

Functions

NvMediaStatus NvMedia2DGetVersion (NvMediaVersion *version)
 Returns the version information for the NvMedia 2D library. More...
 
NvMediaStatus NvMedia2DWeaveNew (NvMedia2D *i2d, NvMediaImage *imageOdd, NvMediaImage *imageEven, NvMediaImage *outImage)
 Performs an NvMedia2D weave operation on NvMedia images. More...
 

Macro Definition Documentation

#define NVMEDIA_2D_VERSION_MAJOR   3

Major Version number.

Definition at line 37 of file nvmedia_2d.h.

#define NVMEDIA_2D_VERSION_MINOR   1

Minor Version number.

Definition at line 39 of file nvmedia_2d.h.

Typedef Documentation

typedef void NvMedia2D

An opaque handle representing an NvMedia2D object.

Definition at line 145 of file nvmedia_2d.h.

Function Documentation

NvMediaStatus NvMedia2DGetVersion ( NvMediaVersion version)

Returns the version information for the NvMedia 2D library.

Parameters
[out]versionA pointer to a NvMediaVersion structure filled by the 2D library.
Returns
NvMediaStatus, the completion status of the operation: NVMEDIA_STATUS_OK if successful, or NVMEDIA_STATUS_BAD_PARAMETER if the pointer is invalid.
NvMediaStatus NvMedia2DWeaveNew ( NvMedia2D i2d,
NvMediaImage imageOdd,
NvMediaImage imageEven,
NvMediaImage outImage 
)

Performs an NvMedia2D weave operation on NvMedia images.

2D weave interface takes frames containing odd and even lines as input. The destination frame is formed by interleaving odd and even lines.

The input frames must have the same format, which must be RAW8 or RGBA. The output frame format is always RGBA; the output frame has the same width as each input frame, and twice the height.

Parameters
[in]i2d: NvMedia 2D device handle.
[in]imageOddA pointer to an NvMedia image representing odd lines.
[in]imageEvenA pointer to an NvMedia image representing even lines.
[out]outImageA pointer to an NvMedia image containing weave output.
Returns
NvMediaStatus, the completion status of operation: