AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
amextra.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // File: AMExtra.h
3 //
4 // Desc: DirectShow base classes.
5 //
6 // Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
8 
9 
10 #ifndef __AMEXTRA__
11 #define __AMEXTRA__
12 
13 // Simple rendered input pin
14 //
15 // NOTE if your filter queues stuff before rendering then it may not be
16 // appropriate to use this class
17 //
18 // In that case queue the end of stream condition until the last sample
19 // is actually rendered and flush the condition appropriately
20 
22 {
23 public:
24 
25  CRenderedInputPin(__in_opt LPCTSTR pObjectName,
26  __in CBaseFilter *pFilter,
27  __in CCritSec *pLock,
28  __inout HRESULT *phr,
29  __in_opt LPCWSTR pName);
30 #ifdef UNICODE
31  CRenderedInputPin(__in_opt LPCSTR pObjectName,
32  __in CBaseFilter *pFilter,
33  __in CCritSec *pLock,
34  __inout HRESULT *phr,
35  __in_opt LPCWSTR pName);
36 #endif
37 
38  // Override methods to track end of stream state
39  STDMETHODIMP EndOfStream();
40  STDMETHODIMP EndFlush();
41 
42  HRESULT Active();
43  HRESULT Run(REFERENCE_TIME tStart);
44 
45 protected:
46 
47  // Member variables to track state
48  BOOL m_bAtEndOfStream; // Set by EndOfStream
49  BOOL m_bCompleteNotified; // Set when we notify for EC_COMPLETE
50 
51 private:
52  void DoCompleteHandling();
53 };
54 
55 #endif // __AMEXTRA__
56 
CRenderedInputPin
Definition: amextra.h:21
CRenderedInputPin::Run
HRESULT Run(REFERENCE_TIME tStart)
Definition: amextra.cpp:80
pName
CHAR * pName
Definition: amvideo.cpp:26
CCritSec
Definition: wxutil.h:18
CRenderedInputPin::EndFlush
STDMETHODIMP EndFlush()
Definition: amextra.cpp:66
CRenderedInputPin::m_bAtEndOfStream
BOOL m_bAtEndOfStream
Definition: amextra.h:48
CRenderedInputPin::Active
HRESULT Active()
Definition: amextra.cpp:93
CBaseFilter
Definition: amfilter.h:148
CRenderedInputPin::EndOfStream
STDMETHODIMP EndOfStream()
Definition: amextra.cpp:47
CBaseInputPin
Definition: amfilter.h:819
CRenderedInputPin::m_bCompleteNotified
BOOL m_bCompleteNotified
Definition: amextra.h:49
CRenderedInputPin::CRenderedInputPin
CRenderedInputPin(__in_opt LPCTSTR pObjectName, __in CBaseFilter *pFilter, __in CCritSec *pLock, __inout HRESULT *phr, __in_opt LPCWSTR pName)
Definition: amextra.cpp:21