AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
CBaseVideoRenderer Class Reference

#include <renbase.h>

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

Public Member Functions

 CBaseVideoRenderer (REFCLSID RenderClass, __in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __inout HRESULT *phr)
 
 ~CBaseVideoRenderer ()
 
STDMETHODIMP SetSink (IQualityControl *piqc)
 
STDMETHODIMP Notify (IBaseFilter *pSelf, Quality q)
 
void OnRenderStart (IMediaSample *pMediaSample)
 
void OnRenderEnd (IMediaSample *pMediaSample)
 
void OnWaitStart ()
 
void OnWaitEnd ()
 
HRESULT OnStartStreaming ()
 
HRESULT OnStopStreaming ()
 
void ThrottleWait ()
 
void PreparePerformanceData (int trLate, int trFrame)
 
virtual void RecordFrameLateness (int trLate, int trFrame)
 
virtual void OnDirectRender (IMediaSample *pMediaSample)
 
virtual HRESULT ResetStreamingTimes ()
 
BOOL ScheduleSample (IMediaSample *pMediaSample)
 
HRESULT ShouldDrawSampleNow (IMediaSample *pMediaSample, __inout REFERENCE_TIME *ptrStart, __inout REFERENCE_TIME *ptrEnd)
 
virtual HRESULT SendQuality (REFERENCE_TIME trLate, REFERENCE_TIME trRealStream)
 
STDMETHODIMP JoinFilterGraph (__inout_opt IFilterGraph *pGraph, __in_opt LPCWSTR pName)
 
HRESULT GetStdDev (int nSamples, __out int *piResult, LONGLONG llSumSq, LONGLONG iTot)
 
STDMETHODIMP get_FramesDroppedInRenderer (__out int *cFramesDropped)
 
STDMETHODIMP get_FramesDrawn (__out int *pcFramesDrawn)
 
STDMETHODIMP get_AvgFrameRate (__out int *piAvgFrameRate)
 
STDMETHODIMP get_Jitter (__out int *piJitter)
 
STDMETHODIMP get_AvgSyncOffset (__out int *piAvg)
 
STDMETHODIMP get_DevSyncOffset (__out int *piDev)
 
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, __deref_out VOID **ppv)
 
- Public Member Functions inherited from CBaseRenderer
 CBaseRenderer (REFCLSID RenderClass, __in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __inout HRESULT *phr)
 
 ~CBaseRenderer ()
 
virtual HRESULT GetMediaPositionInterface (REFIID riid, __deref_out void **ppv)
 
STDMETHODIMP NonDelegatingQueryInterface (REFIID, __deref_out void **)
 
virtual HRESULT SourceThreadCanWait (BOOL bCanWait)
 
virtual HRESULT WaitForRenderTime ()
 
virtual HRESULT CompleteStateChange (FILTER_STATE OldState)
 
BOOL IsEndOfStream ()
 
BOOL IsEndOfStreamDelivered ()
 
BOOL IsStreaming ()
 
void SetAbortSignal (BOOL bAbort)
 
virtual void OnReceiveFirstSample (IMediaSample *pMediaSample)
 
CAMEventGetRenderEvent ()
 
void Ready ()
 
void NotReady ()
 
BOOL CheckReady ()
 
virtual int GetPinCount ()
 
virtual CBasePinGetPin (int n)
 
FILTER_STATE GetRealState ()
 
void SendRepaint ()
 
void SendNotifyWindow (IPin *pPin, HWND hwnd)
 
BOOL OnDisplayChange ()
 
void SetRepaintStatus (BOOL bRepaint)
 
STDMETHODIMP Stop ()
 
STDMETHODIMP Pause ()
 
STDMETHODIMP Run (REFERENCE_TIME StartTime)
 
STDMETHODIMP GetState (DWORD dwMSecs, __out FILTER_STATE *State)
 
STDMETHODIMP FindPin (LPCWSTR Id, __deref_out IPin **ppPin)
 
virtual void PrepareRender ()
 
virtual HRESULT GetSampleTimes (IMediaSample *pMediaSample, __out REFERENCE_TIME *pStartTime, __out REFERENCE_TIME *pEndTime)
 
virtual HRESULT ShouldDrawSampleNow (IMediaSample *pMediaSample, __out REFERENCE_TIME *ptrStart, __out REFERENCE_TIME *ptrEnd)
 
void TimerCallback ()
 
void ResetEndOfStreamTimer ()
 
HRESULT NotifyEndOfStream ()
 
virtual HRESULT SendEndOfStream ()
 
virtual HRESULT ResetEndOfStream ()
 
virtual HRESULT EndOfStream ()
 
void SignalTimerFired ()
 
virtual HRESULT CancelNotification ()
 
virtual HRESULT ClearPendingSample ()
 
