IBasicVideo
| 851 | |
| 852 | // IBasicVideo |
| 853 | STDMETHODIMP CMpcVideoRenderer::GetSourcePosition(long *pLeft, long *pTop, long *pWidth, long *pHeight) |
| 854 | { |
| 855 | CheckPointer(pLeft,E_POINTER); |
| 856 | CheckPointer(pTop,E_POINTER); |
| 857 | CheckPointer(pWidth,E_POINTER); |
| 858 | CheckPointer(pHeight,E_POINTER); |
| 859 | |
| 860 | CRect rect; |
| 861 | long lAspectX; |
| 862 | long lAspectY; |
| 863 | { |
| 864 | CAutoLock cVideoLock(&m_InterfaceLock); |
| 865 | |
| 866 | m_VideoProcessor->GetSourceRect(rect); |
| 867 | m_VideoProcessor->GetAspectRatio(lAspectX, lAspectY); |
| 868 | } |
| 869 | |
| 870 | *pLeft = rect.left; |
| 871 | *pTop = rect.top; |
| 872 | *pWidth = rect.Width(); |
| 873 | *pHeight = rect.Height(); |
| 874 | |
| 875 | if (lAspectX && lAspectY) { |
| 876 | // Apply aspect ratio (as in VMR9 and madVR) so that DVD-Video menu buttons are activated correctly with the mouse. |
| 877 | *pWidth = *pHeight * lAspectX / lAspectY; |
| 878 | } |
| 879 | |
| 880 | return S_OK; |
| 881 | } |
| 882 | |
| 883 | STDMETHODIMP CMpcVideoRenderer::SetDestinationPosition(long Left, long Top, long Width, long Height) |
| 884 | { |
nothing calls this directly
no test coverage detected