FFmpeg
Data Fields
AVOpenCLFrameDescriptor Struct Reference

OpenCL frame descriptor for pool allocation. More...

#include <hwcontext_opencl.h>

Data Fields

int nb_planes
 Number of planes in the frame. More...
 
cl_mem planes [AV_NUM_DATA_POINTERS]
 OpenCL image2d objects for each plane of the frame. More...
 

Detailed Description

OpenCL frame descriptor for pool allocation.

In user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs with the data pointer pointing at an object of this type describing the planes of the frame.

Definition at line 47 of file hwcontext_opencl.h.

Field Documentation

int AVOpenCLFrameDescriptor::nb_planes

Number of planes in the frame.

Definition at line 51 of file hwcontext_opencl.h.

Referenced by opencl_frames_uninit(), opencl_get_buffer(), opencl_mem_flags_for_mapping(), opencl_pool_alloc(), and opencl_pool_free().

cl_mem AVOpenCLFrameDescriptor::planes[AV_NUM_DATA_POINTERS]

OpenCL image2d objects for each plane of the frame.

Definition at line 55 of file hwcontext_opencl.h.

Referenced by opencl_frames_uninit(), opencl_get_buffer(), opencl_mem_flags_for_mapping(), opencl_pool_alloc(), and opencl_pool_free().


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