[FFmpeg-devel] [PATCH, RFC 2/3] lavc/qsvdec: add support for system memory mode
Linjie Fu
linjie.fu at intel.com
Tue Mar 26 07:39:08 EET 2019
Copy from video to system memory, so output in sysmem memory mode is needed.
Signed-off-by: Linjie Fu <linjie.fu at intel.com>
---
Previously discussed in:
https://patchwork.ffmpeg.org/patch/7009/
This mode is needed in gpu_copy, is this feature implemented in
current lavc now?
libavcodec/qsvdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 5dd2b3834b..604effbd51 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -47,7 +47,8 @@ const AVCodecHWConfigInternal *ff_qsv_hw_configs[] = {
&(const AVCodecHWConfigInternal) {
.public = {
.pix_fmt = AV_PIX_FMT_QSV,
- .methods = AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX |
+ .methods = AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX |
+ AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX |
AV_CODEC_HW_CONFIG_METHOD_AD_HOC,
.device_type = AV_HWDEVICE_TYPE_QSV,
},
--
2.17.1
More information about the ffmpeg-devel
mailing list