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
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
NvMediaSurfaceType_Video_420
NvMediaSurfaceType_Video_422
NvMediaSurfaceType_Video_444
lumaWidth, lumaHeight, pY, pitchY, pU, pitchU, pV, pitchV
NvMediaSurfaceType_VideoCapture_422 lumaWidth, lumaHeight, pY, pitchY, pU, pitchU, pV, pitchV, pY2, pitchY2, pU2, pitchU2, pV2, pitchV2
Member names ending with 2 refer to the second field of that surface.
NvMediaSurfaceType_VideoCapture_YUYV_422 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 100 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 104 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::lumaWidth

Surface width in luma pixels.

Definition at line 102 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchRGBA

RGBA surface pitch.

Definition at line 132 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchU

U surface pitch.

Definition at line 112 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchU2

U2 surface pitch.

Definition at line 124 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchV

V surface pitch.

Definition at line 116 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchV2

V2 surface pitch.

Definition at line 128 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchY

Y surface pitch.

Definition at line 108 of file nvmedia_video.h.

uint32_t NvMediaVideoSurfaceMap::pitchY2

Y2 surface pitch.

Definition at line 120 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pRGBA

RGBA surface pointer.

Definition at line 130 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pU

U surface pointer.

Definition at line 110 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pU2

U2 surface pointer.

Definition at line 122 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pV

V surface pointer.

Definition at line 114 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pV2

V2 surface pointer.

Definition at line 126 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pY

Y surface pointer.

Definition at line 106 of file nvmedia_video.h.

unsigned char* NvMediaVideoSurfaceMap::pY2

Y2 surface pointer.

Definition at line 118 of file nvmedia_video.h.


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