From ac130b2323ce3cd0f8e546e6112d5d491b0de7c4 Mon Sep 17 00:00:00 2001 From: Thaddeus Letnes Date: Wed, 20 Nov 2024 18:39:35 +0000 Subject: [PATCH] Add rule of 3 stubs --- api/vpl/mfxvideo++.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/api/vpl/mfxvideo++.h b/api/vpl/mfxvideo++.h index c3b7111cc0..3ac8d5de6e 100644 --- a/api/vpl/mfxvideo++.h +++ b/api/vpl/mfxvideo++.h @@ -94,7 +94,6 @@ class MFXVideoDECODEBase { class MFXVideoVPPBase { public: virtual ~MFXVideoVPPBase() {} - virtual mfxStatus Query(mfxVideoParam* in, mfxVideoParam* out) = 0; virtual mfxStatus QueryIOSurf(mfxVideoParam* par, mfxFrameAllocRequest request[2]) = 0; virtual mfxStatus Init(mfxVideoParam* par) = 0; @@ -423,6 +422,9 @@ class MFXVideoENCODE : public MFXVideoENCODEBase { protected: mfxSession m_session; // (mfxSession) handle to the owning session +private: + MFXVideoENCODE(const MFXVideoENCODE& other); + MFXVideoENCODE& operator=(const MFXVideoENCODE& other); }; class MFXVideoDECODE : public MFXVideoDECODEBase { @@ -479,6 +481,9 @@ class MFXVideoDECODE : public MFXVideoDECODEBase { protected: mfxSession m_session; // (mfxSession) handle to the owning session +private: + MFXVideoDECODE(const MFXVideoDECODE& other); + MFXVideoDECODE& operator=(const MFXVideoDECODE& other); }; class MFXVideoVPP : public MFXVideoVPPBase { @@ -532,6 +537,9 @@ class MFXVideoVPP : public MFXVideoVPPBase { protected: mfxSession m_session; // (mfxSession) handle to the owning session +private: + MFXVideoVPP(const MFXVideoVPP& other); + MFXVideoVPP& operator=(const MFXVideoVPP& other); }; class MFXVideoDECODE_VPP @@ -578,6 +586,9 @@ class MFXVideoDECODE_VPP protected: mfxSession m_session; // (mfxSession) handle to the owning session +private: + MFXVideoDECODE_VPP(const MFXVideoDECODE_VPP& other); + MFXVideoDECODE_VPP& operator=(const MFXVideoDECODE_VPP& other); }; #endif //__MFXVIDEOPLUSPLUS_H