[vlc-commits] qsv: explicitly set the input and output memory types
Steve Lhomme
git at videolan.org
Fri Aug 14 15:13:50 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul 2 15:44:59 2020 +0200| [48436cbdc519f38c8aa7655fc4bfa60cda7e9df8] | committer: Steve Lhomme
qsv: explicitly set the input and output memory types
We're going to support more input memory types (GPU).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48436cbdc519f38c8aa7655fc4bfa60cda7e9df8
---
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 92dad1c18e..dec2ef2668 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");
More information about the vlc-commits
mailing list