[FFmpeg-devel] libavcodec/qsvdec_h264.c: SPS parsing now performs by MFXVideoDECODE_DecodeHeader() into libavcodec/qsvdec.c
Michael Niedermayer
michael at niedermayer.cc
Thu Jul 16 23:57:58 CEST 2015
On Thu, Jul 16, 2015 at 11:02:22PM +0300, Ivan Uskov wrote:
> Hello All,
>
> Current implementation of libavcodec/qsvdec_h264.c does use external
> SPS parser. It does not optimal since MFX library has own unified way
> to parse headers of all supported formats. This performs by one
> MFXVideoDECODE_DecodeHeader() call.
> The suggested patch does replace stream specific code to one universal
> function call located into the libavcodec/qsvdec.c. This opens an easy
> way to implement qsv-accelerated mpeg2, hevc and vc1 decoders.
> Please review.
>
> --
> Best regards,
> Ivan mailto:ivan.uskov at nablet.com
> qsvdec.c | 68 ++++++++++++++++++++++++++++-----------------
> qsvdec.h | 2 -
> qsvdec_h264.c | 87 ++--------------------------------------------------------
> 3 files changed, 48 insertions(+), 109 deletions(-)
> f54e2ef059f3878b7e16f51e910dccdbf1335bbb 0001-libavcodec-qsvdec_h264.c-SPS-parsing-now-performs-by.patch
> From 0e84c3e90849b2b59fd361c09c7684374b6229d3 Mon Sep 17 00:00:00 2001
> From: Ivan Uskov <ivan.uskov at nablet.com>
> Date: Wed, 15 Jul 2015 08:34:51 -0400
> Subject: [PATCH] libavcodec/qsvdec_h264.c: SPS parsing now performs by
> MFXVideoDECODE_DecodeHeader() into libavcodec/qsvdec.c
i dont know the qsv parser code but like hendrik suggested, it
is quite possible that our parser supports more cases.
did you test .mp4 and annex b (.h264) ? do both work ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/bd5cf2a9/attachment.sig>
More information about the ffmpeg-devel
mailing list