Mercurial > mplayer.hg
annotate loader/dmo/DMO_VideoDecoder.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 | 837cd9762b4e |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_DMO_VIDEODECODER_H |
2 #define MPLAYER_DMO_VIDEODECODER_H | |
8294 | 3 |
30171
837cd9762b4e
Add required header #includes to satisfy 'make checkheaders'.
diego
parents:
26045
diff
changeset
|
4 #include "loader/com.h" |
837cd9762b4e
Add required header #includes to satisfy 'make checkheaders'.
diego
parents:
26045
diff
changeset
|
5 #include "loader/wine/vfw.h" |
837cd9762b4e
Add required header #includes to satisfy 'make checkheaders'.
diego
parents:
26045
diff
changeset
|
6 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
8294
diff
changeset
|
7 typedef struct DMO_VideoDecoder DMO_VideoDecoder; |
8294 | 8 |
9 int DMO_VideoDecoder_GetCapabilities(DMO_VideoDecoder *this); | |
10 | |
11 DMO_VideoDecoder * DMO_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto); | |
12 | |
13 void DMO_VideoDecoder_Destroy(DMO_VideoDecoder *this); | |
14 | |
15 void DMO_VideoDecoder_StartInternal(DMO_VideoDecoder *this); | |
16 | |
17 void DMO_VideoDecoder_StopInternal(DMO_VideoDecoder *this); | |
18 | |
19 int DMO_VideoDecoder_DecodeInternal(DMO_VideoDecoder *this, const void* src, int size, int is_keyframe, char* pImage); | |
20 | |
21 /* | |
22 * bits == 0 - leave unchanged | |
23 */ | |
24 //int SetDestFmt(DMO_VideoDecoder * this, int bits = 24, fourcc_t csp = 0); | |
25 int DMO_VideoDecoder_SetDestFmt(DMO_VideoDecoder *this, int bits, unsigned int csp); | |
26 int DMO_VideoDecoder_SetDirection(DMO_VideoDecoder *this, int d); | |
27 | |
28 | |
26045 | 29 #endif /* MPLAYER_DMO_VIDEODECODER_H */ |