virtual HRESULT Active ()
 
virtual HRESULT Inactive ()
 
virtual HRESULT StartStreaming ()
 
virtual HRESULT StopStreaming ()
 
virtual HRESULT BeginFlush ()
 
virtual HRESULT EndFlush ()
 
virtual HRESULT BreakConnect ()
 
virtual HRESULT SetMediaType (const CMediaType *pmt)
 
virtual HRESULT CompleteConnect (IPin *pReceivePin)
 
virtual HRESULT PrepareReceive (IMediaSample *pMediaSample)
 
virtual HRESULT Receive (IMediaSample *pMediaSample)
 
virtual BOOL HaveCurrentSample ()
 
virtual IMediaSample * GetCurrentSample ()
 
virtual HRESULT Render (IMediaSample *pMediaSample)
 
virtual HRESULT DoRenderSample (IMediaSample *pMediaSample) PURE
 
virtual HRESULT CheckMediaType (const CMediaType *) PURE
 
void WaitForReceiveToComplete ()
 
- Public Member Functions inherited from CBaseFilter
 CBaseFilter (__in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __in CCritSec *pLock, REFCLSID clsid)
 
 CBaseFilter (__in_opt LPCTSTR pName, __in_opt LPUNKNOWN pUnk, __in CCritSec *pLock, REFCLSID clsid, __inout HRESULT *phr)
 
 ~CBaseFilter ()
 
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, __deref_out void **ppv)
 
STDMETHODIMP GetClassID (__out CLSID *pClsID)
 
STDMETHODIMP GetState (DWORD dwMSecs, __out FILTER_STATE *State)
 
STDMETHODIMP SetSyncSource (__in_opt IReferenceClock *pClock)
 
STDMETHODIMP GetSyncSource (__deref_out_opt IReferenceClock **pClock)
 
STDMETHODIMP Stop ()
 
STDMETHODIMP Pause ()
 
STDMETHODIMP Run (REFERENCE_TIME tStart)
 
virtual HRESULT StreamTime (CRefTime &rtStream)
 
BOOL IsActive ()
 
BOOL IsStopped ()
 
STDMETHODIMP EnumPins (__deref_out IEnumPins **ppEnum)
 
STDMETHODIMP FindPin (LPCWSTR Id, __deref_out IPin **ppPin)
 
STDMETHODIMP QueryFilterInfo (__out FILTER_INFO *pInfo)
 
STDMETHODIMP JoinFilterGraph (__inout_opt IFilterGraph *pGraph, __in_opt LPCWSTR pName)
 
STDMETHODIMP QueryVendorInfo (__deref_out LPWSTR *pVendorInfo)
 
HRESULT NotifyEvent (long EventCode, LONG_PTR EventParam1, LONG_PTR EventParam2)
 
__out_opt IFilterGraph * GetFilterGraph ()
 
HRESULT ReconnectPin (IPin *pPin, __in_opt AM_MEDIA_TYPE const *pmt)
 
virtual LONG GetPinVersion ()
 
void IncrementPinVersion ()
 
STDMETHODIMP Register ()
 
STDMETHODIMP Unregister ()
 
virtual __out_opt LPAMOVIESETUP_FILTER GetSetupData ()
 
- 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

int m_nNormal
 
BOOL m_bSupplierHandlingQuality
 
int m_trThrottle
 
int m_trRenderAvg
 
int m_trRenderLast
 
int m_tRenderStart
 
int m_trEarliness
 
int m_trTarget
 
int m_trWaitAvg
 
int m_trFrameAvg
 
int m_trDuration
 
REFERENCE_TIME m_trRememberStampForPerf
 
int m_cFramesDropped
 
int m_cFramesDrawn
 
LONGLONG m_iTotAcc
 
LONGLONG m_iSumSqAcc
 
REFERENCE_TIME m_trLastDraw
 
LONGLONG m_iSumSqFrameTime
 
LONGLONG m_iSumFrameTime
 
int m_trLate
 
int m_trFrame
 
int m_tStreamingStart
 
- Protected Attributes inherited from CBaseRenderer
CRendererPosPassThrum_pPosition
 
CAMEvent m_RenderEvent
 
CAMEvent m_ThreadSignal
 
CAMEvent m_evComplete
 
BOOL m_bAbort
 
BOOL m_bStreaming
 
DWORD_PTR m_dwAdvise
 
IMediaSample * m_pMediaSample
 
BOOL m_bEOS
 
BOOL m_bEOSDelivered
 
CRendererInputPinm_pInputPin
 
CCritSec m_InterfaceLock
 
CCritSec m_RendererLock
 
IQualityControl * m_pQSink
 
BOOL m_bRepaintStatus
 
volatile BOOL m_bInReceive
 
REFERENCE_TIME m_SignalTime
 
