12024
|
1 /***************************************************************************
|
|
2 * mssdlout.h
|
|
3 *
|
|
4 * Mon Jul 11 16:18:55 2005
|
|
5 * Copyright 2005 Simon Morlat
|
|
6 * Email simon dot morlat at linphone dot org
|
|
7 ****************************************************************************/
|
|
8
|
|
9 /*
|
|
10 The mediastreamer library aims at providing modular media processing and I/O
|
|
11 for linphone, but also for any telephony application.
|
|
12 Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
|
|
13
|
|
14 This library is free software; you can redistribute it and/or
|
|
15 modify it under the terms of the GNU Lesser General Public
|
|
16 License as published by the Free Software Foundation; either
|
|
17 version 2.1 of the License, or (at your option) any later version.
|
|
18
|
|
19 This library is distributed in the hope that it will be useful,
|
|
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
22 Lesser General Public License for more details.
|
|
23
|
|
24 You should have received a copy of the GNU Lesser General Public
|
|
25 License along with this library; if not, write to the Free Software
|
|
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
27 */
|
|
28
|
|
29 #ifndef mssdlout_h
|
|
30 #define mssdlout_h
|
|
31
|
|
32 #include "msfilter.h"
|
|
33
|
|
34 #include <SDL/SDL.h>
|
|
35 #include <SDL/SDL_video.h>
|
|
36
|
|
37 struct _MSSdlOut
|
|
38 {
|
|
39 MSFilter parent;
|
|
40 MSQueue *input[2];
|
|
41 gint width,height;
|
|
42 const gchar *format;
|
|
43 SDL_Surface *screen;
|
|
44 SDL_Overlay *overlay;
|
|
45 MSMessage *oldinm1;
|
|
46 gboolean use_yuv;
|
|
47 };
|
|
48
|
|
49
|
|
50 typedef struct _MSSdlOut MSSdlOut;
|
|
51
|
|
52 struct _MSSdlOutClass
|
|
53 {
|
|
54 MSFilterClass parent_class;
|
|
55 };
|
|
56
|
|
57 typedef struct _MSSdlOutClass MSSdlOutClass;
|
|
58
|
|
59 MSFilter * ms_sdl_out_new(void);
|
|
60 void ms_sdl_out_set_format(MSSdlOut *obj, const char *fmt);
|
|
61
|
|
62 #define MS_SDL_OUT(obj) ((MSSdlOut*)obj)
|
|
63
|
|
64 #endif
|