diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-04-13 16:33:16 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-04-26 18:38:25 +0100 |
commit | 5a1ff449071fefa7913858fbe2d084f698443e57 (patch) | |
tree | 5b19e1dca6bdebc5cfe9abef2441fd868beef74e /libavcodec/qsvenc.c | |
parent | 858eba0ca4b680ce23c4eebd1460db333989b0a4 (diff) | |
download | ffmpeg-5a1ff449071fefa7913858fbe2d084f698443e57.tar.gz |
lavc/qsvenc: Add hardware config metadata
All of these encoders can accept libmfx surfaces directly in a hardware
frames context, or they can accept software frames if a suitable device
is supplied to use.
Diffstat (limited to 'libavcodec/qsvenc.c')
-rw-r--r-- | libavcodec/qsvenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index afab8fd715..9ec0636dde 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1652,3 +1652,10 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q) return 0; } + +const AVCodecHWConfigInternal *ff_qsv_enc_hw_configs[] = { + HW_CONFIG_ENCODER_FRAMES(QSV, QSV), + HW_CONFIG_ENCODER_DEVICE(NV12, QSV), + HW_CONFIG_ENCODER_DEVICE(P010, QSV), + NULL, +}; |