FFmpeg
Classes | Typedefs
hwcontext_opencl.h File Reference

API-specific header for AV_HWDEVICE_TYPE_OPENCL. More...

#include <CL/cl.h>
#include "frame.h"

Go to the source code of this file.

Classes

struct  AVOpenCLFrameDescriptor
 OpenCL frame descriptor for pool allocation. More...
 
struct  AVOpenCLDeviceContext
 OpenCL device details. More...
 
struct  AVOpenCLFramesContext
 OpenCL-specific data associated with a frame pool. More...
 

Typedefs

typedef struct AVOpenCLFrameDescriptor AVOpenCLFrameDescriptor
 OpenCL frame descriptor for pool allocation. More...
 
typedef struct AVOpenCLDeviceContext AVOpenCLDeviceContext
 OpenCL device details. More...
 
typedef struct AVOpenCLFramesContext AVOpenCLFramesContext
 OpenCL-specific data associated with a frame pool. More...
 

Detailed Description

API-specific header for AV_HWDEVICE_TYPE_OPENCL.

Pools allocated internally are always dynamic, and are primarily intended to be used in OpenCL-only cases. If interoperation is required, it is typically required to allocate frames in the other API and then map the frames context to OpenCL with av_hwframe_ctx_create_derived().

Typedef Documentation

§ AVOpenCLDeviceContext

OpenCL device details.

Allocated as AVHWDeviceContext.hwctx

§ AVOpenCLFrameDescriptor

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.

§ AVOpenCLFramesContext

OpenCL-specific data associated with a frame pool.

Allocated as AVHWFramesContext.hwctx.