NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NvMediaVideoSurfaceMap Struct Reference

Detailed Description

A handle representing a video surface map.

Corresponding members of this structure are filled by NvMediaVideoSurfaceLock. For different surface types different members are filled as described here:

Surface type Filled members
NVM_SURF_FMT_SET_ATTR_YUV(attr, YUV, 420/422/444, PACKED/SEMI-PLANAR/PLANAR, 8, PL/BL) lumaWidth, lumaHeight, pY, pitchY, pU, pitchU, pV, pitchV
NVM_SURF_FMT_SET_ATTR_YUV(attr, YUYV, 422, PACKED, 8, PL) lumaWidth, lumaHeight, pY, pitchY
Y refer to YUYV. *
NVM_SURF_FMT_SET_ATTR_RGBA(attr, RGBA, UINT, 8, PL/BL) lumaWidth, lumaHeight, pRGBA, pitchRGBA

Definition at line 95 of file nvmedia_video.h.

Data Fields

uint32_t lumaWidth
 Surface width in luma pixels. More...
 
uint32_t lumaHeight
 Surface height in luma pixels. More...
 
unsigned char * pY
 Y surface pointer. More...
 
uint32_t pitchY
 Y surface pitch. More...
 
unsigned char * pU
 U surface pointer. More...
 
uint32_t pitchU
 U surface pitch. More...
 
unsigned char * pV
 V surface pointer. More...
 
uint32_t pitchV
 V surface pitch. More...
 
unsigned char * pY2
 Y2 surface pointer. More...
 
uint32_t pitchY2
 Y2 surface pitch. More...
 
unsigned char * pU2
 U2 surface pointer. More...
 
uint32_t pitchU2
 U2 surface pitch. More...
 
unsigned char * pV2
 V2 surface pointer. More...
 
uint32_t pitchV2
 V2 surface pitch. More...
 
unsigned char * pRGBA
 RGBA surface pointer. More...
 
uint32_t pitchRGBA
 RGBA surface pitch. More...
 

Field Documentation

uint32_t NvMediaVideoSurfaceMap::lumaHeight

Surface height in luma pixels.

Definition at line 99 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::lumaWidth

Surface width in luma pixels.

Definition at line 97 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchRGBA

RGBA surface pitch.

Definition at line 127 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchU

U surface pitch.

Definition at line 107 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchU2

U2 surface pitch.

Definition at line 119 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchV

V surface pitch.

Definition at line 111 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchV2

V2 surface pitch.

Definition at line 123 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchY

Y surface pitch.

Definition at line 103 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchY2

Y2 surface pitch.

Definition at line 115 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pRGBA

RGBA surface pointer.

Definition at line 125 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pU

U surface pointer.

Definition at line 105 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pU2

U2 surface pointer.

Definition at line 117 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pV

V surface pointer.

Definition at line 109 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pV2

V2 surface pointer.

Definition at line 121 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pY

Y surface pointer.

Definition at line 101 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pY2

Y2 surface pointer.

Definition at line 113 of file nvmedia_video.h.


The documentation for this struct was generated from the following file: