Mercurial > mplayer.hg
annotate loader/dmo/DMO_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_DMO_FILTER_H |
2 #define MPLAYER_DMO_FILTER_H | |
8294 | 3 |
4 #include "dmo_guids.h" | |
5 #include "dmo_interfaces.h" | |
6 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
25547
diff
changeset
|
7 typedef struct DMO_Filter |
8294 | 8 { |
9 int m_iHandle; | |
10 IDMOVideoOutputOptimizations* m_pOptim; | |
11 IMediaObject* m_pMedia; | |
12 IMediaObjectInPlace* m_pInPlace; | |
13 AM_MEDIA_TYPE *m_pOurType, *m_pDestType; | |
14 } DMO_Filter; | |
15 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
25547
diff
changeset
|
16 typedef struct CMediaBuffer CMediaBuffer; |
8294 | 17 |
18 /** | |
19 * Create DMO_Filter object - similar syntax as for DS_Filter | |
20 */ | |
21 DMO_Filter* DMO_FilterCreate(const char* dllname, const GUID* id, | |
22 AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt); | |
23 /** | |
24 * Destroy DMO_Filter object - release all allocated resources | |
25 */ | |
26 void DMO_Filter_Destroy(DMO_Filter* This); | |
27 | |
28 | |
29 /** | |
30 * Create IMediaBuffer object - to pass/receive data from DMO_Filter | |
31 * | |
32 * maxlen - maximum size for this buffer | |
33 * mem - initial memory 0 - creates memory | |
34 * len - initial size of used portion of the buffer | |
35 * copy - make a local copy of data | |
36 */ | |
37 CMediaBuffer* CMediaBufferCreate(unsigned long maxlen, void* mem, unsigned long len, int copy); | |
38 | |
26045 | 39 #endif /* MPLAYER_DMO_FILTER_H */ |