AJA NTV2 SDK  18.0.0.2717
NTV2 SDK 18.0.0.2717
CBaseControlVideo Class Reference

#include <winctrl.h>

Inheritance diagram for CBaseControlVideo:
[legend]
Collaboration diagram for CBaseControlVideo:
[legend]

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 (__inout long *pBufferSize, __out_bcount_part(*pBufferSize, *pBufferSize) long *pDIBImage) PURE
 
virtual __out VIDEOINFOHEADER * GetVideoFormat () PURE
 
HRESULT GetImageSize (__in VIDEOINFOHEADER *pVideoInfo, __out LONG *pBufferSize, __in RECT *pSourceRect)
 
HRESULT CopyImage (IMediaSample *pMediaSample, __in VIDEOINFOHEADER *pVideoInfo, __inout LONG *pBufferSize, __out_bcount_part(*pBufferSize, *pBufferSize) BYTE *pVideoImage, __in RECT *pSourceRect)
 
virtual HRESULT OnUpdateRectangles ()
 
virtual HRESULT OnVideoSizeChange ()
 
void SetControlVideoPin (__inout CBasePin *pPin)
 
virtual HRESULT CheckSourceRect (__in RECT *pSourceRect)
 
virtual HRESULT CheckTargetRect (__in RECT *pTargetRect)
 
 CBaseControlVideo (__inout CBaseFilter *pFilter, __in CCritSec *pInterfaceLock, __in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __inout HRESULT *phr)
 
STDMETHODIMP get_AvgTimePerFrame (__out REFTIME *pAvgTimePerFrame)
 
STDMETHODIMP get_BitRate (__out long *pBitRate)
 
STDMETHODIMP get_BitErrorRate (__out long *pBitErrorRate)
 
STDMETHODIMP get_VideoWidth (__out long *pVideoWidth)
 
STDMETHODIMP get_VideoHeight (__out long *pVideoHeight)
 
STDMETHODIMP put_SourceLeft (long SourceLeft)
 
STDMETHODIMP get_SourceLeft (__out long *pSourceLeft)
 
STDMETHODIMP put_SourceWidth (long SourceWidth)
 
STDMETHODIMP get_SourceWidth (__out long *pSourceWidth)
 
STDMETHODIMP put_SourceTop (long SourceTop)
 
STDMETHODIMP get_SourceTop (__out long *pSourceTop)
 
STDMETHODIMP put_SourceHeight (long SourceHeight)
 
STDMETHODIMP get_SourceHeight (__out long *pSourceHeight)
 
STDMETHODIMP put_DestinationLeft (long DestinationLeft)
 
STDMETHODIMP get_DestinationLeft (__out long *pDestinationLeft)
 
STDMETHODIMP put_DestinationWidth (long DestinationWidth)
 
STDMETHODIMP get_DestinationWidth (__out long *pDestinationWidth)
 
STDMETHODIMP put_DestinationTop (long DestinationTop)
 
STDMETHODIMP get_DestinationTop (__out long *pDestinationTop)
 
STDMETHODIMP put_DestinationHeight (long DestinationHeight)
 
STDMETHODIMP get_DestinationHeight (__out long *pDestinationHeight)
 
STDMETHODIMP GetVideoSize (__out long *pWidth, __out long *pHeight)
 
STDMETHODIMP SetSourcePosition (long Left, long Top, long Width, long Height)
 
STDMETHODIMP GetSourcePosition (__out long *pLeft, __out long *pTop, __out long *pWidth, __out long *pHeight)
 
STDMETHODIMP GetVideoPaletteEntries (long StartIndex, long Entries, __out long *pRetrieved, __out_ecount_part(Entries, *pRetrieved) long *pPalette)
 
STDMETHODIMP SetDefaultSourcePosition ()
 
STDMETHODIMP IsUsingDefaultSource ()
 
STDMETHODIMP SetDestinationPosition (long Left, long Top, long Width, long Height)
 
STDMETHODIMP GetDestinationPosition (__out long *pLeft, __out long *pTop, __out long *pWidth, __out long *pHeight)
 
STDMETHODIMP SetDefaultDestinationPosition ()
 
STDMETHODIMP IsUsingDefaultDestination ()
 
