~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to mediastreamer/msvideooutput.h

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  The mediastreamer library aims at providing modular media processing and I/O
3
 
        for linphone, but also for any telephony application.
4
 
  Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org
5
 
 
6
 
  This library is free software; you can redistribute it and/or
7
 
  modify it under the terms of the GNU Lesser General Public
8
 
  License as published by the Free Software Foundation; either
9
 
  version 2.1 of the License, or (at your option) any later version.
10
 
 
11
 
  This library is distributed in the hope that it will be useful,
12
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
  Lesser General Public License for more details.
15
 
 
16
 
  You should have received a copy of the GNU Lesser General Public
17
 
  License along with this library; if not, write to the Free Software
18
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
*/
20
 
 
21
 
 
22
 
#ifndef MSVIDEOOUTPUT_H
23
 
#define MSVIDEOOUTPUT_H
24
 
 
25
 
 
26
 
#include "ms.h"
27
 
#include "msfilter.h"
28
 
 
29
 
#include <gtk/gtk.h>
30
 
 
31
 
struct _MSVideoOutput
32
 
{
33
 
        MSFilter parent;
34
 
        MSQueue *input[1];
35
 
        GdkWindow *window;
36
 
        GdkGC *gc;
37
 
        GdkImage *image;
38
 
        gint width,height;
39
 
        gint bufsize;
40
 
        gchar *palette;
41
 
};
42
 
 
43
 
 
44
 
typedef struct _MSVideoOutput MSVideoOutput;
45
 
        
46
 
struct _MSVideoOutputClass
47
 
{
48
 
        MSFilterClass parent_class;
49
 
        GdkVisual *visual;
50
 
        GdkColormap *colormap;
51
 
};
52
 
 
53
 
typedef struct _MSVideoOutputClass MSVideoOutputClass;
54
 
        
55
 
 
56
 
#define MS_VIDEO_OUTPUT(obj)    ((MSVideoOutput*)(obj))
57
 
#define MS_VIDEO_OUTPUT_CLASS(klass)    ((MSVideoOutputClass*)(klass))
58
 
        
59
 
void ms_video_output_init(MSVideoOutput *obj);
60
 
void ms_video_output_class_init(MSVideoOutputClass *klass);
61
 
void ms_video_output_uninit(MSVideoOutput *obj);
62
 
 
63
 
MSFilter * ms_video_output_new();
64
 
void ms_video_output_set_size(MSVideoOutput *obj,gint width, gint height);
65
 
void ms_video_output_start(MSVideoOutput *obj);
66
 
void ms_video_output_stop(MSVideoOutput *obj);
67
 
void ms_video_output_set_title(MSVideoOutput *obj,gchar *title);
68
 
 
69
 
void ms_video_output_destroy(MSVideoOutput *obj);
70
 
void ms_video_output_process(MSVideoOutput *obj);
71
 
#endif
 
 
b'\\ No newline at end of file'