gstreamer/sys/msdk
Xu Guangxin 610e477565 msdkdec: hold a reference for the surfaces locked by msdk
previous code releases GstBuffer too earlier. so we will see

ERROR                default gstmsdkvideomemory.c:77:gst_msdk_video_allocator_get_surface: failed to get surface available
ERROR         msdkbufferpool gstmsdkbufferpool.c:270:gst_msdk_buffer_pool_alloc_buffer:<msdkbufferpool0> failed to create new MSDK memory

We need to hold GstBuffer reference for msdk if the surfaced locked by msdk.

step to reproduce.
1. ffmpeg -f lavfi -i testsrc=duration=10:size=320x240:rate=30 -pix_fmt yuv420p -c:v libx265 test.265
2. GST_GL_PLATFORM=egl  gst-launch-1.0 -v filesrc location=test.265  ! h265parse ! msdkh265dec  ! queue ! glimagesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1277>
2020-06-15 02:46:53 +00:00
..
gstmsdk.c msdkvp9enc: output raw vp9 stream instead of IVF stream 2020-02-10 06:46:28 +00:00
gstmsdkallocator.h msdk: allocator: get dmabuf handle during allocation if required 2018-03-30 11:04:28 -08:00
gstmsdkallocator_d3d.c msdk: don't reset the external frame allocator 2019-01-08 09:11:47 +00:00
gstmsdkallocator_libva.c msdk: map Y412_LE to VA_FOURCC_Y416 2020-04-03 01:19:45 +00:00
gstmsdkallocator_libva.h msdk: Add method to replace internal VASurface of mfxFrameSurface 2018-05-30 16:23:44 -08:00
gstmsdkbufferpool.c msdk: bufferpool: set alignment to video meta 2020-05-07 05:45:36 +00:00
gstmsdkbufferpool.h msdk: dmabuf support 2018-03-30 11:06:05 -08:00
gstmsdkcontext.c asfmux: Fix typo in property description 2020-03-12 18:38:11 +01:00
gstmsdkcontext.h msdk: fix for mfx frame alloc response 2019-09-23 09:58:28 +08:00
gstmsdkcontextutil.c msdk: Fix increasing memory usage in dynamic pipelines 2020-01-21 00:38:41 +00:00
gstmsdkcontextutil.h msdk: Reorganize context preparation code 2020-01-21 00:38:41 +00:00
gstmsdkdec.c msdkdec: hold a reference for the surfaces locked by msdk 2020-06-15 02:46:53 +00:00
gstmsdkdec.h msdkdec: hold a reference for the surfaces locked by msdk 2020-06-15 02:46:53 +00:00
gstmsdkdecproputil.c msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkdecproputil.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkenc.c msdkh265enc: add support 12-bit 420 encoding 2020-06-01 05:04:30 +00:00
gstmsdkenc.h msdkh265enc: support 8-bit 422 encoding 2020-03-31 09:27:03 +08:00
gstmsdkh264dec.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkh264dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkh264enc.c msdkh264enc: Configure parser and SEI array only if it's required 2020-04-02 09:20:11 +00:00
gstmsdkh264enc.h msdkh264enc: Configure parser and SEI array only if it's required 2020-04-02 09:20:11 +00:00
gstmsdkh265dec.c msdkh265dec: add support for main-444-12, main-444-12-intra profiles 2020-04-03 01:19:45 +00:00
gstmsdkh265dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkh265enc.c msdkh265enc: add support 12-bit 420 encoding 2020-06-01 05:04:30 +00:00
gstmsdkh265enc.h msdkh265enc: Add support for CEA708 closed caption insertion 2020-04-02 09:20:11 +00:00
gstmsdkmjpegdec.c msdk: Remove all DMABuf caps features on Windows 2019-09-10 13:29:11 +00:00
gstmsdkmjpegdec.h msdk: add mjpeg decoder 2016-12-13 00:06:42 +01:00
gstmsdkmjpegenc.c msdkmjpegenc: convert UYVY to YUY2 instead of NV12 2019-11-02 09:52:36 +00:00
gstmsdkmjpegenc.h msdk: add mjpeg encoder 2016-12-13 00:06:42 +01:00
gstmsdkmpeg2dec.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkmpeg2dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkmpeg2enc.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkmpeg2enc.h msdk: Create plugin for Intel's Media SDK 2016-11-14 15:16:45 +01:00
gstmsdksystemmemory.c msdk: map Y412_LE to MFX_FOURCC_Y416 2020-04-03 01:19:45 +00:00
gstmsdksystemmemory.h msdk: supports bufferpool 2018-02-13 13:44:08 -09:00
gstmsdkvc1dec.c msdkdec: hold a reference for the surfaces locked by msdk 2020-06-15 02:46:53 +00:00
gstmsdkvc1dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvideomemory.c msdk: map Y412_LE to MFX_FOURCC_Y416 2020-04-03 01:19:45 +00:00
gstmsdkvideomemory.h msdk: fix for mfx frame alloc response 2019-09-23 09:58:28 +08:00
gstmsdkvp8dec.c msdk: ignore MFX_ERR_UNDEFINED_BEHAVIOR when loading a plugin 2019-12-10 17:23:53 +00:00
gstmsdkvp8dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvp9dec.c msdkvp9dec: add support for VP9 12bit 2020-04-07 00:39:35 +00:00
gstmsdkvp9dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvp9enc.c msdkvp9enc: add support for 10 bits 444 input 2020-03-23 08:20:13 +08:00
gstmsdkvp9enc.h msdkvp9enc: output raw vp9 stream instead of IVF stream 2020-02-10 06:46:28 +00:00
gstmsdkvpp.c msdkvpp: fix "failed to create new MSDK memory" 2020-06-01 02:09:04 +00:00
gstmsdkvpp.h msdkvpp: fix "failed to create new MSDK memory" 2020-06-01 02:09:04 +00:00
gstmsdkvpputil.c documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
gstmsdkvpputil.h msdk: vpp: Add deinterlacing support 2018-04-03 10:38:52 -08:00
meson.build msdkh264enc: Add support for CEA708 closed caption insertion 2020-03-30 07:59:10 +00:00
msdk-enums.c msdkvpp: support video-direction property 2019-08-26 16:39:39 +00:00
msdk-enums.h msdk:dec: Add new propery to dump frames in decoded order 2018-05-07 14:12:10 -08:00
msdk.c msdk: map Y412_LE to MFX_FOURCC_Y416 2020-04-03 01:19:45 +00:00
msdk.h msdk: add a helper function to get codename of the platform 2020-03-31 09:27:03 +08:00
msdk_d3d.c msdk: implements GstMsdkContext. 2018-02-13 12:41:28 -09:00
msdk_libva.c msdk: map MFX_FOURCC_Y416 to VA_FOURCC_Y416 2020-04-03 01:19:45 +00:00
msdk_libva.h msdk: add mfx in include path 2019-01-08 12:59:45 +00:00