Skip to content

Commit

Permalink
Add rule of 3 stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
tletnes authored and gfxVPLsdm committed Nov 20, 2024
1 parent e029584 commit ac130b2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion api/vpl/mfxvideo++.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit ac130b2

Please sign in to comment.