7.10. cudaEglFrame 结构体参考

[CUDA运行时使用的数据类型]

CUDA EGLFrame 描述符 - 定义EGL单帧的结构体。

每个帧可能包含一个或多个平面,具体取决于表面是否为多平面。EGLFrame的每个平面由cudaEglPlaneDesc表示,其定义为:

‎ typedef struct cudaEglPlaneDesc_st {
           unsigned int width;
           unsigned int height;
           unsigned int depth;
           unsigned int pitch;
           unsigned int numChannels;
           struct cudaChannelFormatDesc channelDesc;
           unsigned int reserved[4];
       } cudaEglPlaneDesc;

公共变量

cudaEglColorFormat eglColorFormat
cudaEglFrameType frameType
cudaArray_t pArray[CUDA_EGL_MAX_PLANES]
struct cudaPitchedPtr pPitch[CUDA_EGL_MAX_PLANES]
unsigned int  planeCount
struct cudaEglPlaneDesc planeDesc[CUDA_EGL_MAX_PLANES]

变量

cudaEglColorFormatcudaEglFrame::eglColorFormat [inherited]

CUDA EGL 颜色格式

cudaEglFrameTypecudaEglFrame::frameType [inherited]

数组或音高

cudaArray_tcudaEglFrame::pArray[CUDA_EGL_MAX_PLANES] [inherited]

对应于每个平面的CUDA数组

struct cudaPitchedPtrcudaEglFrame::pPitch[CUDA_EGL_MAX_PLANES] [inherited]

对应每个平面的指针数组

unsigned int cudaEglFrame::planeCount [inherited]

飞机数量

struct cudaEglPlaneDesccudaEglFrame::planeDesc[CUDA_EGL_MAX_PLANES] [inherited]

CUDA EGL 平面描述符 cudaEglPlaneDesc