STDMETHODIMP GetCurrentImage (__inout long *pBufferSize, __out_bcount_part(*pBufferSize, *pBufferSize) long *pVideoImage)
 
- Public Member Functions inherited from CBaseBasicVideo
 CBaseBasicVideo (__in_opt LPCTSTR, __in_opt LPUNKNOWN)
 
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, __deref_out void **ppv)
 
STDMETHODIMP GetTypeInfoCount (__out UINT *pctinfo)
 
STDMETHODIMP GetTypeInfo (UINT itinfo, LCID lcid, __deref_out ITypeInfo **pptinfo)
 
STDMETHODIMP GetIDsOfNames (REFIID riid, __in_ecount(cNames) LPOLESTR *rgszNames, UINT cNames, LCID lcid, __out_ecount(cNames) DISPID *rgdispid)
 
STDMETHODIMP Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, __in DISPPARAMS *pdispparams, __out_opt VARIANT *pvarResult, __out_opt EXCEPINFO *pexcepinfo, __out_opt UINT *puArgErr)
 
STDMETHODIMP GetPreferredAspectRatio (__out long *plAspectX, __out long *plAspectY)
 
- Public Member Functions inherited from CUnknown
 CUnknown (__in_opt LPCTSTR pName, __in_opt LPUNKNOWN pUnk)
 
virtual ~CUnknown ()
 
 CUnknown (__in_opt LPCTSTR Name, __in_opt LPUNKNOWN pUnk, __inout_opt HRESULT *phr)
 
LPUNKNOWN GetOwner () const
 
STDMETHODIMP NonDelegatingQueryInterface (REFIID, __deref_out void **)
 
 STDMETHODIMP_ (ULONG) NonDelegatingAddRef()
 
 STDMETHODIMP_ (ULONG) NonDelegatingRelease()
 
- Public Member Functions inherited from CBaseObject
 CBaseObject (__in_opt LPCTSTR pName)
 
 ~CBaseObject ()
 

Protected Attributes

CBaseFilterm_pFilter
 
CBasePinm_pPin
 
CCritSecm_pInterfaceLock
 
- Protected Attributes inherited from CUnknown
volatile LONG m_cRef
 

Additional Inherited Members

- Static Public Member Functions inherited from CBaseObject
static LONG ObjectsActive ()
 

Detailed Description

Definition at line 115 of file winctrl.h.

Constructor & Destructor Documentation

◆ CBaseControlVideo()

CBaseControlVideo::CBaseControlVideo ( __inout CBaseFilter pFilter,
__in CCritSec pInterfaceLock,
__in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  pUnk,
__inout HRESULT *  phr 
)

Definition at line 1093 of file winctrl.cpp.

Member Function Documentation

◆ CheckSourceRect()

HRESULT CBaseControlVideo::CheckSourceRect ( __in RECT *  pSourceRect)
virtual

Definition at line 2020 of file winctrl.cpp.

◆ CheckTargetRect()

HRESULT CBaseControlVideo::CheckTargetRect ( __in RECT *  pTargetRect)
virtual

Definition at line 2057 of file winctrl.cpp.

◆ CopyImage()

HRESULT CBaseControlVideo::CopyImage ( IMediaSample *  pMediaSample,
__in VIDEOINFOHEADER *  pVideoInfo,
__inout LONG *  pBufferSize,
__out_bcount_part *, *pBufferSize BYTE *  pVideoImage,
__in RECT *  pSourceRect 
)

Definition at line 1888 of file winctrl.cpp.

◆ get_AvgTimePerFrame()

STDMETHODIMP CBaseControlVideo::get_AvgTimePerFrame ( __out REFTIME *  pAvgTimePerFrame)

Definition at line 1112 of file winctrl.cpp.

◆ get_BitErrorRate()

STDMETHODIMP CBaseControlVideo::get_BitErrorRate ( __out long *  pBitErrorRate)

Definition at line 1146 of file winctrl.cpp.

◆ get_BitRate()

STDMETHODIMP CBaseControlVideo::get_BitRate ( __out long *  pBitRate)

Definition at line 1130 of file winctrl.cpp.

◆ get_DestinationHeight()

STDMETHODIMP CBaseControlVideo::get_DestinationHeight ( __out long *  pDestinationHeight)

