From 43c89c3e2d18339eef8d9e6d80b14859c10cdc8d Mon Sep 17 00:00:00 2001 From: "Yew, Chang Ching" Date: Wed, 9 Jun 2021 17:03:47 +0800 Subject: onevpl: Add sample_multi_transcode application Added patches 0001-Update-headers-to-oneAPI-spec-v2.3-e170992.patch 0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch 0001-Add-SMT-and-media_sdk_compatibility_headers.patch Signed-off-by: Yew, Chang Ching Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- ...duplicate-MFXVideoDECODE_VPP-from-samples.patch | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch (limited to 'recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch') diff --git a/recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch b/recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch new file mode 100644 index 00000000..8470e418 --- /dev/null +++ b/recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch @@ -0,0 +1,62 @@ +From 0b74a78b99822bce5ea197513dd5683f41badd7b Mon Sep 17 00:00:00 2001 +From: Jon Recker +Date: Mon, 29 Mar 2021 09:59:03 -0700 +Subject: [PATCH] Remove duplicate MFXVideoDECODE_VPP from samples + +Upstream-Status: Submitted +--- + .../sample_common/include/sample_vpl_common.h | 38 ------------------- + 1 file changed, 38 deletions(-) + +diff --git a/tools/legacy/sample_common/include/sample_vpl_common.h b/tools/legacy/sample_common/include/sample_vpl_common.h +index 4450b7f..016955a 100644 +--- a/tools/legacy/sample_common/include/sample_vpl_common.h ++++ b/tools/legacy/sample_common/include/sample_vpl_common.h +@@ -49,44 +49,6 @@ public: + } + }; + +-class MFXVideoDECODE_VPP { +-public: +- explicit MFXVideoDECODE_VPP(mfxSession session) { +- m_session = session; +- } +- virtual ~MFXVideoDECODE_VPP(void) {} +- +- virtual mfxStatus Init(mfxVideoParam *decode_par, +- mfxVideoChannelParam **vpp_par_array, +- mfxU32 num_vpp_par) { +- return MFXVideoDECODE_VPP_Init(m_session, decode_par, vpp_par_array, num_vpp_par); +- } +- +- virtual mfxStatus DecodeFrameAsync(mfxBitstream *bs, +- mfxU32 *skip_channels, +- mfxU32 num_skip_channels, +- mfxSurfaceArray **surf_array_out) { +- return MFXVideoDECODE_VPP_DecodeFrameAsync(m_session, +- bs, +- skip_channels, +- num_skip_channels, +- surf_array_out); +- } +- +- virtual mfxStatus Reset(mfxVideoParam *decode_par, +- mfxVideoChannelParam **vpp_par_array, +- mfxU32 num_vpp_par) { +- return MFXVideoDECODE_VPP_Reset(m_session, decode_par, vpp_par_array, num_vpp_par); +- } +- +- virtual mfxStatus GetChannelParam(mfxVideoChannelParam *par, mfxU32 channel_id) { +- return MFXVideoDECODE_VPP_GetChannelParam(m_session, par, channel_id); +- } +- +-protected: +- mfxSession m_session; // (mfxSession) handle to the owning session +-}; +- + #endif + + #endif //__SAMPLE_VPL_COMMON_H__ +-- +2.31.1 + -- cgit v1.2.3-54-g00ecf