gstreamer/sys/msdk
Haihao Xiang 20f61db2e5 msdkdec: make sure mfx frame width/height meets MSDK's requirement
It is possible that the output region size (e.g. 192x144) is different
from the coded picture size (e.g. 192x256). We may adjust the alignment
parameters so that the padding is respected in GstVideoInfo and use
GstVideoInfo to calculate mfx frame width and height

This fixes the error below when decoding a stream which has different
output region size and coded picture size

0:00:00.057726900 28634 0x55df6c3220a0 ERROR                msdkdec
gstmsdkdec.c:1065:gst_msdkdec_handle_frame:<msdkh265dec0>
DecodeFrameAsync failed (failed to allocate memory)

Sample pipeline:

gst-launch-1.0 filesrc location=output.h265 ! h265parse ! msdkh265dec !
glimagesink
2019-07-24 08:41:13 +08:00
..
gstmsdk.c msdk: add msdkvp9enc element 2019-07-07 15:16: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: workaround for MFX_FOURCC_VP9_SEGMAP surface 2019-07-07 15:16:28 +00:00
gstmsdkallocator_libva.h msdk: Add method to replace internal VASurface of mfxFrameSurface 2018-05-30 16:23:44 -08:00
gstmsdkbufferpool.c msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
gstmsdkbufferpool.h msdk: dmabuf support 2018-03-30 11:06:05 -08:00
gstmsdkcontext.c msdk: fix error handling in case of unsupported hardware 2019-04-10 15:54:31 +00:00
gstmsdkcontext.h msdk: don't reset the external frame allocator 2019-01-08 09:11:47 +00:00
gstmsdkcontextutil.c msdk: context: add job type to figure out if joining session is necessary 2018-02-13 13:50:48 -09:00
gstmsdkcontextutil.h msdk: context: add job type to figure out if joining session is necessary 2018-02-13 13:50:48 -09:00
gstmsdkdec.c msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
gstmsdkdec.h msdkdec: add post_configure virtual method 2019-06-29 17:40:06 +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 msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
gstmsdkenc.h msdkenc: allow encode element requires extra frames 2019-07-07 15:16:28 +00: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 msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkh264enc.h msdk: h264_enc: Enable B-pyramid prediction support 2018-02-20 12:41:18 -09:00
gstmsdkh265dec.c msdkh265dec: add support for main-444-10/main-444-10-intra profile 2019-06-29 17:33:57 +02:00
gstmsdkh265dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkh265enc.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkh265enc.h msdkh265enc: enable low power mode 2019-01-24 09:59:37 +00:00
gstmsdkmjpegdec.c msdkmjpegdec: support 422 output 2019-06-29 17:40:06 +00:00
gstmsdkmjpegdec.h msdk: add mjpeg decoder 2016-12-13 00:06:42 +01:00
gstmsdkmjpegenc.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +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: return a right pointer for Y410 when mapping a frame 2019-06-29 17:33:57 +02:00
gstmsdksystemmemory.h msdk: supports bufferpool 2018-02-13 13:44:08 -09:00
gstmsdkvc1dec.c msdkvc1dec: add the preinit_decoder function 2019-03-29 12:57:51 +08:00
gstmsdkvc1dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvideomemory.c msdk: return a right pointer for Y410 when mapping a frame 2019-06-29 17:33:57 +02:00
gstmsdkvideomemory.h msdk: dmabuf support 2018-03-30 11:06:05 -08:00
gstmsdkvp8dec.c msdkdec: add postinit_decoder 2019-03-29 13:32:06 +08:00
gstmsdkvp8dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvp8enc.c msdk: add Hardware tag to element metadata 2019-02-19 23:44:42 +00:00
gstmsdkvp8enc.h msdk: Create plugin for Intel's Media SDK 2016-11-14 15:16:45 +01:00
gstmsdkvp9dec.c msdkvp9dec: add support for VP9 444 2019-06-29 18:10:23 +02:00
gstmsdkvp9dec.h msdkdec: move output-order out of decode bass class. 2018-11-23 12:26:40 +00:00
gstmsdkvp9enc.c msdk: add msdkvp9enc element 2019-07-07 15:16:28 +00:00
gstmsdkvp9enc.h msdk: add msdkvp9enc element 2019-07-07 15:16:28 +00:00
gstmsdkvpp.c msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
gstmsdkvpp.h msdk: vpp: remove mfxExtVPPDoUse from vpp filters. 2018-06-07 15:31:54 -08:00
gstmsdkvpputil.c msdk: vpp : Add frame rate control 2018-04-03 11:10:20 -08:00
gstmsdkvpputil.h msdk: vpp: Add deinterlacing support 2018-04-03 10:38:52 -08:00
Makefile.am msdk: add msdkvp9enc element 2019-07-07 15:16:28 +00:00
meson.build msdk: add msdkvp9enc element 2019-07-07 15:16:28 +00:00
msdk-enums.c msdk:dec: Add new propery to dump frames in decoded order 2018-05-07 14:12:10 -08: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 msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
msdk.h msdkdec: make sure mfx frame width/height meets MSDK's requirement 2019-07-24 08:41:13 +08:00
msdk_d3d.c msdk: implements GstMsdkContext. 2018-02-13 12:41:28 -09:00
msdk_libva.c msdk: map MFX_FOURCC_Y410 to VA_FOURCC_Y410 2019-06-29 17:33:57 +02:00
msdk_libva.h msdk: add mfx in include path 2019-01-08 12:59:45 +00:00