IMFGetService
| 834 | |
| 835 | // IMFGetService |
| 836 | STDMETHODIMP CMpcVideoRenderer::GetService(REFGUID guidService, REFIID riid, LPVOID *ppvObject) |
| 837 | { |
| 838 | if (guidService == MR_VIDEO_ACCELERATION_SERVICE) { |
| 839 | if (riid == IID_IDirect3DDeviceManager9 && m_VideoProcessor->GetDeviceManager9()) { |
| 840 | return m_VideoProcessor->GetDeviceManager9()->QueryInterface(riid, ppvObject); |
| 841 | } |
| 842 | } |
| 843 | else if (guidService == MR_VIDEO_MIXER_SERVICE) { |
| 844 | if (riid == IID_IMFVideoProcessor || riid == IID_IMFVideoMixerBitmap) { |
| 845 | return m_VideoProcessor->QueryInterface(riid, ppvObject); |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | return E_NOINTERFACE; |
| 850 | } |
| 851 | |
| 852 | // IBasicVideo |
| 853 | STDMETHODIMP CMpcVideoRenderer::GetSourcePosition(long *pLeft, long *pTop, long *pWidth, long *pHeight) |
no test coverage detected