Definition at line 1744 of file winctrl.cpp.

◆ get_DestinationLeft()

STDMETHODIMP CBaseControlVideo::get_DestinationLeft ( __out long *  pDestinationLeft)

Definition at line 1614 of file winctrl.cpp.

◆ get_DestinationTop()

STDMETHODIMP CBaseControlVideo::get_DestinationTop ( __out long *  pDestinationTop)

Definition at line 1702 of file winctrl.cpp.

◆ get_DestinationWidth()

STDMETHODIMP CBaseControlVideo::get_DestinationWidth ( __out long *  pDestinationWidth)

Definition at line 1656 of file winctrl.cpp.

◆ get_SourceHeight()

STDMETHODIMP CBaseControlVideo::get_SourceHeight ( __out long *  pSourceHeight)

Definition at line 1568 of file winctrl.cpp.

◆ get_SourceLeft()

STDMETHODIMP CBaseControlVideo::get_SourceLeft ( __out long *  pSourceLeft)

Definition at line 1436 of file winctrl.cpp.

◆ get_SourceTop()

STDMETHODIMP CBaseControlVideo::get_SourceTop ( __out long *  pSourceTop)

Definition at line 1526 of file winctrl.cpp.

◆ get_SourceWidth()

STDMETHODIMP CBaseControlVideo::get_SourceWidth ( __out long *  pSourceWidth)

Definition at line 1480 of file winctrl.cpp.

◆ get_VideoHeight()

STDMETHODIMP CBaseControlVideo::get_VideoHeight ( __out long *  pVideoHeight)

Definition at line 1178 of file winctrl.cpp.

◆ get_VideoWidth()

STDMETHODIMP CBaseControlVideo::get_VideoWidth ( __out long *  pVideoWidth)

Definition at line 1162 of file winctrl.cpp.

◆ GetCurrentImage()

STDMETHODIMP CBaseControlVideo::GetCurrentImage ( __inout long *  pBufferSize,
__out_bcount_part *, *pBufferSize long *  pVideoImage 
)

Definition at line 1808 of file winctrl.cpp.

◆ GetDestinationPosition()

STDMETHODIMP CBaseControlVideo::GetDestinationPosition ( __out long *  pLeft,
__out long *  pTop,
__out long *  pWidth,
__out long *  pHeight 
)

Definition at line 1380 of file winctrl.cpp.

◆ GetImageSize()

HRESULT CBaseControlVideo::GetImageSize ( __in VIDEOINFOHEADER *  pVideoInfo,
__out LONG *  pBufferSize,
__in RECT *  pSourceRect 
)

Definition at line 1843 of file winctrl.cpp.

◆ GetSourcePosition()

STDMETHODIMP CBaseControlVideo::GetSourcePosition ( __out long *  pLeft,
__out long *  pTop,
__out long *  pWidth,
__out long *  pHeight 
)

Definition at line 1319 of file winctrl.cpp.

◆ GetSourceRect()

virtual HRESULT CBaseControlVideo::GetSourceRect ( RECT *  pSourceRect)
virtual

◆ GetStaticImage()

virtual HRESULT CBaseControlVideo::GetStaticImage ( __inout long *  pBufferSize,
__out_bcount_part *, *pBufferSize long *  pDIBImage 
)
virtual

◆ GetTargetRect()

virtual HRESULT CBaseControlVideo::GetTargetRect ( RECT *  pTargetRect)
virtual

◆ GetVideoFormat()

virtual __out VIDEOINFOHEADER* CBaseControlVideo::GetVideoFormat ( )
virtual

◆ GetVideoPaletteEntries()

STDMETHODIMP CBaseControlVideo::GetVideoPaletteEntries ( long  StartIndex,
long  Entries,
__out long *  pRetrieved,
__out_ecount_part(Entries, *pRetrieved) long *  pPalette 
)

Definition at line 1199 of file winctrl.cpp.

◆ GetVideoSize()

STDMETHODIMP CBaseControlVideo::GetVideoSize ( __out long *  pWidth,
__out long *  pHeight 
)

Definition at line 1265 of file winctrl.cpp.

◆ IsDefaultSourceRect()

virtual HRESULT CBaseControlVideo::IsDefaultSourceRect ( )
virtual

