diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-04-13 18:33:18 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2020-04-28 00:06:06 +0300 |
commit | 1dff97b7bc792267c3e79030fbaed0e9fefc65fb (patch) | |
tree | 73f245cf37c284dbcaecd4ad6e535f0bd7f1935a /libavcodec/nvenc.c | |
parent | 1128aa875367f66ac11adc30364d5652919a2591 (diff) |
avcodec/nvenc: add hardware config metadata
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 9a96bf2bba..2c75399b44 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -55,6 +55,16 @@ const enum AVPixelFormat ff_nvenc_pix_fmts[] = { AV_PIX_FMT_NONE }; +const AVCodecHWConfigInternal *ff_nvenc_hw_configs[] = { + HW_CONFIG_ENCODER_FRAMES(CUDA, CUDA), + HW_CONFIG_ENCODER_DEVICE(NONE, CUDA), +#if CONFIG_D3D11VA + HW_CONFIG_ENCODER_FRAMES(D3D11, D3D11VA), + HW_CONFIG_ENCODER_DEVICE(NONE, D3D11VA), +#endif + NULL, +}; + #define IS_10BIT(pix_fmt) (pix_fmt == AV_PIX_FMT_P010 || \ pix_fmt == AV_PIX_FMT_P016 || \ pix_fmt == AV_PIX_FMT_YUV444P16) |