summaryrefslogtreecommitdiff
path: root/sys/msdk/gstmsdkdec.h
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2019-02-22 16:20:16 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-02-27 15:56:29 +0000
commita751b33072055e069d1adba3ac9eb881d804d759 (patch)
tree5308456d134c5666966785234fec17107932e180 /sys/msdk/gstmsdkdec.h
parent0806f94e1cffeebf329b271d7b2c3716e0233c54 (diff)
downloadgstreamer-plugins-bad-a751b33072055e069d1adba3ac9eb881d804d759.tar.gz
msdkdec: force the alignment of width/height to 16 for vp8/vp9
MSDK library requires 16 alignment for vp8/vp9, otherwise a pipeline for vp8/vp9 decoding might fail. example pipeline: gst-launch-1.0 filesrc location=vp8_1280x720.webm ! matroskademux ! \ msdkvp8dec ! fakesink 0:00:00.150565444 10657 0x55c8484036d0 ERROR msdkdec gstmsdkdec.c:1056:gst_msdkdec_handle_frame:<msdkvp8dec0> DecodeFrameAsync failed (invalid video parameters)
Diffstat (limited to 'sys/msdk/gstmsdkdec.h')
-rw-r--r--sys/msdk/gstmsdkdec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdkdec.h b/sys/msdk/gstmsdkdec.h
index fc82415ac..c55e1458d 100644
--- a/sys/msdk/gstmsdkdec.h
+++ b/sys/msdk/gstmsdkdec.h
@@ -107,6 +107,10 @@ struct _GstMsdkDecClass
GstVideoDecoderClass parent_class;
gboolean (*configure) (GstMsdkDec * decoder);
+
+ /* reset mfx parameters per codec, currently it is only used for
+ * the alignment exception for frame width and height */
+ gboolean (*preinit_decoder) (GstMsdkDec * decoder);
};
struct _MsdkDecTask