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

Method NonDelegatingQueryInterface

Source/VideoRenderer.cpp:658–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658STDMETHODIMP CMpcVideoRenderer::NonDelegatingQueryInterface(REFIID riid, void** ppv)
659{
660 CheckPointer(ppv, E_POINTER);
661
662 IFQIRETURN(IKsPropertySet)
663 IFQIRETURN(IMFGetService)
664 IFQIRETURN(IBasicVideo)
665 IFQIRETURN(IBasicVideo2)
666 IFQIRETURN(IVideoWindow)
667 IFQIRETURN(ISpecifyPropertyPages)
668 IFQIRETURN(IVideoRenderer)
669 IFQIRETURN(IExFilterConfig)
670 if (riid == __uuidof(ISubRender) && m_VideoProcessor && m_VideoProcessor->Type() == 9) {
671 return GetInterface((ISubRender*)this, ppv);
672 }
673 if (riid == __uuidof(ISubRender11) && m_VideoProcessor && m_VideoProcessor->Type() == 11) {
674 return GetInterface((ISubRender11*)this, ppv);
675 }
676 if (riid == __uuidof(ID3DFullscreenControl) && m_bEnableFullscreenControl) {
677 return GetInterface((ID3DFullscreenControl*)this, ppv);
678 }
679 if (riid == __uuidof(ISubRenderConsumer2)) {
680 return GetInterface((ISubRenderConsumer2*)this, ppv);
681 }
682 if (riid == __uuidof(ISubRenderConsumer)) {
683 return GetInterface((ISubRenderConsumer*)this, ppv);
684 }
685 if (riid == __uuidof(ISubRenderOptions)) {
686 return GetInterface((ISubRenderOptions*)this, ppv);
687 }
688 return __super::NonDelegatingQueryInterface(riid, ppv);
689}
690
691// IMediaFilter
692STDMETHODIMP CMpcVideoRenderer::Run(REFERENCE_TIME rtStart)

Callers

nothing calls this directly

Calls 1

TypeMethod · 0.45

Tested by

no test coverage detected