[vlc-devel] [PATCH 1/4] qsv: explicitly set the input and output memory types

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 2 16:18:57 CEST 2020


We're going to support more input memory types (GPU).
---
 modules/codec/qsv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 8571b499dc9..727f09e11cd 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -467,7 +467,8 @@ static int Open(vlc_object_t *this)
     sys->params.mfx.FrameInfo.BitDepthLuma   = 8; /* for VLC_CODEC_NV12 */
 
     /* Parsing options common to all RC methods and codecs */
-    sys->params.IOPattern       = MFX_IOPATTERN_IN_SYSTEM_MEMORY;
+    sys->params.IOPattern = MFX_IOPATTERN_OUT_SYSTEM_MEMORY;
+    sys->params.IOPattern |= MFX_IOPATTERN_IN_SYSTEM_MEMORY;
     sys->params.AsyncDepth      = var_InheritInteger(enc, SOUT_CFG_PREFIX "async-depth");
     sys->params.mfx.GopOptFlag  = 1; /* TODO */
     sys->params.mfx.GopPicSize  = var_InheritInteger(enc, SOUT_CFG_PREFIX "gop-size");
-- 
2.26.2



More information about the vlc-devel mailing list