FFmpeg
Loading...
Searching...
No Matches
hwconfig.h File Reference
#include "avcodec.h"
#include "hwaccels.h"

Go to the source code of this file.

Data Structures

struct  AVCodecHWConfigInternal
 

Macros

#define HW_CONFIG_HWACCEL(device, frames, ad_hoc, format, device_type_, name)
 
#define HW_CONFIG_INTERNAL(format)
 
#define HWACCEL_DXVA2(codec)
 
#define HWACCEL_D3D11VA2(codec)
 
#define HWACCEL_NVDEC(codec)
 
#define HWACCEL_NVDEC_CUARRAY(codec)
 
#define HWACCEL_VAAPI(codec)
 
#define HWACCEL_VDPAU(codec)
 
#define HWACCEL_VIDEOTOOLBOX(codec)
 
#define HWACCEL_VULKAN(codec)
 
#define HWACCEL_D3D11VA(codec)
 
#define HWACCEL_D3D12VA(codec)
 
#define HW_CONFIG_ENCODER(device, frames, ad_hoc, format, device_type_)
 
#define HW_CONFIG_ENCODER_DEVICE(format, device_type_)
 
#define HW_CONFIG_ENCODER_FRAMES(format, device_type_)
 

Functions

void ff_hwaccel_uninit (AVCodecContext *avctx)
 

Macro Definition Documentation

◆ HW_CONFIG_HWACCEL

#define HW_CONFIG_HWACCEL ( device,
frames,
ad_hoc,
format,
device_type_,
name )
Value:
.public = { \
.pix_fmt = AV_PIX_FMT_ ## format, \
.methods = (device ? AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX : 0) | \
.device_type = AV_HWDEVICE_TYPE_ ## device_type_, \
}, \
.hwaccel = &name, \
}
static const char *const format[]
Definition af_aiir.c:444
@ AV_CODEC_HW_CONFIG_METHOD_AD_HOC
The codec supports this format by some ad-hoc method.
Definition codec.h:311
@ AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX
The codec supports this format via the hw_frames_ctx interface.
Definition codec.h:295
@ AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
The codec supports this format via the hw_device_ctx interface.
Definition codec.h:282
const char * name
Definition qsvenc.c:142
static int frames
Definition movenc.c:67

Definition at line 42 of file hwconfig.h.

◆ HW_CONFIG_INTERNAL

#define HW_CONFIG_INTERNAL ( format)
Value:
.public = { \
.pix_fmt = AV_PIX_FMT_ ## format, \
.device_type = AV_HWDEVICE_TYPE_NONE, \
}, \
.hwaccel = NULL, \
}
#define NULL
Definition coverity.c:32
@ AV_CODEC_HW_CONFIG_METHOD_INTERNAL
The codec supports this format by some internal method.
Definition codec.h:302
@ AV_HWDEVICE_TYPE_NONE
Definition hwcontext.h:28

Definition at line 54 of file hwconfig.h.

◆ HWACCEL_DXVA2

#define HWACCEL_DXVA2 ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 1, DXVA2_VLD, DXVA2, ff_ ## codec ## _dxva2_hwaccel)
#define HW_CONFIG_HWACCEL(device, frames, ad_hoc, format, device_type_, name)
Definition hwconfig.h:42

Definition at line 64 of file hwconfig.h.

◆ HWACCEL_D3D11VA2

#define HWACCEL_D3D11VA2 ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 0, D3D11, D3D11VA, ff_ ## codec ## _d3d11va2_hwaccel)

Definition at line 66 of file hwconfig.h.

◆ HWACCEL_NVDEC

#define HWACCEL_NVDEC ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 0, CUDA, CUDA, ff_ ## codec ## _nvdec_hwaccel)

Definition at line 68 of file hwconfig.h.

◆ HWACCEL_NVDEC_CUARRAY

#define HWACCEL_NVDEC_CUARRAY ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 0, CUARRAY, CUDA, ff_ ## codec ## _nvdec_cuarray_hwaccel)

Definition at line 70 of file hwconfig.h.

◆ HWACCEL_VAAPI

#define HWACCEL_VAAPI ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 1, VAAPI, VAAPI, ff_ ## codec ## _vaapi_hwaccel)

Definition at line 72 of file hwconfig.h.

◆ HWACCEL_VDPAU

#define HWACCEL_VDPAU ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 1, VDPAU, VDPAU, ff_ ## codec ## _vdpau_hwaccel)

Definition at line 74 of file hwconfig.h.

◆ HWACCEL_VIDEOTOOLBOX

#define HWACCEL_VIDEOTOOLBOX ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 1, VIDEOTOOLBOX, VIDEOTOOLBOX, ff_ ## codec ## _videotoolbox_hwaccel)

Definition at line 76 of file hwconfig.h.

◆ HWACCEL_VULKAN

#define HWACCEL_VULKAN ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 1, VULKAN, VULKAN, ff_ ## codec ## _vulkan_hwaccel)

Definition at line 78 of file hwconfig.h.

◆ HWACCEL_D3D11VA

#define HWACCEL_D3D11VA ( codec)
Value:
HW_CONFIG_HWACCEL(0, 0, 1, D3D11VA_VLD, NONE, ff_ ## codec ## _d3d11va_hwaccel)
#define NONE
Definition vf_drawvg.c:262

Definition at line 80 of file hwconfig.h.

◆ HWACCEL_D3D12VA

#define HWACCEL_D3D12VA ( codec)
Value:
HW_CONFIG_HWACCEL(1, 1, 0, D3D12, D3D12VA, ff_ ## codec ## _d3d12va_hwaccel)

Definition at line 82 of file hwconfig.h.

◆ HW_CONFIG_ENCODER

#define HW_CONFIG_ENCODER ( device,
frames,
ad_hoc,
format,
device_type_ )
Value:
.public = { \
.pix_fmt = AV_PIX_FMT_ ## format, \
.methods = (device ? AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX : 0) | \
.device_type = AV_HWDEVICE_TYPE_ ## device_type_, \
}, \
.hwaccel = NULL, \
}

Definition at line 85 of file hwconfig.h.

◆ HW_CONFIG_ENCODER_DEVICE

#define HW_CONFIG_ENCODER_DEVICE ( format,
device_type_ )
Value:
HW_CONFIG_ENCODER(1, 0, 0, format, device_type_)
#define HW_CONFIG_ENCODER(device, frames, ad_hoc, format, device_type_)
Definition hwconfig.h:85

Definition at line 97 of file hwconfig.h.

◆ HW_CONFIG_ENCODER_FRAMES

#define HW_CONFIG_ENCODER_FRAMES ( format,
device_type_ )
Value:
HW_CONFIG_ENCODER(0, 1, 0, format, device_type_)

Definition at line 100 of file hwconfig.h.

Function Documentation

◆ ff_hwaccel_uninit()

void ff_hwaccel_uninit ( AVCodecContext * avctx)