CBaseControlVideo Class Reference

#include <winctrl.h>

Inheritance diagram for CBaseControlVideo:

CBaseBasicVideo CUnknown CBaseObject

List of all members.

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

CBaseFilterm_pFilter
CBasePinm_pPin
CCritSecm_pInterfaceLock


Detailed Description

Definition at line 107 of file winctrl.h.


Constructor & Destructor Documentation

CBaseControlVideo::CBaseControlVideo ( CBaseFilter pFilter,
CCritSec pInterfaceLock,
TCHAR pName,
LPUNKNOWN  pUnk,
HRESULT *  phr 
)

Definition at line 860 of file winctrl.cpp.

References ASSERT, m_pFilter, and m_pInterfaceLock.


Member Function Documentation

virtual HRESULT CBaseControlVideo::IsDefaultTargetRect (  )  [virtual]

virtual HRESULT CBaseControlVideo::SetDefaultTargetRect (  )  [virtual]

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]

virtual HRESULT CBaseControlVideo::SetSourceRect ( RECT *  pSourceRect  )  [virtual]

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]

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]

Definition at line 160 of file winctrl.h.

References m_pPin.

HRESULT CBaseControlVideo::CheckSourceRect ( RECT *  pSourceRect  )  [virtual]

HRESULT CBaseControlVideo::CheckTargetRect ( RECT *  pTargetRect  )  [virtual]

STDMETHODIMP CBaseControlVideo::get_AvgTimePerFrame ( REFTIME *  pAvgTimePerFrame  ) 

STDMETHODIMP CBaseControlVideo::get_BitRate ( long *  pBitRate  ) 

STDMETHODIMP CBaseControlVideo::get_BitErrorRate ( long *  pBitErrorRate  ) 

STDMETHODIMP CBaseControlVideo::get_VideoWidth ( long *  pVideoWidth  ) 

STDMETHODIMP CBaseControlVideo::get_VideoHeight ( long *  pVideoHeight  ) 

STDMETHODIMP CBaseControlVideo::put_SourceLeft ( long  SourceLeft  ) 

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  ) 

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  ) 

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  ) 

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  ) 

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  ) 

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  ) 

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  ) 

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 
)

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 
)

STDMETHODIMP CBaseControlVideo::SetDefaultSourcePosition (  ) 

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 
)

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 (  ) 

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 
)


Member Data Documentation

Definition at line 111 of file winctrl.h.

Referenced by CBaseControlVideo(), GetCurrentImage(), and OnVideoSizeChange().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:34 2008 by  doxygen 1.5.6