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

Method GetDestinationPosition

Source/VideoRenderer.cpp:905–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905STDMETHODIMP CMpcVideoRenderer::GetDestinationPosition(long *pLeft, long *pTop, long *pWidth, long *pHeight)
906{
907 CheckPointer(pLeft,E_POINTER);
908 CheckPointer(pTop,E_POINTER);
909 CheckPointer(pWidth,E_POINTER);
910 CheckPointer(pHeight,E_POINTER);
911
912 CRect rect;
913 {
914 CAutoLock cVideoLock(&m_InterfaceLock);
915
916 m_VideoProcessor->GetVideoRect(rect);
917 }
918
919 *pLeft = rect.left;
920 *pTop = rect.top;
921 *pWidth = rect.Width();
922 *pHeight = rect.Height();
923
924 return S_OK;
925}
926
927STDMETHODIMP CMpcVideoRenderer::GetVideoSize(long *pWidth, long *pHeight)
928{

Callers

nothing calls this directly

Calls 1

GetVideoRectMethod · 0.80

Tested by

no test coverage detected