Mercurial > mplayer.hg
annotate loader/dshow/DS_Filter.h @ 33263:5f527a9a9521
Add an exit function.
This function will allow performing clean-up operations.
(MPlayer calls guiDone() before exiting, but only if the GUI has been
initialized, i.e. if guiInit() has been called successfully. Any
exit_player()/exit_player_with_rc() after GUI's cfg_read() until
guiInit(), or any exit_player() during guiInit() itself will end the GUI
without calling guiDone(). This exit function will at least handle
abortions during guiInit() itself. It will be called twice in case of an
guiExit() after GUI initialization - first directly, next by guiDone()
via MPlayer's exit_player_with_rc().)
author | ib |
---|---|
date | Tue, 03 May 2011 12:19:22 +0000 |
parents | 26f673ba0675 |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_DS_FILTER_H |
2 #define MPLAYER_DS_FILTER_H | |
168 | 3 |
4 #include "inputpin.h" | |
5 #include "outputpin.h" | |
713 | 6 |
22398
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
7 typedef struct { |
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
8 char* frame_pointer; |
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
9 long frame_size; |
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
10 } SampleProcUserData; |
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
11 |
168 | 12 /** |
1545 | 13 User will allocate and fill format structures, call Create(), |
14 and then set up m_pAll. | |
15 **/ | |
16 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
22398
diff
changeset
|
17 typedef struct DS_Filter DS_Filter; |
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
22398
diff
changeset
|
18 struct DS_Filter |
168 | 19 { |
20 int m_iHandle; | |
21 IBaseFilter* m_pFilter; | |
22 IPin* m_pInputPin; | |
23 IPin* m_pOutputPin; | |
3056 | 24 |
168 | 25 CBaseFilter* m_pSrcFilter; |
26 CBaseFilter2* m_pParentFilter; | |
27 IPin* m_pOurInput; | |
28 COutputPin* m_pOurOutput; | |
3056 | 29 |
168 | 30 AM_MEDIA_TYPE *m_pOurType, *m_pDestType; |
31 IMemAllocator* m_pAll; | |
32 IMemInputPin* m_pImp; | |
713 | 33 |
3056 | 34 void ( *Start )(DS_Filter*); |
35 void ( *Stop )(DS_Filter*); | |
713 | 36 }; |
168 | 37 |
3056 | 38 DS_Filter* DS_FilterCreate(const char* dllname, const GUID* id, |
22398
49f01f8fbd60
Rework of copying samples from directshow codecs.
voroshil
parents:
3467
diff
changeset
|
39 AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt,SampleProcUserData* pUserData); |
3056 | 40 void DS_Filter_Destroy(DS_Filter* This); |
41 | |
26045 | 42 #endif /* MPLAYER_DS_FILTER_H */ |