Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / gst / inter / gstintersurface.h
1 /* GStreamer
2  * Copyright (C) 2011 David A. Schleef <ds@schleef.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef _GST_INTER_SURFACE_H_
21 #define _GST_INTER_SURFACE_H_
22
23 #include <gst/base/gstadapter.h>
24 #include <gst/video/video.h>
25
26 G_BEGIN_DECLS
27
28 typedef struct _GstInterSurface GstInterSurface;
29
30 struct _GstInterSurface
31 {
32   GMutex *mutex;
33
34   /* video */
35   GstVideoFormat format;
36   int fps_n;
37   int fps_d;
38   int width;
39   int height;
40   int n_frames;
41   int video_buffer_count;
42
43   /* audio */
44   int sample_rate;
45   int n_channels;
46
47   GstBuffer *video_buffer;
48   GstAdapter *audio_adapter;
49 };
50
51
52 GstInterSurface * gst_inter_surface_get (const char *name);
53 void gst_inter_surface_init (void);
54
55
56 G_END_DECLS
57
58 #endif