diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-10-31 12:36:50 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-10-31 12:37:11 +0400 |
commit | 1578be1c97a56607cfeff5b162796acc516da1e0 (patch) | |
tree | 0a8e7ae09054dbd6fc9189fbbeace4e0073c7104 /decoder/LAVVideo/LAVVideo.h | |
parent | 1e13fa3833c5cb8f303bea0d1207214e3cfb33f1 (diff) |
Add an option to set the index of the GPU to be used for HW decoding
Fixes issue 376.
Diffstat (limited to 'decoder/LAVVideo/LAVVideo.h')
-rw-r--r-- | decoder/LAVVideo/LAVVideo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/LAVVideo/LAVVideo.h b/decoder/LAVVideo/LAVVideo.h index 362e243a..dc77e2ad 100644 --- a/decoder/LAVVideo/LAVVideo.h +++ b/decoder/LAVVideo/LAVVideo.h @@ -127,6 +127,8 @@ public: STDMETHODIMP SetDeinterlacingMode(LAVDeintMode deintMode); STDMETHODIMP_(LAVDeintMode) GetDeinterlacingMode(); + STDMETHODIMP SetGPUDeviceIndex(DWORD dwDevice); + // ILAVVideoStatus STDMETHODIMP_(const WCHAR *) GetActiveDecoderName() { return m_Decoder.GetDecoderName(); } @@ -166,6 +168,7 @@ public: STDMETHODIMP DVDStripPacket(BYTE*& p, long& len) { static_cast<CDeCSSTransformInputPin*>(m_pInput)->StripPacket(p, len); return S_OK; } STDMETHODIMP_(LAVFrame*) GetFlushFrame(); STDMETHODIMP ReleaseAllDXVAResources() { ReleaseLastSequenceFrame(); return S_OK; } + STDMETHODIMP_(DWORD) GetGPUDeviceIndex() { return m_dwGPUDeviceIndex; } public: // Pin Configuration @@ -279,6 +282,8 @@ private: BOOL bDVDVideo; } m_settings; + DWORD m_dwGPUDeviceIndex; + CBaseTrayIcon *m_pTrayIcon; #ifdef DEBUG |