FFmpeg
Loading...
Searching...
No Matches
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  FFHWFramesContext
 
struct  HWMapDescriptor
 

Functions

static FFHWFramesContextffhwframesctx (AVHWFramesContext *ctx)
 
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.
 

Variables

const HWContextType ff_hwcontext_type_cuda
 
const HWContextType ff_hwcontext_type_d3d11va
 
const HWContextType ff_hwcontext_type_d3d12va
 
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
 
const HWContextType ff_hwcontext_type_vulkan
 
const HWContextType ff_hwcontext_type_amf
 
const HWContextType ff_hwcontext_type_oh
 

Function Documentation

◆ ffhwframesctx()

◆ ff_hwframe_map_create()

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

◆ ff_hwframe_map_replace()

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 948 of file hwcontext.c.

Variable Documentation

◆ ff_hwcontext_type_cuda

const HWContextType ff_hwcontext_type_cuda
extern

Definition at line 932 of file hwcontext_cuda.c.

◆ ff_hwcontext_type_d3d11va

const HWContextType ff_hwcontext_type_d3d11va
extern

Definition at line 732 of file hwcontext_d3d11va.c.

◆ ff_hwcontext_type_d3d12va

const HWContextType ff_hwcontext_type_d3d12va
extern

Definition at line 777 of file hwcontext_d3d12va.c.

◆ ff_hwcontext_type_drm

const HWContextType ff_hwcontext_type_drm
extern

Definition at line 307 of file hwcontext_drm.c.

◆ ff_hwcontext_type_dxva2

const HWContextType ff_hwcontext_type_dxva2
extern

Definition at line 595 of file hwcontext_dxva2.c.

◆ ff_hwcontext_type_opencl

const HWContextType ff_hwcontext_type_opencl
extern

Definition at line 3045 of file hwcontext_opencl.c.

◆ ff_hwcontext_type_qsv

const HWContextType ff_hwcontext_type_qsv
extern

Definition at line 2621 of file hwcontext_qsv.c.

◆ ff_hwcontext_type_vaapi

const HWContextType ff_hwcontext_type_vaapi
extern

Definition at line 2080 of file hwcontext_vaapi.c.

◆ ff_hwcontext_type_vdpau

const HWContextType ff_hwcontext_type_vdpau
extern

Definition at line 513 of file hwcontext_vdpau.c.

◆ ff_hwcontext_type_videotoolbox

const HWContextType ff_hwcontext_type_videotoolbox
extern

Definition at line 840 of file hwcontext_videotoolbox.c.

◆ ff_hwcontext_type_mediacodec

const HWContextType ff_hwcontext_type_mediacodec
extern

Definition at line 107 of file hwcontext_mediacodec.c.

◆ ff_hwcontext_type_vulkan

const HWContextType ff_hwcontext_type_vulkan
extern

Definition at line 5219 of file hwcontext_vulkan.c.

◆ ff_hwcontext_type_amf

const HWContextType ff_hwcontext_type_amf
extern

Definition at line 929 of file hwcontext_amf.c.

◆ ff_hwcontext_type_oh

const HWContextType ff_hwcontext_type_oh
extern

Definition at line 38 of file hwcontext_oh.c.