Skip to content

Commit b0c2396

Browse files
committed
Задаем методы CVideoProcessor, которые можно не реализовывать, пустыми (а не полностью виртуальными).
1 parent 3b7765d commit b0c2396

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/VideoProcessor.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,14 @@ class CVideoProcessor
202202
virtual void SetRotation(int value) = 0;
203203
bool GetFlip() { return m_bFlip; }
204204
void SetFlip(bool value) { m_bFlip = value; }
205-
virtual void SetStereo3dTransform(int value) = 0;
205+
virtual void SetStereo3dTransform(int value) {};
206206
void SetAllowDeepColorBitmaps(bool value) { m_bAllowDeepColorBitmaps = value; }
207207

208-
virtual void ClearPreScaleShaders() = 0;
209-
virtual void ClearPostScaleShaders() = 0;
208+
virtual void ClearPreScaleShaders() {};
209+
virtual void ClearPostScaleShaders() {};
210210

211-
virtual HRESULT AddPreScaleShader(const std::wstring& name, const std::string& srcCode) = 0;
212-
virtual HRESULT AddPostScaleShader(const std::wstring& name, const std::string& srcCode) = 0;
211+
virtual HRESULT AddPreScaleShader(const std::wstring& name, const std::string& srcCode) { return E_NOTIMPL; };
212+
virtual HRESULT AddPostScaleShader(const std::wstring& name, const std::string& srcCode) { return E_NOTIMPL; };
213213

214214
virtual HRESULT GetCurentImage(long *pDIBImage) = 0;
215215
virtual HRESULT GetDisplayedImage(BYTE **ppDib, unsigned *pSize) = 0;
@@ -225,7 +225,7 @@ class CVideoProcessor
225225

226226
bool GetDoubleRate() { return m_bDoubleFrames; }
227227

228-
virtual ISubPicAllocator* GetSubPicAllocator() PURE;
228+
virtual ISubPicAllocator* GetSubPicAllocator() { return nullptr; }
229229

230230
protected:
231231
inline bool SourceIsPQorHLG() {

0 commit comments

Comments
 (0)