• Haihao Xiang's avatar
    msdk: don't share context between msdkvpp and msdkenc · 98e49673
    Haihao Xiang authored
    msdkenc supports CSC implicitly, so it is possible that two VPP
    processes are required when a pipeline contains msdkvpp and msdkenc.
    Before this fix, msdkvpp and msdkenc may share the same context, hence
    the same mfx session, which results in MFX_ERR_UNDEFINED_BEHAVIOR
    in MSDK because a mfx session has at most one VPP process only
    
    This fixes the broken pipelines below:
    
    gst-launch-1.0 videotestsrc ! video/x-raw,format=I420 ! msdkh264enc ! \
    msdkh264dec ! msdkvpp ! video/x-raw,format=YUY2 ! fakesink
    
    gst-launch-1.0 videotestsrc ! msdkvpp ! video/x-raw,format=YUY2 ! \
    msdkh264enc ! fakesink
    98e49673
Name
Last commit
Last update
..
Makefile.am Loading commit data...
gstmsdk.c Loading commit data...
gstmsdkallocator.h Loading commit data...
gstmsdkallocator_d3d.c Loading commit data...
gstmsdkallocator_libva.c Loading commit data...
gstmsdkallocator_libva.h Loading commit data...
gstmsdkbufferpool.c Loading commit data...
gstmsdkbufferpool.h Loading commit data...
gstmsdkcontext.c Loading commit data...
gstmsdkcontext.h Loading commit data...
gstmsdkcontextutil.c Loading commit data...
gstmsdkcontextutil.h Loading commit data...
gstmsdkdec.c Loading commit data...
gstmsdkdec.h Loading commit data...
gstmsdkdecproputil.c Loading commit data...
gstmsdkdecproputil.h Loading commit data...
gstmsdkenc.c Loading commit data...
gstmsdkenc.h Loading commit data...
gstmsdkh264dec.c Loading commit data...
gstmsdkh264dec.h Loading commit data...
gstmsdkh264enc.c Loading commit data...
gstmsdkh264enc.h Loading commit data...
gstmsdkh265dec.c Loading commit data...
gstmsdkh265dec.h Loading commit data...
gstmsdkh265enc.c Loading commit data...
gstmsdkh265enc.h Loading commit data...
gstmsdkmjpegdec.c Loading commit data...
gstmsdkmjpegdec.h Loading commit data...
gstmsdkmjpegenc.c Loading commit data...
gstmsdkmjpegenc.h Loading commit data...
gstmsdkmpeg2dec.c Loading commit data...
gstmsdkmpeg2dec.h Loading commit data...
gstmsdkmpeg2enc.c Loading commit data...
gstmsdkmpeg2enc.h Loading commit data...
gstmsdksystemmemory.c Loading commit data...
gstmsdksystemmemory.h Loading commit data...
gstmsdkvc1dec.c Loading commit data...
gstmsdkvc1dec.h Loading commit data...
gstmsdkvideomemory.c Loading commit data...
gstmsdkvideomemory.h Loading commit data...
gstmsdkvp8dec.c Loading commit data...
gstmsdkvp8dec.h Loading commit data...
gstmsdkvp8enc.c Loading commit data...
gstmsdkvp8enc.h Loading commit data...
gstmsdkvp9dec.c Loading commit data...
gstmsdkvp9dec.h Loading commit data...
gstmsdkvpp.c Loading commit data...
gstmsdkvpp.h Loading commit data...
gstmsdkvpputil.c Loading commit data...
gstmsdkvpputil.h Loading commit data...
meson.build Loading commit data...
msdk-enums.c Loading commit data...
msdk-enums.h Loading commit data...
msdk.c Loading commit data...
msdk.h Loading commit data...
msdk_d3d.c Loading commit data...
msdk_libva.c Loading commit data...
msdk_libva.h Loading commit data...