clutter-gstreamer 2.2.3-x86-mingw32 → 2.2.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -3
- data/lib/clutter-gst.rb +1 -0
- data/vendor/local/bin/libclutter-gst-3.0-0.dll +0 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-aspectratio.h +105 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-camera-device.h +119 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-camera-manager.h +100 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-camera.h +206 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-content.h +107 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-crop.h +104 -0
- data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst-enum-types.h +0 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-playback.h +169 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-player.h +157 -0
- data/vendor/local/include/clutter-gst-3.0/clutter-gst/clutter-gst-types.h +167 -0
- data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst-util.h +1 -1
- data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst-version.h +4 -4
- data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst-video-sink.h +47 -34
- data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst.h +13 -7
- data/vendor/local/lib/girepository-1.0/ClutterGst-3.0.typelib +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter-3.0.dll +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter-3.0.dll.a +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter-3.0.la +41 -0
- data/vendor/local/lib/libclutter-gst-3.0.dll.a +0 -0
- data/vendor/local/lib/libclutter-gst-3.0.la +41 -0
- data/vendor/local/lib/pkgconfig/clutter-gst-3.0.pc +12 -0
- data/vendor/local/share/gir-1.0/ClutterGst-3.0.gir +3308 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstAspectratio.html +171 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstCamera.html +1528 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstCameraDevice.html +418 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstContent.html +551 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstCrop.html +198 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstPlayback.html +1559 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ClutterGstPlayer.html +805 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/ch01.html +10 -10
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ch02.html +42 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ch03.html +45 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ch04.html +35 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/ch05.html +39 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/clutter-gst-3.0.devhelp2 +197 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/clutter-gst-Utilities.html +316 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/clutter-gst-Versioning-Macros.html +176 -0
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/clutter-gst-Video-Sink.html +560 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/index.html +33 -10
- data/vendor/local/share/gtk-doc/html/clutter-gst-3.0/index.sgml +273 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/license.html +7 -7
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/{clutter-gst → clutter-gst-3.0}/up.png +0 -0
- metadata +70 -42
- data/vendor/local/bin/libclutter-gst-2.0-0.dll +0 -0
- data/vendor/local/include/clutter-gst-2.0/clutter-gst/clutter-gst-player.h +0 -186
- data/vendor/local/include/clutter-gst-2.0/clutter-gst/clutter-gst-types.h +0 -65
- data/vendor/local/include/clutter-gst-2.0/clutter-gst/clutter-gst-video-texture.h +0 -132
- data/vendor/local/lib/girepository-1.0/ClutterGst-2.0.typelib +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter.dll +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter.dll.a +0 -0
- data/vendor/local/lib/gstreamer-1.0/libgstclutter.la +0 -41
- data/vendor/local/lib/libclutter-gst-2.0.dll.a +0 -0
- data/vendor/local/lib/libclutter-gst-2.0.la +0 -41
- data/vendor/local/lib/pkgconfig/clutter-gst-2.0.pc +0 -12
- data/vendor/local/share/gir-1.0/ClutterGst-2.0.gir +0 -1795
- data/vendor/local/share/gtk-doc/html/clutter-gst/ClutterGstPlayer.html +0 -1003
- data/vendor/local/share/gtk-doc/html/clutter-gst/ClutterGstVideoSink.html +0 -177
- data/vendor/local/share/gtk-doc/html/clutter-gst/ClutterGstVideoTexture.html +0 -624
- data/vendor/local/share/gtk-doc/html/clutter-gst/ch02.html +0 -48
- data/vendor/local/share/gtk-doc/html/clutter-gst/clutter-gst-Utilities.html +0 -284
- data/vendor/local/share/gtk-doc/html/clutter-gst/clutter-gst-Versioning-Macros.html +0 -144
- data/vendor/local/share/gtk-doc/html/clutter-gst/clutter-gst.devhelp2 +0 -79
- data/vendor/local/share/gtk-doc/html/clutter-gst/index.sgml +0 -97
@@ -0,0 +1,107 @@
|
|
1
|
+
/*
|
2
|
+
* Clutter-GStreamer.
|
3
|
+
*
|
4
|
+
* GStreamer integration library for Clutter.
|
5
|
+
*
|
6
|
+
* Copyright (C) 2013 Bastian Winkler <buz@netbuz.org>
|
7
|
+
*
|
8
|
+
* This library is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Library General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* This library is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Library General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Library General Public
|
19
|
+
* License along with this library; if not, write to the
|
20
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
21
|
+
* Boston, MA 02111-1307, USA.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __CLUTTER_GST_CONTENT_H__
|
25
|
+
#define __CLUTTER_GST_CONTENT_H__
|
26
|
+
|
27
|
+
#include <glib-object.h>
|
28
|
+
|
29
|
+
#include <clutter/clutter.h>
|
30
|
+
#include <clutter-gst/clutter-gst-player.h>
|
31
|
+
|
32
|
+
G_BEGIN_DECLS
|
33
|
+
|
34
|
+
|
35
|
+
#define CLUTTER_GST_TYPE_CONTENT (clutter_gst_content_get_type())
|
36
|
+
#define CLUTTER_GST_CONTENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_GST_TYPE_CONTENT, ClutterGstContent))
|
37
|
+
#define CLUTTER_GST_IS_CONTENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_GST_TYPE_CONTENT))
|
38
|
+
#define CLUTTER_GST_CONTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_GST_TYPE_CONTENT, ClutterGstContentClass))
|
39
|
+
#define CLUTTER_GST_IS_CONTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_GST_TYPE_CONTENT))
|
40
|
+
#define CLUTTER_GST_CONTENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_GST_TYPE_CONTENT, ClutterGstContentClass))
|
41
|
+
|
42
|
+
|
43
|
+
typedef struct _ClutterGstContent ClutterGstContent;
|
44
|
+
typedef struct _ClutterGstContentPrivate ClutterGstContentPrivate;
|
45
|
+
typedef struct _ClutterGstContentClass ClutterGstContentClass;
|
46
|
+
|
47
|
+
|
48
|
+
/**
|
49
|
+
* ClutterGstContent:
|
50
|
+
*
|
51
|
+
* The #ClutterGstContent structure contains only private data
|
52
|
+
* and should be accessed using the provided API
|
53
|
+
*
|
54
|
+
* Since: 0.0
|
55
|
+
*/
|
56
|
+
struct _ClutterGstContent
|
57
|
+
{
|
58
|
+
/*< private >*/
|
59
|
+
GObject parent;
|
60
|
+
|
61
|
+
ClutterGstContentPrivate *priv;
|
62
|
+
};
|
63
|
+
|
64
|
+
/**
|
65
|
+
* ClutterGstContentClass:
|
66
|
+
*
|
67
|
+
* The #ClutterGstContentClass structure contains only private data
|
68
|
+
* and should be accessed using the provided API
|
69
|
+
*
|
70
|
+
* Since: 0.0
|
71
|
+
*/
|
72
|
+
struct _ClutterGstContentClass
|
73
|
+
{
|
74
|
+
/*< private >*/
|
75
|
+
GObjectClass parent_class;
|
76
|
+
|
77
|
+
gboolean (* has_painting_content) (ClutterGstContent *self);
|
78
|
+
|
79
|
+
void *_padding_dummy[10];
|
80
|
+
};
|
81
|
+
|
82
|
+
GType clutter_gst_content_get_type (void) G_GNUC_CONST;
|
83
|
+
|
84
|
+
ClutterContent * clutter_gst_content_new (void);
|
85
|
+
|
86
|
+
ClutterContent * clutter_gst_content_new_with_sink (ClutterGstVideoSink *sink);
|
87
|
+
|
88
|
+
ClutterGstFrame * clutter_gst_content_get_frame (ClutterGstContent *self);
|
89
|
+
|
90
|
+
void clutter_gst_content_set_frame (ClutterGstContent *self,
|
91
|
+
ClutterGstFrame *frame);
|
92
|
+
|
93
|
+
ClutterGstOverlays * clutter_gst_content_get_overlays (ClutterGstContent *self);
|
94
|
+
|
95
|
+
void clutter_gst_content_set_sink (ClutterGstContent *self,
|
96
|
+
ClutterGstVideoSink *sink);
|
97
|
+
|
98
|
+
ClutterGstVideoSink * clutter_gst_content_get_sink (ClutterGstContent *self);
|
99
|
+
|
100
|
+
ClutterGstPlayer * clutter_gst_content_get_player (ClutterGstContent *self);
|
101
|
+
|
102
|
+
void clutter_gst_content_set_player (ClutterGstContent *self,
|
103
|
+
ClutterGstPlayer *player);
|
104
|
+
|
105
|
+
G_END_DECLS
|
106
|
+
|
107
|
+
#endif /* __CLUTTER_GST_CONTENT_H__ */
|
@@ -0,0 +1,104 @@
|
|
1
|
+
/*
|
2
|
+
* Clutter-GStreamer.
|
3
|
+
*
|
4
|
+
* GStreamer integration library for Clutter.
|
5
|
+
*
|
6
|
+
* clutter-gst-aspectratio.c - An actor rendering a video with respect
|
7
|
+
* to its aspect ratio.
|
8
|
+
*
|
9
|
+
* Authored by Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
|
10
|
+
*
|
11
|
+
* Copyright (C) 2013 Intel Corporation
|
12
|
+
*
|
13
|
+
* This library is free software; you can redistribute it and/or
|
14
|
+
* modify it under the terms of the GNU Lesser General Public
|
15
|
+
* License as published by the Free Software Foundation; either
|
16
|
+
* version 2 of the License, or (at your option) any later version.
|
17
|
+
*
|
18
|
+
* This library is distributed in the hope that it will be useful,
|
19
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
21
|
+
* Lesser General Public License for more details.
|
22
|
+
*
|
23
|
+
* You should have received a copy of the GNU Lesser General Public
|
24
|
+
* License along with this library; if not, write to the
|
25
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
26
|
+
* Boston, MA 02111-1307, USA.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
|
30
|
+
#error "Only <clutter-gst/clutter-gst.h> can be include directly."
|
31
|
+
#endif
|
32
|
+
|
33
|
+
#ifndef __CLUTTER_GST_CROP_H__
|
34
|
+
#define __CLUTTER_GST_CROP_H__
|
35
|
+
|
36
|
+
#include <glib-object.h>
|
37
|
+
|
38
|
+
#include <clutter-gst/clutter-gst-content.h>
|
39
|
+
|
40
|
+
G_BEGIN_DECLS
|
41
|
+
|
42
|
+
#define CLUTTER_GST_TYPE_CROP clutter_gst_crop_get_type()
|
43
|
+
|
44
|
+
#define CLUTTER_GST_CROP(obj) \
|
45
|
+
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
46
|
+
CLUTTER_GST_TYPE_CROP, ClutterGstCrop))
|
47
|
+
|
48
|
+
#define CLUTTER_GST_CROP_CLASS(klass) \
|
49
|
+
(G_TYPE_CHECK_CLASS_CAST ((klass), \
|
50
|
+
CLUTTER_GST_TYPE_CROP, ClutterGstCropClass))
|
51
|
+
|
52
|
+
#define CLUTTER_GST_IS_CROP(obj) \
|
53
|
+
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
54
|
+
CLUTTER_GST_TYPE_CROP))
|
55
|
+
|
56
|
+
#define CLUTTER_GST_IS_CROP_CLASS(klass) \
|
57
|
+
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
58
|
+
CLUTTER_GST_TYPE_CROP))
|
59
|
+
|
60
|
+
#define CLUTTER_GST_CROP_GET_CLASS(obj) \
|
61
|
+
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
62
|
+
CLUTTER_GST_TYPE_CROP, ClutterGstCropClass))
|
63
|
+
|
64
|
+
typedef struct _ClutterGstCrop ClutterGstCrop;
|
65
|
+
typedef struct _ClutterGstCropClass ClutterGstCropClass;
|
66
|
+
typedef struct _ClutterGstCropPrivate ClutterGstCropPrivate;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* ClutterGstCrop:
|
70
|
+
*
|
71
|
+
* Implementation of #ClutterGstContent that displays a sub region of
|
72
|
+
* video streams.
|
73
|
+
*
|
74
|
+
* The #ClutterGstCrop structure contains only private data and
|
75
|
+
* should not be accessed directly.
|
76
|
+
*/
|
77
|
+
struct _ClutterGstCrop
|
78
|
+
{
|
79
|
+
/*< private >*/
|
80
|
+
ClutterGstContent parent;
|
81
|
+
|
82
|
+
ClutterGstCropPrivate *priv;
|
83
|
+
};
|
84
|
+
|
85
|
+
/**
|
86
|
+
* ClutterGstCropClass:
|
87
|
+
*
|
88
|
+
* Base class for #ClutterGstCrop.
|
89
|
+
*/
|
90
|
+
struct _ClutterGstCropClass
|
91
|
+
{
|
92
|
+
/*< private >*/
|
93
|
+
ClutterGstContentClass parent_class;
|
94
|
+
|
95
|
+
void *_padding_dummy[8];
|
96
|
+
};
|
97
|
+
|
98
|
+
GType clutter_gst_crop_get_type (void) G_GNUC_CONST;
|
99
|
+
|
100
|
+
ClutterActor *clutter_gst_crop_new (void);
|
101
|
+
|
102
|
+
G_END_DECLS
|
103
|
+
|
104
|
+
#endif /* __CLUTTER_GST_CROP_H__ */
|
data/vendor/local/include/{clutter-gst-2.0 → clutter-gst-3.0}/clutter-gst/clutter-gst-enum-types.h
RENAMED
File without changes
|
@@ -0,0 +1,169 @@
|
|
1
|
+
/*
|
2
|
+
* Clutter-GStreamer.
|
3
|
+
*
|
4
|
+
* GStreamer integration library for Clutter.
|
5
|
+
*
|
6
|
+
* clutter-gst-player.h - Wrap some convenience functions around playbin2
|
7
|
+
*
|
8
|
+
* Authored By Damien Lespiau <damien.lespiau@intel.com>
|
9
|
+
* Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
|
10
|
+
* Matthew Allum <mallum@openedhand.com>
|
11
|
+
* Emmanuele Bassi <ebassi@linux.intel.com>
|
12
|
+
* Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>
|
13
|
+
*
|
14
|
+
* Copyright (C) 2006 OpenedHand
|
15
|
+
* Copyright (C) 2009-2013 Intel Corporation
|
16
|
+
* Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
|
17
|
+
*
|
18
|
+
* This library is free software; you can redistribute it and/or
|
19
|
+
* modify it under the terms of the GNU Lesser General Public
|
20
|
+
* License as published by the Free Software Foundation; either
|
21
|
+
* version 2 of the License, or (at your option) any later version.
|
22
|
+
*
|
23
|
+
* This library is distributed in the hope that it will be useful,
|
24
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
25
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
26
|
+
* Lesser General Public License for more details.
|
27
|
+
*
|
28
|
+
* You should have received a copy of the GNU Lesser General Public
|
29
|
+
* License along with this library; if not, write to the
|
30
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
31
|
+
* Boston, MA 02111-1307, USA.
|
32
|
+
*/
|
33
|
+
|
34
|
+
#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
|
35
|
+
#error "Only <clutter-gst/clutter-gst.h> can be include directly."
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#ifndef __CLUTTER_GST_PLAYBACK_H__
|
39
|
+
#define __CLUTTER_GST_PLAYBACK_H__
|
40
|
+
|
41
|
+
#include <glib-object.h>
|
42
|
+
|
43
|
+
#include <clutter-gst/clutter-gst-types.h>
|
44
|
+
#include <gst/gst.h>
|
45
|
+
|
46
|
+
G_BEGIN_DECLS
|
47
|
+
|
48
|
+
#define CLUTTER_GST_TYPE_PLAYBACK clutter_gst_playback_get_type()
|
49
|
+
|
50
|
+
#define CLUTTER_GST_PLAYBACK(obj) \
|
51
|
+
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
52
|
+
CLUTTER_GST_TYPE_PLAYBACK, \
|
53
|
+
ClutterGstPlayback))
|
54
|
+
|
55
|
+
#define CLUTTER_GST_PLAYBACK_CLASS(klass) \
|
56
|
+
(G_TYPE_CHECK_CLASS_CAST ((klass), \
|
57
|
+
CLUTTER_GST_TYPE_PLAYBACK, \
|
58
|
+
ClutterGstPlaybackClass))
|
59
|
+
|
60
|
+
#define CLUTTER_GST_IS_PLAYBACK(obj) \
|
61
|
+
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
62
|
+
CLUTTER_GST_TYPE_PLAYBACK))
|
63
|
+
|
64
|
+
#define CLUTTER_GST_IS_PLAYBACK_CLASS(klass) \
|
65
|
+
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
66
|
+
CLUTTER_GST_TYPE_PLAYBACK))
|
67
|
+
|
68
|
+
#define CLUTTER_GST_PLAYBACK_GET_CLASS(obj) \
|
69
|
+
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
70
|
+
CLUTTER_GST_TYPE_PLAYBACK, \
|
71
|
+
ClutterGstPlaybackClass))
|
72
|
+
|
73
|
+
typedef struct _ClutterGstPlayback ClutterGstPlayback;
|
74
|
+
typedef struct _ClutterGstPlaybackClass ClutterGstPlaybackClass;
|
75
|
+
typedef struct _ClutterGstPlaybackPrivate ClutterGstPlaybackPrivate;
|
76
|
+
|
77
|
+
/**
|
78
|
+
* ClutterGstPlayback:
|
79
|
+
*
|
80
|
+
* Implementation of #ClutterGstPlayback that displays media streams
|
81
|
+
* using GStreamer.
|
82
|
+
*
|
83
|
+
* The #ClutterGstPlayback structure contains only private data and
|
84
|
+
* should not be accessed directly.
|
85
|
+
*/
|
86
|
+
struct _ClutterGstPlayback
|
87
|
+
{
|
88
|
+
GObject parent;
|
89
|
+
|
90
|
+
ClutterGstPlaybackPrivate *priv;
|
91
|
+
};
|
92
|
+
|
93
|
+
/**
|
94
|
+
* ClutterGstPlaybackClass:
|
95
|
+
* @download_buffering: signal class closure for #ClutterGstPlayback::download-buffering
|
96
|
+
*
|
97
|
+
* Base class for #ClutterGstPlayback.
|
98
|
+
*/
|
99
|
+
struct _ClutterGstPlaybackClass
|
100
|
+
{
|
101
|
+
/*< private >*/
|
102
|
+
GObjectClass parent_class;
|
103
|
+
|
104
|
+
/*< public >*/
|
105
|
+
/* signals */
|
106
|
+
gboolean (* should_buffer) (ClutterGstPlayback *self,
|
107
|
+
GstQuery *query);
|
108
|
+
};
|
109
|
+
|
110
|
+
GType clutter_gst_playback_get_type (void) G_GNUC_CONST;
|
111
|
+
|
112
|
+
ClutterGstPlayback * clutter_gst_playback_new (void);
|
113
|
+
|
114
|
+
void clutter_gst_playback_set_uri (ClutterGstPlayback *self,
|
115
|
+
const gchar *uri);
|
116
|
+
gchar * clutter_gst_playback_get_uri (ClutterGstPlayback *self);
|
117
|
+
void clutter_gst_playback_set_filename (ClutterGstPlayback *self,
|
118
|
+
const gchar *filename);
|
119
|
+
|
120
|
+
gchar * clutter_gst_playback_get_user_agent (ClutterGstPlayback *self);
|
121
|
+
void clutter_gst_playback_set_user_agent (ClutterGstPlayback *self,
|
122
|
+
const gchar *user_agent);
|
123
|
+
|
124
|
+
ClutterGstSeekFlags clutter_gst_playback_get_seek_flags (ClutterGstPlayback *self);
|
125
|
+
void clutter_gst_playback_set_seek_flags (ClutterGstPlayback *self,
|
126
|
+
ClutterGstSeekFlags flags);
|
127
|
+
|
128
|
+
ClutterGstBufferingMode clutter_gst_playback_get_buffering_mode (ClutterGstPlayback *self);
|
129
|
+
void clutter_gst_playback_set_buffering_mode (ClutterGstPlayback *self,
|
130
|
+
ClutterGstBufferingMode mode);
|
131
|
+
gdouble clutter_gst_playback_get_buffer_fill (ClutterGstPlayback *self);
|
132
|
+
gint clutter_gst_playback_get_buffer_size (ClutterGstPlayback *self);
|
133
|
+
void clutter_gst_playback_set_buffer_size (ClutterGstPlayback *self,
|
134
|
+
gint size);
|
135
|
+
gint64 clutter_gst_playback_get_buffer_duration (ClutterGstPlayback *self);
|
136
|
+
void clutter_gst_playback_set_buffer_duration (ClutterGstPlayback *self,
|
137
|
+
gint64 duration);
|
138
|
+
|
139
|
+
GList * clutter_gst_playback_get_audio_streams (ClutterGstPlayback *self);
|
140
|
+
gint clutter_gst_playback_get_audio_stream (ClutterGstPlayback *self);
|
141
|
+
void clutter_gst_playback_set_audio_stream (ClutterGstPlayback *self,
|
142
|
+
gint index_);
|
143
|
+
|
144
|
+
void clutter_gst_playback_set_subtitle_uri (ClutterGstPlayback *self,
|
145
|
+
const gchar *uri);
|
146
|
+
gchar * clutter_gst_playback_get_subtitle_uri (ClutterGstPlayback *self);
|
147
|
+
void clutter_gst_playback_set_subtitle_font_name
|
148
|
+
(ClutterGstPlayback *self,
|
149
|
+
const char *font_name);
|
150
|
+
gchar * clutter_gst_playback_get_subtitle_font_name
|
151
|
+
(ClutterGstPlayback *self);
|
152
|
+
GList * clutter_gst_playback_get_subtitle_tracks (ClutterGstPlayback *self);
|
153
|
+
gint clutter_gst_playback_get_subtitle_track (ClutterGstPlayback *self);
|
154
|
+
void clutter_gst_playback_set_subtitle_track (ClutterGstPlayback *self,
|
155
|
+
gint index_);
|
156
|
+
|
157
|
+
gboolean clutter_gst_playback_get_in_seek (ClutterGstPlayback *self);
|
158
|
+
|
159
|
+
void clutter_gst_playback_set_progress (ClutterGstPlayback *self,
|
160
|
+
gdouble progress);
|
161
|
+
gdouble clutter_gst_playback_get_progress (ClutterGstPlayback *self);
|
162
|
+
gdouble clutter_gst_playback_get_position (ClutterGstPlayback *self);
|
163
|
+
gdouble clutter_gst_playback_get_duration (ClutterGstPlayback *self);
|
164
|
+
|
165
|
+
gboolean clutter_gst_playback_is_live_media (ClutterGstPlayback *self);
|
166
|
+
|
167
|
+
G_END_DECLS
|
168
|
+
|
169
|
+
#endif /* __CLUTTER_GST_PLAYBACK_H__ */
|
@@ -0,0 +1,157 @@
|
|
1
|
+
/*
|
2
|
+
* Clutter-GStreamer.
|
3
|
+
*
|
4
|
+
* GStreamer integration library for Clutter.
|
5
|
+
*
|
6
|
+
* clutter-gst-player.h - Wrap some convenience functions around playbin2
|
7
|
+
*
|
8
|
+
* Authored By Damien Lespiau <damien.lespiau@intel.com>
|
9
|
+
* Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
|
10
|
+
* Matthew Allum <mallum@openedhand.com>
|
11
|
+
* Emmanuele Bassi <ebassi@linux.intel.com>
|
12
|
+
* Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>
|
13
|
+
*
|
14
|
+
* Copyright (C) 2006 OpenedHand
|
15
|
+
* Copyright (C) 2009-2013 Intel Corporation
|
16
|
+
* Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
|
17
|
+
*
|
18
|
+
* This library is free software; you can redistribute it and/or
|
19
|
+
* modify it under the terms of the GNU Lesser General Public
|
20
|
+
* License as published by the Free Software Foundation; either
|
21
|
+
* version 2 of the License, or (at your option) any later version.
|
22
|
+
*
|
23
|
+
* This library is distributed in the hope that it will be useful,
|
24
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
25
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
26
|
+
* Lesser General Public License for more details.
|
27
|
+
*
|
28
|
+
* You should have received a copy of the GNU Lesser General Public
|
29
|
+
* License along with this library; if not, write to the
|
30
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
31
|
+
* Boston, MA 02111-1307, USA.
|
32
|
+
*/
|
33
|
+
|
34
|
+
#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
|
35
|
+
#error "Only <clutter-gst/clutter-gst.h> can be include directly."
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#ifndef __CLUTTER_GST_PLAYER_H__
|
39
|
+
#define __CLUTTER_GST_PLAYER_H__
|
40
|
+
|
41
|
+
#include <glib-object.h>
|
42
|
+
#include <gst/gst.h>
|
43
|
+
|
44
|
+
#include <clutter-gst/clutter-gst-types.h>
|
45
|
+
#include <clutter-gst/clutter-gst-video-sink.h>
|
46
|
+
|
47
|
+
G_BEGIN_DECLS
|
48
|
+
|
49
|
+
#define CLUTTER_GST_TYPE_PLAYER clutter_gst_player_get_type()
|
50
|
+
|
51
|
+
#define CLUTTER_GST_PLAYER(obj) \
|
52
|
+
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
53
|
+
CLUTTER_GST_TYPE_PLAYER, \
|
54
|
+
ClutterGstPlayer))
|
55
|
+
#define CLUTTER_GST_IS_PLAYER(obj) \
|
56
|
+
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
57
|
+
CLUTTER_GST_TYPE_PLAYER))
|
58
|
+
#define CLUTTER_GST_PLAYER_GET_INTERFACE(obj) \
|
59
|
+
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
|
60
|
+
CLUTTER_GST_TYPE_PLAYER, \
|
61
|
+
ClutterGstPlayerIface))
|
62
|
+
|
63
|
+
typedef struct _ClutterGstPlayer ClutterGstPlayer;
|
64
|
+
typedef struct _ClutterGstPlayerIface ClutterGstPlayerIface;
|
65
|
+
typedef struct _ClutterGstPlayerIfacePrivate ClutterGstPlayerIfacePrivate;
|
66
|
+
|
67
|
+
|
68
|
+
/**
|
69
|
+
* ClutterGstPlayer:
|
70
|
+
*
|
71
|
+
* #ClutterGstPlayer is an opaque structure whose members cannot be
|
72
|
+
* directly accessed
|
73
|
+
*
|
74
|
+
* Since: 1.4
|
75
|
+
*/
|
76
|
+
|
77
|
+
/**
|
78
|
+
* ClutterGstPlayerIface:
|
79
|
+
* @get_frame: virtual function; returns the current visible frame
|
80
|
+
* @get_pipeline: virtual function; returns the current GStreamer pipeline
|
81
|
+
* @get_video_sink: virtual function; returns the current ClutterGst video sink
|
82
|
+
* @get_idle: virtual function; returns whether the player is currently in idle state
|
83
|
+
* @get_audio_volume: virtual function; returns the current audio volume
|
84
|
+
* @set_audio_volume: virtual function; sets the audio volume
|
85
|
+
* @get_playing: virtual function; returns whether the player is currently playing
|
86
|
+
* @set_playing: virtual function; starts or stops the player from playing
|
87
|
+
* @new_frame: signal class closure for #ClutterGstPlayer::new-frame
|
88
|
+
* @ready: signal class closure for #ClutterGstPlayer::ready
|
89
|
+
* @eos: signal class closure for #ClutterGstPlayer::eos
|
90
|
+
* @error: signal class closure for #ClutterGstPlayer::error
|
91
|
+
* @size_change: signal class closure for #ClutterGstPlayer::size-change
|
92
|
+
*
|
93
|
+
* Interface vtable for #ClutterGstPlayer implementations
|
94
|
+
*
|
95
|
+
* Since: 1.4
|
96
|
+
*/
|
97
|
+
struct _ClutterGstPlayerIface
|
98
|
+
{
|
99
|
+
/*< private >*/
|
100
|
+
GTypeInterface base_iface;
|
101
|
+
|
102
|
+
ClutterGstPlayerIfacePrivate *priv;
|
103
|
+
|
104
|
+
/*< public >*/
|
105
|
+
ClutterGstFrame *(* get_frame) (ClutterGstPlayer *self);
|
106
|
+
GstElement * (* get_pipeline) (ClutterGstPlayer *self);
|
107
|
+
ClutterGstVideoSink *(* get_video_sink) (ClutterGstPlayer *self);
|
108
|
+
|
109
|
+
gboolean (* get_idle) (ClutterGstPlayer *self);
|
110
|
+
|
111
|
+
gdouble (* get_audio_volume) (ClutterGstPlayer *self);
|
112
|
+
void (* set_audio_volume) (ClutterGstPlayer *self,
|
113
|
+
gdouble volume);
|
114
|
+
|
115
|
+
gboolean (* get_playing) (ClutterGstPlayer *self);
|
116
|
+
void (* set_playing) (ClutterGstPlayer *self,
|
117
|
+
gboolean playing);
|
118
|
+
|
119
|
+
/*< private >*/
|
120
|
+
gpointer _padding_vfuncs[16];
|
121
|
+
|
122
|
+
/*< public >*/
|
123
|
+
/* signals */
|
124
|
+
void (* new_frame) (ClutterGstPlayer *self, ClutterGstFrame *frame);
|
125
|
+
void (* ready) (ClutterGstPlayer *self);
|
126
|
+
void (* eos) (ClutterGstPlayer *self);
|
127
|
+
void (* error) (ClutterGstPlayer *self,
|
128
|
+
const GError *error);
|
129
|
+
void (* size_change) (ClutterGstPlayer *self,
|
130
|
+
gint width,
|
131
|
+
gint height);
|
132
|
+
|
133
|
+
/*< private >*/
|
134
|
+
gpointer _padding_signals[8];
|
135
|
+
};
|
136
|
+
|
137
|
+
GType clutter_gst_player_get_type (void) G_GNUC_CONST;
|
138
|
+
|
139
|
+
ClutterGstFrame * clutter_gst_player_get_frame (ClutterGstPlayer *self);
|
140
|
+
|
141
|
+
GstElement * clutter_gst_player_get_pipeline (ClutterGstPlayer *self);
|
142
|
+
|
143
|
+
ClutterGstVideoSink * clutter_gst_player_get_video_sink (ClutterGstPlayer *self);
|
144
|
+
|
145
|
+
gboolean clutter_gst_player_get_idle (ClutterGstPlayer *self);
|
146
|
+
|
147
|
+
gboolean clutter_gst_player_get_playing (ClutterGstPlayer *self);
|
148
|
+
void clutter_gst_player_set_playing (ClutterGstPlayer *self,
|
149
|
+
gboolean playing);
|
150
|
+
|
151
|
+
gdouble clutter_gst_player_get_audio_volume (ClutterGstPlayer *self);
|
152
|
+
void clutter_gst_player_set_audio_volume (ClutterGstPlayer *self,
|
153
|
+
gdouble volume);
|
154
|
+
|
155
|
+
G_END_DECLS
|
156
|
+
|
157
|
+
#endif /* __CLUTTER_GST_PLAYER_H__ */
|