Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thibault Saunier
gst-plugins-good
Commits
7e18cca1
Commit
7e18cca1
authored
Apr 28, 2006
by
Thomas Vander Stichele
Browse files
clean up Makefile.am
Original commit message from CVS: clean up Makefile.am
parent
d60e890e
Changes
2
Hide whitespace changes
Inline
Side-by-side
sys/ximage/Makefile.am
View file @
7e18cca1
plugin_LTLIBRARIES
=
libgstximagesrc.la
libgstximagesrc_la_SOURCES
=
ximagesrc.c ximageutil.c
libgstximagesrc_la_CFLAGS
=
$(GST_CFLAGS)
$(X_CFLAGS)
$(GST_BASE_CFLAGS)
\
$(GST_PLUGINS_BASE_CFLAGS)
$(XFIXES_CFLAGS)
$(XDAMAGE_CFLAGS)
libgstximagesrc_la_LIBADD
=
$(X_LIBS)
$(XSHM_LIBS)
\
$(GST_BASE_LIBS)
$(GST_PLUGINS_BASE_LIBS)
$(XFIXES_LIBS)
$(XDAMAGE_LIBS)
libgstximagesrc_la_CFLAGS
=
\
$(GST_PLUGINS_BASE_CFLAGS)
\
$(GST_CFLAGS)
$(GST_BASE_CFLAGS)
\
$(X_CFLAGS)
$(XFIXES_CFLAGS)
$(XDAMAGE_CFLAGS)
libgstximagesrc_la_LIBADD
=
\
$(GST_PLUGINS_BASE_LIBS)
\
$(GST_BASE_LIBS)
\
$(X_LIBS)
$(XSHM_LIBS)
$(XFIXES_LIBS)
$(XDAMAGE_LIBS)
libgstximagesrc_la_LDFLAGS
=
$(GST_PLUGIN_LDFLAGS)
noinst_HEADERS
=
ximagesrc.h ximageutil.h
sys/ximage/gstximagesrc.c
View file @
7e18cca1
/* GStreamer
*
* Copyright (C) 2006 Zaheer Merali <zaheerabbas at merali dot org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
...
...
@@ -25,8 +27,8 @@
* This element captures your X Display and creates raw RGB video. It uses
* the XDamage extension if available to only capture areas of the screen that
* have changed since the last frame. It uses the XFixes extension if
* available to also capture your mouse pointer. By defau
k
t it will fixate to
* 25 frames per second.
.
* available to also capture your mouse pointer. By defau
l
t it will fixate to
* 25 frames per second.
* </para>
* <title>Example pipelines</title>
* <para>
...
...
@@ -242,7 +244,6 @@ gst_ximagesrc_recalc (GstXImageSrc * src)
return
TRUE
;
}
/* ifdeff'ed to prevent warnings of not being used when xfixes not there */
#ifdef HAVE_XFIXES
static
void
composite_pixel
(
GstXContext
*
xcontext
,
guchar
*
dest
,
guchar
*
src
)
...
...
@@ -272,7 +273,6 @@ composite_pixel (GstXContext * xcontext, guchar * dest, guchar * src)
g_assert_not_reached
();
}
/* possible optimisation:
* move the code that finds shift and max in the _link function */
for
(
r_shift
=
0
;
!
(
xcontext
->
visual
->
red_mask
&
(
1
<<
r_shift
));
r_shift
++
);
...
...
@@ -527,15 +527,14 @@ gst_ximagesrc_create (GstPushSrc * bs, GstBuffer ** buf)
if
(
!
gst_ximagesrc_recalc
(
s
))
{
GST_ELEMENT_ERROR
(
s
,
RESOURCE
,
FAILED
,
(
_
(
"X11 Display changed resolution, we do not support this yet."
)),
(
NULL
));
(
_
(
"Changing resolution at runtime is not yet supported."
)),
(
NULL
));
return
GST_FLOW_ERROR
;
}
if
(
s
->
fps_n
<=
0
||
s
->
fps_d
<=
0
)
return
GST_FLOW_NOT_NEGOTIATED
;
/* FPS must be > 0 */
/* Now, we might need to wait for the next multiple of the fps
/* Now, we might need to wait for the next multiple of the fps
* before capturing */
GST_OBJECT_LOCK
(
s
);
...
...
@@ -615,12 +614,9 @@ gst_ximagesrc_set_property (GObject * object, guint prop_id,
g_free
(
src
->
display_name
);
src
->
display_name
=
g_strdup
(
g_value_get_string
(
value
));
/* src->screen_num = MIN (src->screen_num, ScreenCount (src->display) - 1); */
break
;
case
PROP_SCREEN_NUM
:
src
->
screen_num
=
g_value_get_uint
(
value
);
/* src->screen_num = MIN (src->screen_num, ScreenCount (src->display) - 1); */
break
;
case
PROP_SHOW_POINTER
:
src
->
show_pointer
=
g_value_get_boolean
(
value
);
...
...
@@ -783,14 +779,14 @@ gst_ximagesrc_class_init (GstXImageSrcClass * klass)
gc
->
finalize
=
gst_ximagesrc_finalize
;
g_object_class_install_property
(
gc
,
PROP_DISPLAY_NAME
,
g_param_spec_string
(
"display_name"
,
"Display"
,
"X Display
n
ame"
,
NULL
,
g_param_spec_string
(
"display_name"
,
"Display"
,
"X Display
N
ame"
,
NULL
,
G_PARAM_READWRITE
));
g_object_class_install_property
(
gc
,
PROP_SCREEN_NUM
,
g_param_spec_uint
(
"screen_num"
,
"Screen number"
,
"X Screen
n
umber"
,
g_param_spec_uint
(
"screen_num"
,
"Screen number"
,
"X Screen
N
umber"
,
0
,
G_MAXINT
,
0
,
G_PARAM_READWRITE
));
g_object_class_install_property
(
gc
,
PROP_SHOW_POINTER
,
g_param_spec_boolean
(
"show_pointer"
,
"Show Mouse Pointer"
,
"Show mouse pointer if XFixes extension enabled"
,
TRUE
,
"Show mouse pointer
(
if XFixes extension enabled
)
"
,
TRUE
,
G_PARAM_READWRITE
));
parent_class
=
g_type_class_peek_parent
(
klass
);
...
...
@@ -832,5 +828,5 @@ plugin_init (GstPlugin * plugin)
GST_PLUGIN_DEFINE
(
GST_VERSION_MAJOR
,
GST_VERSION_MINOR
,
"ximagesrc"
,
"X11 video input plugin
based on
standard Xlib calls"
,
plugin_init
,
VERSION
,
GST_LICENSE
,
GST_PACKAGE_NAME
,
GST_PACKAGE_ORIGIN
)
"X11 video input plugin
using
standard Xlib calls"
,
plugin_init
,
VERSION
,
GST_LICENSE
,
GST_PACKAGE_NAME
,
GST_PACKAGE_ORIGIN
)
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment