diff options
Diffstat (limited to 'recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch')
-rw-r--r-- | recipes-multimedia/onevpl/onevpl/0001-Remove-duplicate-MFXVideoDECODE_VPP-from-samples.patch | 62 |
1 files changed, 62 insertions, 0 deletions
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 @@ | |||
1 | From 0b74a78b99822bce5ea197513dd5683f41badd7b Mon Sep 17 00:00:00 2001 | ||
2 | From: Jon Recker <jon.recker@intel.com> | ||
3 | Date: Mon, 29 Mar 2021 09:59:03 -0700 | ||
4 | Subject: [PATCH] Remove duplicate MFXVideoDECODE_VPP from samples | ||
5 | |||
6 | Upstream-Status: Submitted | ||
7 | --- | ||
8 | .../sample_common/include/sample_vpl_common.h | 38 ------------------- | ||
9 | 1 file changed, 38 deletions(-) | ||
10 | |||
11 | diff --git a/tools/legacy/sample_common/include/sample_vpl_common.h b/tools/legacy/sample_common/include/sample_vpl_common.h | ||
12 | index 4450b7f..016955a 100644 | ||
13 | --- a/tools/legacy/sample_common/include/sample_vpl_common.h | ||
14 | +++ b/tools/legacy/sample_common/include/sample_vpl_common.h | ||
15 | @@ -49,44 +49,6 @@ public: | ||
16 | } | ||
17 | }; | ||
18 | |||
19 | -class MFXVideoDECODE_VPP { | ||
20 | -public: | ||
21 | - explicit MFXVideoDECODE_VPP(mfxSession session) { | ||
22 | - m_session = session; | ||
23 | - } | ||
24 | - virtual ~MFXVideoDECODE_VPP(void) {} | ||
25 | - | ||
26 | - virtual mfxStatus Init(mfxVideoParam *decode_par, | ||
27 | - mfxVideoChannelParam **vpp_par_array, | ||
28 | - mfxU32 num_vpp_par) { | ||
29 | - return MFXVideoDECODE_VPP_Init(m_session, decode_par, vpp_par_array, num_vpp_par); | ||
30 | - } | ||
31 | - | ||
32 | - virtual mfxStatus DecodeFrameAsync(mfxBitstream *bs, | ||
33 | - mfxU32 *skip_channels, | ||
34 | - mfxU32 num_skip_channels, | ||
35 | - mfxSurfaceArray **surf_array_out) { | ||
36 | - return MFXVideoDECODE_VPP_DecodeFrameAsync(m_session, | ||
37 | - bs, | ||
38 | - skip_channels, | ||
39 | - num_skip_channels, | ||
40 | - surf_array_out); | ||
41 | - } | ||
42 | - | ||
43 | - virtual mfxStatus Reset(mfxVideoParam *decode_par, | ||
44 | - mfxVideoChannelParam **vpp_par_array, | ||
45 | - mfxU32 num_vpp_par) { | ||
46 | - return MFXVideoDECODE_VPP_Reset(m_session, decode_par, vpp_par_array, num_vpp_par); | ||
47 | - } | ||
48 | - | ||
49 | - virtual mfxStatus GetChannelParam(mfxVideoChannelParam *par, mfxU32 channel_id) { | ||
50 | - return MFXVideoDECODE_VPP_GetChannelParam(m_session, par, channel_id); | ||
51 | - } | ||
52 | - | ||
53 | -protected: | ||
54 | - mfxSession m_session; // (mfxSession) handle to the owning session | ||
55 | -}; | ||
56 | - | ||
57 | #endif | ||
58 | |||
59 | #endif //__SAMPLE_VPL_COMMON_H__ | ||
60 | -- | ||
61 | 2.31.1 | ||
62 | |||