FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
hwcontext_internal.h File Reference
#include <stddef.h>
#include "buffer.h"
#include "hwcontext.h"
#include "frame.h"
#include "pixfmt.h"

Go to the source code of this file.

Data Structures

struct  HWContextType
 
struct  AVHWDeviceInternal
 
struct  AVHWFramesInternal
 
struct  HWMapDescriptor
 

Functions

int ff_hwframe_map_create (AVBufferRef *hwframe_ref, AVFrame *dst, const AVFrame *src, void(*unmap)(AVHWFramesContext *ctx, HWMapDescriptor *hwmap), void *priv)
 
int ff_hwframe_map_replace (AVFrame *dst, const AVFrame *src)
 Replace the current hwmap of dst with the one from src, used for indirect mappings like VAAPI->(DRM)->OpenCL/Vulkan where a direct interop is missing. More...
 

Variables

const HWContextType ff_hwcontext_type_cuda
 
const HWContextType ff_hwcontext_type_d3d11va
 
const HWContextType ff_hwcontext_type_drm
 
const HWContextType ff_hwcontext_type_dxva2
 
const HWContextType ff_hwcontext_type_opencl
 
const HWContextType ff_hwcontext_type_qsv
 
const HWContextType ff_hwcontext_type_vaapi
 
const HWContextType ff_hwcontext_type_vdpau
 
const HWContextType ff_hwcontext_type_videotoolbox
 
const HWContextType ff_hwcontext_type_mediacodec
 

Function Documentation

int ff_hwframe_map_create ( AVBufferRef hwframe_ref,
AVFrame dst,
const AVFrame src,
void(*)(AVHWFramesContext *ctx, HWMapDescriptor *hwmap)  unmap,
void priv 
)
int ff_hwframe_map_replace ( AVFrame dst,
const AVFrame src 
)

Replace the current hwmap of dst with the one from src, used for indirect mappings like VAAPI->(DRM)->OpenCL/Vulkan where a direct interop is missing.

Definition at line 874 of file hwcontext.c.

Variable Documentation

const HWContextType ff_hwcontext_type_cuda

Definition at line 375 of file hwcontext_cuda.c.

const HWContextType ff_hwcontext_type_d3d11va

Definition at line 595 of file hwcontext_d3d11va.c.

const HWContextType ff_hwcontext_type_drm

Definition at line 270 of file hwcontext_drm.c.

const HWContextType ff_hwcontext_type_dxva2

Definition at line 576 of file hwcontext_dxva2.c.

const HWContextType ff_hwcontext_type_opencl

Definition at line 2908 of file hwcontext_opencl.c.

const HWContextType ff_hwcontext_type_qsv

Definition at line 1244 of file hwcontext_qsv.c.

const HWContextType ff_hwcontext_type_vaapi

Definition at line 1574 of file hwcontext_vaapi.c.

const HWContextType ff_hwcontext_type_vdpau

Definition at line 480 of file hwcontext_vdpau.c.

const HWContextType ff_hwcontext_type_videotoolbox

Definition at line 232 of file hwcontext_videotoolbox.c.

const HWContextType ff_hwcontext_type_mediacodec

Definition at line 38 of file hwcontext_mediacodec.c.