MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / GetService

Method GetService

Source/VideoRenderer.cpp:836–850  ·  view source on GitHub ↗

IMFGetService

Source from the content-addressed store, hash-verified

834
835// IMFGetService
836STDMETHODIMP 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
853STDMETHODIMP CMpcVideoRenderer::GetSourcePosition(long *pLeft, long *pTop, long *pWidth, long *pHeight)

Callers 1

CopySampleMethod · 0.45

Calls 2

GetDeviceManager9Method · 0.45
QueryInterfaceMethod · 0.45

Tested by

no test coverage detected