UINT m_EndOfStreamTimer
 
CCritSec m_ObjectCreationLock
 
- Protected Attributes inherited from CBaseFilter
FILTER_STATE m_State
 
IReferenceClock * m_pClock
 
CRefTime m_tStart
 
CLSID m_clsid
 
CCritSecm_pLock
 
WCHAR * m_pName
 
IFilterGraph * m_pGraph
 
IMediaEventSink * m_pSink
 
LONG m_PinVersion
 
- 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 250 of file renbase.h.

Constructor & Destructor Documentation

◆ CBaseVideoRenderer()

CBaseVideoRenderer::CBaseVideoRenderer ( REFCLSID  RenderClass,
__in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  pUnk,
__inout HRESULT *  phr 
)

Definition at line 1770 of file renbase.cpp.

◆ ~CBaseVideoRenderer()

CBaseVideoRenderer::~CBaseVideoRenderer ( )

Definition at line 1809 of file renbase.cpp.

Member Function Documentation

◆ get_AvgFrameRate()

STDMETHODIMP CBaseVideoRenderer::get_AvgFrameRate ( __out int *  piAvgFrameRate)

Definition at line 2661 of file renbase.cpp.

◆ get_AvgSyncOffset()

STDMETHODIMP CBaseVideoRenderer::get_AvgSyncOffset ( __out int *  piAvg)

Definition at line 2688 of file renbase.cpp.

◆ get_DevSyncOffset()

STDMETHODIMP CBaseVideoRenderer::get_DevSyncOffset ( __out int *  piDev)

Definition at line 2793 of file renbase.cpp.

◆ get_FramesDrawn()

STDMETHODIMP CBaseVideoRenderer::get_FramesDrawn ( __out int *  pcFramesDrawn)

Definition at line 2649 of file renbase.cpp.

◆ get_FramesDroppedInRenderer()

STDMETHODIMP CBaseVideoRenderer::get_FramesDroppedInRenderer ( __out int *  cFramesDropped)

Definition at line 2637 of file renbase.cpp.

◆ get_Jitter()

STDMETHODIMP CBaseVideoRenderer::get_Jitter ( __out int *  piJitter)

Definition at line 2807 of file renbase.cpp.

◆ GetStdDev()

HRESULT CBaseVideoRenderer::GetStdDev ( int  nSamples,
__out int *  piResult,
LONGLONG  llSumSq,
LONGLONG  iTot 
)

Definition at line 2754 of file renbase.cpp.

◆ JoinFilterGraph()

STDMETHODIMP CBaseVideoRenderer::JoinFilterGraph ( __inout_opt IFilterGraph *  pGraph,
__in_opt LPCWSTR  pName 
)

Definition at line 2839 of file renbase.cpp.

◆ NonDelegatingQueryInterface()

STDMETHODIMP CBaseVideoRenderer::NonDelegatingQueryInterface ( REFIID  riid,
__deref_out VOID **  ppv 
)

Definition at line 2822 of file renbase.cpp.

◆ Notify()

STDMETHODIMP CBaseVideoRenderer::Notify ( IBaseFilter *  pSelf,
Quality  q 
)

Definition at line 2087 of file renbase.cpp.

◆ OnDirectRender()

void CBaseVideoRenderer::OnDirectRender ( IMediaSample *  pMediaSample)
virtual

Definition at line 2033 of file renbase.cpp.

◆ OnRenderEnd()

void CBaseVideoRenderer::OnRenderEnd ( IMediaSample *  pMediaSample)
virtual

Reimplemented from CBaseRenderer.

Definition at line 2062 of file renbase.cpp.

◆ OnRenderStart()

void CBaseVideoRenderer::OnRenderStart ( IMediaSample *  pMediaSample)
virtual

Reimplemented from CBaseRenderer.

Definition at line 2050 of file renbase.cpp.

◆ OnStartStreaming()

HRESULT CBaseVideoRenderer::OnStartStreaming ( )
virtual

Reimplemented from CBaseRenderer.

Definition at line 1876 of file renbase.cpp.

◆ OnStopStreaming()

HRESULT CBaseVideoRenderer::OnStopStreaming ( )
virtual

Reimplemented from CBaseRenderer.

Definition at line 1885 of file renbase.cpp.

◆ OnWaitEnd()

void CBaseVideoRenderer::OnWaitEnd ( )
virtual

Reimplemented from CBaseRenderer.

Definition at line 1908 of file renbase.cpp.

◆ OnWaitStart()

void CBaseVideoRenderer::OnWaitStart ( )
virtual

Reimplemented from CBaseRenderer.

Definition at line 1895 of file renbase.cpp.

◆ PreparePerformanceData()

void CBaseVideoRenderer::PreparePerformanceData ( int  trLate,
int  trFrame 
)

