1 /* screenshotsrc: Screenshot plugin for GStreamer
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Library General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 * Boston, MA 02111-1307, USA.
19 #ifndef __GST_XIMAGE_SRC_H__
20 #define __GST_XIMAGE_SRC_H__
23 #include <gst/base/gstpushsrc.h>
24 #include "ximageutil.h"
27 #include <X11/extensions/Xfixes.h>
30 #include <X11/extensions/Xdamage.h>
35 #define GST_TYPE_XIMAGE_SRC (gst_ximage_src_get_type())
36 #define GST_XIMAGE_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_XIMAGE_SRC,GstXImageSrc))
37 #define GST_XIMAGE_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_XIMAGE_SRC,GstXImageSrc))
38 #define GST_IS_XIMAGE_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_XIMAGE_SRC))
39 #define GST_IS_XIMAGE_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_XIMAGE_SRC))
41 typedef struct _GstXImageSrc GstXImageSrc;
42 typedef struct _GstXImageSrcClass GstXImageSrcClass;
44 GType gst_ximage_src_get_type (void) G_GNUC_CONST;
50 /* Information on display */
51 GstXContext *xcontext;
59 /* Desired output framerate */
63 /* for framerate sync */
67 /* Protect X Windows calls */
70 /* Gathered pool of emitted buffers */
74 /* XFixes and XDamage support */
76 gboolean have_xdamage;
77 gboolean show_pointer;
80 /* co-ordinates for start and end */
86 /* whether to use remote friendly calls */
91 XFixesCursorImage *cursor_image;
95 int damage_event_base;
96 XserverRegion damage_region;
98 GstBuffer *last_ximage;
102 struct _GstXImageSrcClass
104 GstPushSrcClass parent_class;
109 #endif /* __GST_XIMAGE_SRC_H__ */