◆ IsDefaultTargetRect()

virtual HRESULT CBaseControlVideo::IsDefaultTargetRect ( )
virtual

◆ IsUsingDefaultDestination()

STDMETHODIMP CBaseControlVideo::IsUsingDefaultDestination ( )

Definition at line 1797 of file winctrl.cpp.

◆ IsUsingDefaultSource()

STDMETHODIMP CBaseControlVideo::IsUsingDefaultSource ( )

Definition at line 1773 of file winctrl.cpp.

◆ OnUpdateRectangles()

virtual HRESULT CBaseControlVideo::OnUpdateRectangles ( )
inlinevirtual

Definition at line 159 of file winctrl.h.

◆ OnVideoSizeChange()

HRESULT CBaseControlVideo::OnVideoSizeChange ( )
virtual

Definition at line 1996 of file winctrl.cpp.

◆ put_DestinationHeight()

STDMETHODIMP CBaseControlVideo::put_DestinationHeight ( long  DestinationHeight)

Definition at line 1717 of file winctrl.cpp.

◆ put_DestinationLeft()

STDMETHODIMP CBaseControlVideo::put_DestinationLeft ( long  DestinationLeft)

Definition at line 1586 of file winctrl.cpp.

◆ put_DestinationTop()

STDMETHODIMP CBaseControlVideo::put_DestinationTop ( long  DestinationTop)

Definition at line 1674 of file winctrl.cpp.

◆ put_DestinationWidth()

STDMETHODIMP CBaseControlVideo::put_DestinationWidth ( long  DestinationWidth)

Definition at line 1629 of file winctrl.cpp.

◆ put_SourceHeight()

STDMETHODIMP CBaseControlVideo::put_SourceHeight ( long  SourceHeight)

Definition at line 1541 of file winctrl.cpp.

◆ put_SourceLeft()

STDMETHODIMP CBaseControlVideo::put_SourceLeft ( long  SourceLeft)

Definition at line 1408 of file winctrl.cpp.

◆ put_SourceTop()

STDMETHODIMP CBaseControlVideo::put_SourceTop ( long  SourceTop)

Definition at line 1498 of file winctrl.cpp.

◆ put_SourceWidth()

STDMETHODIMP CBaseControlVideo::put_SourceWidth ( long  SourceWidth)

Definition at line 1453 of file winctrl.cpp.

◆ SetControlVideoPin()

void CBaseControlVideo::SetControlVideoPin ( __inout CBasePin pPin)
inline

Definition at line 168 of file winctrl.h.

◆ SetDefaultDestinationPosition()

STDMETHODIMP CBaseControlVideo::SetDefaultDestinationPosition ( )

Definition at line 1783 of file winctrl.cpp.

◆ SetDefaultSourcePosition()

STDMETHODIMP CBaseControlVideo::SetDefaultSourcePosition ( )

Definition at line 1759 of file winctrl.cpp.

◆ SetDefaultSourceRect()

virtual HRESULT CBaseControlVideo::SetDefaultSourceRect ( )
virtual

◆ SetDefaultTargetRect()

virtual HRESULT CBaseControlVideo::SetDefaultTargetRect ( )
virtual

◆ SetDestinationPosition()

STDMETHODIMP CBaseControlVideo::SetDestinationPosition ( long  Left,
long  Top,
long  Width,
long  Height 
)

Definition at line 1347 of file winctrl.cpp.

◆ SetSourcePosition()

STDMETHODIMP CBaseControlVideo::SetSourcePosition ( long  Left,
long  Top,
long  Width,
long  Height 
)

Definition at line 1287 of file winctrl.cpp.

◆ SetSourceRect()

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

◆ SetTargetRect()

virtual HRESULT CBaseControlVideo::SetTargetRect ( RECT *  pTargetRect)
virtual

Member Data Documentation

◆ m_pFilter

CBaseFilter* CBaseControlVideo::m_pFilter
protected

Definition at line 119 of file winctrl.h.

◆ m_pInterfaceLock

CCritSec* CBaseControlVideo::m_pInterfaceLock
protected

Definition at line 121 of file winctrl.h.

◆ m_pPin

CBasePin* CBaseControlVideo::m_pPin
protected

Definition at line 120 of file winctrl.h.


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