Definition at line 1950 of file renbase.cpp.

◆ RecordFrameLateness()

void CBaseVideoRenderer::RecordFrameLateness ( int  trLate,
int  trFrame 
)
virtual

Definition at line 1965 of file renbase.cpp.

◆ ResetStreamingTimes()

HRESULT CBaseVideoRenderer::ResetStreamingTimes ( )
virtual

Definition at line 1838 of file renbase.cpp.

◆ ScheduleSample()

BOOL CBaseVideoRenderer::ScheduleSample ( IMediaSample *  pMediaSample)
virtual

Reimplemented from CBaseRenderer.

Definition at line 2612 of file renbase.cpp.

◆ SendQuality()

HRESULT CBaseVideoRenderer::SendQuality ( REFERENCE_TIME  trLate,
REFERENCE_TIME  trRealStream 
)
virtual

Definition at line 2170 of file renbase.cpp.

◆ SetSink()

STDMETHODIMP CBaseVideoRenderer::SetSink ( IQualityControl *  piqc)

Definition at line 2078 of file renbase.cpp.

◆ ShouldDrawSampleNow()

HRESULT CBaseVideoRenderer::ShouldDrawSampleNow ( IMediaSample *  pMediaSample,
__inout REFERENCE_TIME *  ptrStart,
__inout REFERENCE_TIME *  ptrEnd 
)

Definition at line 2300 of file renbase.cpp.

◆ ThrottleWait()

void CBaseVideoRenderer::ThrottleWait ( )

Definition at line 2013 of file renbase.cpp.

Member Data Documentation

◆ m_bSupplierHandlingQuality

BOOL CBaseVideoRenderer::m_bSupplierHandlingQuality
protected

Definition at line 282 of file renbase.h.

◆ m_cFramesDrawn

int CBaseVideoRenderer::m_cFramesDrawn
protected

Definition at line 380 of file renbase.h.

◆ m_cFramesDropped

int CBaseVideoRenderer::m_cFramesDropped
protected

Definition at line 379 of file renbase.h.

◆ m_iSumFrameTime

LONGLONG CBaseVideoRenderer::m_iSumFrameTime
protected

Definition at line 390 of file renbase.h.

◆ m_iSumSqAcc

LONGLONG CBaseVideoRenderer::m_iSumSqAcc
protected

Definition at line 385 of file renbase.h.

◆ m_iSumSqFrameTime

LONGLONG CBaseVideoRenderer::m_iSumSqFrameTime
protected

Definition at line 389 of file renbase.h.

◆ m_iTotAcc

LONGLONG CBaseVideoRenderer::m_iTotAcc
protected

Definition at line 384 of file renbase.h.

◆ m_nNormal

int CBaseVideoRenderer::m_nNormal
protected

Definition at line 273 of file renbase.h.

◆ m_trDuration

int CBaseVideoRenderer::m_trDuration
protected

Definition at line 345 of file renbase.h.

◆ m_trEarliness

int CBaseVideoRenderer::m_trEarliness
protected

Definition at line 322 of file renbase.h.

◆ m_tRenderStart

int CBaseVideoRenderer::m_tRenderStart
protected

Definition at line 315 of file renbase.h.

◆ m_trFrame

int CBaseVideoRenderer::m_trFrame
protected

Definition at line 398 of file renbase.h.

◆ m_trFrameAvg

int CBaseVideoRenderer::m_trFrameAvg
protected

Definition at line 344 of file renbase.h.

◆ m_trLastDraw

REFERENCE_TIME CBaseVideoRenderer::m_trLastDraw
protected

Definition at line 388 of file renbase.h.

◆ m_trLate

int CBaseVideoRenderer::m_trLate
protected

Definition at line 397 of file renbase.h.

◆ m_trRememberStampForPerf

REFERENCE_TIME CBaseVideoRenderer::m_trRememberStampForPerf
protected

Definition at line 365 of file renbase.h.

◆ m_trRenderAvg

int CBaseVideoRenderer::m_trRenderAvg
protected

Definition at line 313 of file renbase.h.

◆ m_trRenderLast

int CBaseVideoRenderer::m_trRenderLast
protected

Definition at line 314 of file renbase.h.

◆ m_trTarget

int CBaseVideoRenderer::m_trTarget
protected

Definition at line 332 of file renbase.h.

◆ m_trThrottle

int CBaseVideoRenderer::m_trThrottle
protected

Definition at line 308 of file renbase.h.

◆ m_trWaitAvg

int CBaseVideoRenderer::m_trWaitAvg
protected

Definition at line 337 of file renbase.h.

◆ m_tStreamingStart

int CBaseVideoRenderer::m_tStreamingStart
protected

Definition at line 400 of file renbase.h.


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