#include <winctrl.h>

Public Member Functions | |
| virtual HRESULT | IsDefaultTargetRect () PURE |
| virtual HRESULT | SetDefaultTargetRect () PURE |
| virtual HRESULT | SetTargetRect (RECT *pTargetRect) PURE |
| virtual HRESULT | GetTargetRect (RECT *pTargetRect) PURE |
| virtual HRESULT | IsDefaultSourceRect () PURE |
| virtual HRESULT | SetDefaultSourceRect () PURE |
| virtual HRESULT | SetSourceRect (RECT *pSourceRect) PURE |
| virtual HRESULT | GetSourceRect (RECT *pSourceRect) PURE |
| virtual HRESULT | GetStaticImage (long *pBufferSize, long *pDIBImage) PURE |
| virtual VIDEOINFOHEADER * | GetVideoFormat () PURE |
| HRESULT | GetImageSize (VIDEOINFOHEADER *pVideoInfo, LONG *pBufferSize, RECT *pSourceRect) |
| HRESULT | CopyImage (IMediaSample *pMediaSample, VIDEOINFOHEADER *pVideoInfo, LONG *pBufferSize, BYTE *pVideoImage, RECT *pSourceRect) |
| virtual HRESULT | OnUpdateRectangles () |
| virtual HRESULT | OnVideoSizeChange () |
| void | SetControlVideoPin (CBasePin *pPin) |
| virtual HRESULT | CheckSourceRect (RECT *pSourceRect) |
| virtual HRESULT | CheckTargetRect (RECT *pTargetRect) |
| CBaseControlVideo (CBaseFilter *pFilter, CCritSec *pInterfaceLock, TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr) | |
| STDMETHODIMP | get_AvgTimePerFrame (REFTIME *pAvgTimePerFrame) |
| STDMETHODIMP | get_BitRate (long *pBitRate) |
| STDMETHODIMP | get_BitErrorRate (long *pBitErrorRate) |
| STDMETHODIMP | get_VideoWidth (long *pVideoWidth) |
| STDMETHODIMP | get_VideoHeight (long *pVideoHeight) |
| STDMETHODIMP | put_SourceLeft (long SourceLeft) |
| STDMETHODIMP | get_SourceLeft (long *pSourceLeft) |
| STDMETHODIMP | put_SourceWidth (long SourceWidth) |
| STDMETHODIMP | get_SourceWidth (long *pSourceWidth) |
| STDMETHODIMP | put_SourceTop (long SourceTop) |
| STDMETHODIMP | get_SourceTop (long *pSourceTop) |
| STDMETHODIMP | put_SourceHeight (long SourceHeight) |
| STDMETHODIMP | get_SourceHeight (long *pSourceHeight) |
| STDMETHODIMP | put_DestinationLeft (long DestinationLeft) |
| STDMETHODIMP | get_DestinationLeft (long *pDestinationLeft) |
| STDMETHODIMP | put_DestinationWidth (long DestinationWidth) |
| STDMETHODIMP | get_DestinationWidth (long *pDestinationWidth) |
| STDMETHODIMP | put_DestinationTop (long DestinationTop) |
| STDMETHODIMP | get_DestinationTop (long *pDestinationTop) |
| STDMETHODIMP | put_DestinationHeight (long DestinationHeight) |
| STDMETHODIMP | get_DestinationHeight (long *pDestinationHeight) |
| STDMETHODIMP | GetVideoSize (long *pWidth, long *pHeight) |
| STDMETHODIMP | SetSourcePosition (long Left, long Top, long Width, long Height) |
| STDMETHODIMP | GetSourcePosition (long *pLeft, long *pTop, long *pWidth, long *pHeight) |
| STDMETHODIMP | GetVideoPaletteEntries (long StartIndex, long Entries, long *pRetrieved, long *pPalette) |
| STDMETHODIMP | SetDefaultSourcePosition () |
| STDMETHODIMP | IsUsingDefaultSource () |
| STDMETHODIMP | SetDestinationPosition (long Left, long Top, long Width, long Height) |
| STDMETHODIMP | GetDestinationPosition (long *pLeft, long *pTop, long *pWidth, long *pHeight) |
| STDMETHODIMP | SetDefaultDestinationPosition () |
| STDMETHODIMP | IsUsingDefaultDestination () |
| STDMETHODIMP | GetCurrentImage (long *pBufferSize, long *pVideoImage) |
Protected Attributes | |
| CBaseFilter * | m_pFilter |
| CBasePin * | m_pPin |
| CCritSec * | m_pInterfaceLock |
Definition at line 107 of file winctrl.h.
| CBaseControlVideo::CBaseControlVideo | ( | CBaseFilter * | pFilter, | |
| CCritSec * | pInterfaceLock, | |||
| TCHAR * | pName, | |||
| LPUNKNOWN | pUnk, | |||
| HRESULT * | phr | |||
| ) |
| virtual HRESULT CBaseControlVideo::IsDefaultTargetRect | ( | ) | [virtual] |
Referenced by IsUsingDefaultDestination().
| virtual HRESULT CBaseControlVideo::SetDefaultTargetRect | ( | ) | [virtual] |
Referenced by SetDefaultDestinationPosition().
| virtual HRESULT CBaseControlVideo::SetTargetRect | ( | RECT * | pTargetRect | ) | [virtual] |
| virtual HRESULT CBaseControlVideo::GetTargetRect | ( | RECT * | pTargetRect | ) | [virtual] |
| virtual HRESULT CBaseControlVideo::IsDefaultSourceRect | ( | ) | [virtual] |
Referenced by IsUsingDefaultSource().
| virtual HRESULT CBaseControlVideo::SetDefaultSourceRect | ( | ) | [virtual] |
Referenced by SetDefaultSourcePosition().
| virtual HRESULT CBaseControlVideo::SetSourceRect | ( | RECT * | pSourceRect | ) | [virtual] |
Referenced by put_SourceHeight(), put_SourceLeft(), put_SourceTop(), put_SourceWidth(), and SetSourcePosition().
| virtual HRESULT CBaseControlVideo::GetSourceRect | ( | RECT * | pSourceRect | ) | [virtual] |
| virtual HRESULT CBaseControlVideo::GetStaticImage | ( | long * | pBufferSize, | |
| long * | pDIBImage | |||
| ) | [virtual] |
Referenced by GetCurrentImage().
| virtual VIDEOINFOHEADER* CBaseControlVideo::GetVideoFormat | ( | ) | [virtual] |
| HRESULT CBaseControlVideo::GetImageSize | ( | VIDEOINFOHEADER * | pVideoInfo, | |
| LONG * | pBufferSize, | |||
| RECT * | pSourceRect | |||
| ) |
Definition at line 1477 of file winctrl.cpp.
References ASSERT, E_INVALIDARG, FALSE, HEIGHT, LONG, NOTE, NULL, and WIDTH.
Referenced by GetCurrentImage().
| HRESULT CBaseControlVideo::CopyImage | ( | IMediaSample * | pMediaSample, | |
| VIDEOINFOHEADER * | pVideoInfo, | |||
| LONG * | pBufferSize, | |||
| BYTE * | pVideoImage, | |||
| RECT * | pSourceRect | |||
| ) |
Definition at line 1514 of file winctrl.cpp.
References ASSERT, E_INVALIDARG, E_OUTOFMEMORY, FAILED, FALSE, HEIGHT, hr, HRESULT, LONG, NOTE, NULL, and WIDTH.
| virtual HRESULT CBaseControlVideo::OnUpdateRectangles | ( | ) | [inline, virtual] |
Definition at line 151 of file winctrl.h.
Referenced by put_DestinationHeight(), put_DestinationLeft(), put_DestinationTop(), put_DestinationWidth(), put_SourceHeight(), put_SourceLeft(), put_SourceTop(), put_SourceWidth(), SetDefaultDestinationPosition(), SetDefaultSourcePosition(), SetDestinationPosition(), and SetSourcePosition().
| HRESULT CBaseControlVideo::OnVideoSizeChange | ( | ) | [virtual] |
Definition at line 1589 of file winctrl.cpp.
References E_OUTOFMEMORY, GetVideoFormat(), m_pFilter, CBaseFilter::NotifyEvent(), and NULL.
| void CBaseControlVideo::SetControlVideoPin | ( | CBasePin * | pPin | ) | [inline] |
| HRESULT CBaseControlVideo::CheckSourceRect | ( | RECT * | pSourceRect | ) | [virtual] |
Definition at line 1604 of file winctrl.cpp.
References CheckPointer, E_INVALIDARG, GetVideoSize(), and LONG.
Referenced by put_SourceHeight(), put_SourceLeft(), put_SourceTop(), put_SourceWidth(), and SetSourcePosition().
| HRESULT CBaseControlVideo::CheckTargetRect | ( | RECT * | pTargetRect | ) | [virtual] |
Definition at line 1631 of file winctrl.cpp.
References ASSERT, E_INVALIDARG, FALSE, HEIGHT, NULL, and WIDTH.
Referenced by put_DestinationHeight(), put_DestinationLeft(), put_DestinationTop(), put_DestinationWidth(), and SetDestinationPosition().
| STDMETHODIMP CBaseControlVideo::get_AvgTimePerFrame | ( | REFTIME * | pAvgTimePerFrame | ) |
Definition at line 877 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
| STDMETHODIMP CBaseControlVideo::get_BitRate | ( | long * | pBitRate | ) |
Definition at line 892 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
| STDMETHODIMP CBaseControlVideo::get_BitErrorRate | ( | long * | pBitErrorRate | ) |
Definition at line 905 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
| STDMETHODIMP CBaseControlVideo::get_VideoWidth | ( | long * | pVideoWidth | ) |
Definition at line 918 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
| STDMETHODIMP CBaseControlVideo::get_VideoHeight | ( | long * | pVideoHeight | ) |
Definition at line 931 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
| STDMETHODIMP CBaseControlVideo::put_SourceLeft | ( | long | SourceLeft | ) |
Definition at line 1121 of file winctrl.cpp.
References CheckConnected, CheckSourceRect(), FAILED, GetSourceRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), SetSourceRect(), and WIDTH.
| STDMETHODIMP CBaseControlVideo::get_SourceLeft | ( | long * | pSourceLeft | ) |
Definition at line 1146 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetSourceRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::put_SourceWidth | ( | long | SourceWidth | ) |
Definition at line 1158 of file winctrl.cpp.
References CheckConnected, CheckSourceRect(), FAILED, GetSourceRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetSourceRect().
| STDMETHODIMP CBaseControlVideo::get_SourceWidth | ( | long * | pSourceWidth | ) |
Definition at line 1182 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetSourceRect(), m_pInterfaceLock, m_pPin, and WIDTH.
| STDMETHODIMP CBaseControlVideo::put_SourceTop | ( | long | SourceTop | ) |
Definition at line 1194 of file winctrl.cpp.
References CheckConnected, CheckSourceRect(), FAILED, GetSourceRect(), HEIGHT, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetSourceRect().
| STDMETHODIMP CBaseControlVideo::get_SourceTop | ( | long * | pSourceTop | ) |
Definition at line 1219 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetSourceRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::put_SourceHeight | ( | long | SourceHeight | ) |
Definition at line 1231 of file winctrl.cpp.
References CheckConnected, CheckSourceRect(), FAILED, GetSourceRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetSourceRect().
| STDMETHODIMP CBaseControlVideo::get_SourceHeight | ( | long * | pSourceHeight | ) |
Definition at line 1255 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetSourceRect(), HEIGHT, m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::put_DestinationLeft | ( | long | DestinationLeft | ) |
Definition at line 1267 of file winctrl.cpp.
References CheckConnected, CheckTargetRect(), FAILED, GetTargetRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), SetTargetRect(), and WIDTH.
| STDMETHODIMP CBaseControlVideo::get_DestinationLeft | ( | long * | pDestinationLeft | ) |
Definition at line 1292 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetTargetRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::put_DestinationWidth | ( | long | DestinationWidth | ) |
Definition at line 1304 of file winctrl.cpp.
References CheckConnected, CheckTargetRect(), FAILED, GetTargetRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetTargetRect().
| STDMETHODIMP CBaseControlVideo::get_DestinationWidth | ( | long * | pDestinationWidth | ) |
Definition at line 1328 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetTargetRect(), m_pInterfaceLock, m_pPin, and WIDTH.
| STDMETHODIMP CBaseControlVideo::put_DestinationTop | ( | long | DestinationTop | ) |
Definition at line 1340 of file winctrl.cpp.
References CheckConnected, CheckTargetRect(), FAILED, GetTargetRect(), HEIGHT, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetTargetRect().
| STDMETHODIMP CBaseControlVideo::get_DestinationTop | ( | long * | pDestinationTop | ) |
Definition at line 1365 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetTargetRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::put_DestinationHeight | ( | long | DestinationHeight | ) |
Definition at line 1377 of file winctrl.cpp.
References CheckConnected, CheckTargetRect(), FAILED, GetTargetRect(), hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetTargetRect().
| STDMETHODIMP CBaseControlVideo::get_DestinationHeight | ( | long * | pDestinationHeight | ) |
Definition at line 1401 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetTargetRect(), HEIGHT, m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::GetVideoSize | ( | long * | pWidth, | |
| long * | pHeight | |||
| ) |
Definition at line 1004 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetVideoFormat(), m_pInterfaceLock, m_pPin, and NULL.
Referenced by CheckSourceRect().
| STDMETHODIMP CBaseControlVideo::SetSourcePosition | ( | long | Left, | |
| long | Top, | |||
| long | Width, | |||
| long | Height | |||
| ) |
Definition at line 1021 of file winctrl.cpp.
References CheckConnected, CheckSourceRect(), FAILED, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetSourceRect().
| STDMETHODIMP CBaseControlVideo::GetSourcePosition | ( | long * | pLeft, | |
| long * | pTop, | |||
| long * | pWidth, | |||
| long * | pHeight | |||
| ) |
Definition at line 1048 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetSourceRect(), HEIGHT, m_pInterfaceLock, m_pPin, and WIDTH.
| STDMETHODIMP CBaseControlVideo::GetVideoPaletteEntries | ( | long | StartIndex, | |
| long | Entries, | |||
| long * | pRetrieved, | |||
| long * | pPalette | |||
| ) |
Definition at line 944 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_INVALIDARG, E_OUTOFMEMORY, FALSE, GetVideoFormat(), LONG, m_pInterfaceLock, m_pPin, NULL, and S_FALSE.
| STDMETHODIMP CBaseControlVideo::SetDefaultSourcePosition | ( | ) |
Definition at line 1413 of file winctrl.cpp.
References CheckConnected, FAILED, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetDefaultSourceRect().
| STDMETHODIMP CBaseControlVideo::IsUsingDefaultSource | ( | ) |
Definition at line 1424 of file winctrl.cpp.
References CheckConnected, IsDefaultSourceRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::SetDestinationPosition | ( | long | Left, | |
| long | Top, | |||
| long | Width, | |||
| long | Height | |||
| ) |
Definition at line 1071 of file winctrl.cpp.
References CheckConnected, CheckTargetRect(), FAILED, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetTargetRect().
| STDMETHODIMP CBaseControlVideo::GetDestinationPosition | ( | long * | pLeft, | |
| long * | pTop, | |||
| long * | pWidth, | |||
| long * | pHeight | |||
| ) |
Definition at line 1099 of file winctrl.cpp.
References CheckConnected, CheckPointer, GetTargetRect(), HEIGHT, m_pInterfaceLock, m_pPin, and WIDTH.
| STDMETHODIMP CBaseControlVideo::SetDefaultDestinationPosition | ( | ) |
Definition at line 1431 of file winctrl.cpp.
References CheckConnected, FAILED, hr, HRESULT, m_pInterfaceLock, m_pPin, OnUpdateRectangles(), and SetDefaultTargetRect().
| STDMETHODIMP CBaseControlVideo::IsUsingDefaultDestination | ( | ) |
Definition at line 1442 of file winctrl.cpp.
References CheckConnected, IsDefaultTargetRect(), m_pInterfaceLock, and m_pPin.
| STDMETHODIMP CBaseControlVideo::GetCurrentImage | ( | long * | pBufferSize, | |
| long * | pVideoImage | |||
| ) |
Definition at line 1450 of file winctrl.cpp.
References CheckConnected, CheckPointer, E_OUTOFMEMORY, GetImageSize(), GetSourceRect(), CBaseFilter::GetState(), GetStaticImage(), GetVideoFormat(), m_pFilter, m_pInterfaceLock, m_pPin, and NULL.
CBaseFilter* CBaseControlVideo::m_pFilter [protected] |
Definition at line 111 of file winctrl.h.
Referenced by CBaseControlVideo(), GetCurrentImage(), and OnVideoSizeChange().
CBasePin* CBaseControlVideo::m_pPin [protected] |
Definition at line 112 of file winctrl.h.
Referenced by get_AvgTimePerFrame(), get_BitErrorRate(), get_BitRate(), get_DestinationHeight(), get_DestinationLeft(), get_DestinationTop(), get_DestinationWidth(), get_SourceHeight(), get_SourceLeft(), get_SourceTop(), get_SourceWidth(), get_VideoHeight(), get_VideoWidth(), GetCurrentImage(), GetDestinationPosition(), GetSourcePosition(), GetVideoPaletteEntries(), GetVideoSize(), IsUsingDefaultDestination(), IsUsingDefaultSource(), put_DestinationHeight(), put_DestinationLeft(), put_DestinationTop(), put_DestinationWidth(), put_SourceHeight(), put_SourceLeft(), put_SourceTop(), put_SourceWidth(), SetControlVideoPin(), SetDefaultDestinationPosition(), SetDefaultSourcePosition(), SetDestinationPosition(), and SetSourcePosition().
CCritSec* CBaseControlVideo::m_pInterfaceLock [protected] |
Definition at line 113 of file winctrl.h.
Referenced by CBaseControlVideo(), get_AvgTimePerFrame(), get_BitErrorRate(), get_BitRate(), get_DestinationHeight(), get_DestinationLeft(), get_DestinationTop(), get_DestinationWidth(), get_SourceHeight(), get_SourceLeft(), get_SourceTop(), get_SourceWidth(), get_VideoHeight(), get_VideoWidth(), GetCurrentImage(), GetDestinationPosition(), GetSourcePosition(), GetVideoPaletteEntries(), GetVideoSize(), IsUsingDefaultDestination(), IsUsingDefaultSource(), put_DestinationHeight(), put_DestinationLeft(), put_DestinationTop(), put_DestinationWidth(), put_SourceHeight(), put_SourceLeft(), put_SourceTop(), put_SourceWidth(), SetDefaultDestinationPosition(), SetDefaultSourcePosition(), SetDestinationPosition(), and SetSourcePosition().
1.5.6