Commit graph

51 commits

Author SHA1 Message Date
Olivier Crête
d22d5468a8 examples/camerabin: Fix set-but-unused warnings 2011-07-12 18:22:35 -04:00
Lasse Laukkanen
a9c60f3b31 examples: camerabin: Add --image-formatter command-line option
Add command-line option to gst-camerabin-test for configuring camerabin
metadata formatter element.
2011-05-31 18:22:02 -03:00
Teemu Katajisto
ab2b9079f0 examples: camerabin: fix --no-xwindow option handling in gst-camerabin-test
--no-window flag is false by default and selection based on the option whether
to create XWindow is done before options are parsed. Therefore XWindow is never
created.

https://bugzilla.gnome.org/show_bug.cgi?id=641712
2011-02-08 09:09:29 -03:00
Stefan Kost
4915493932 camerabin-tests: fix lookup of UI files
These are uninstalled examples. Pass $srcdir to cpp to build the correct
location for the UI file.
2011-02-07 11:28:23 +02:00
Thiago Santos
97789fa5bc examples: camerabin: add timing printing for preview image
Measure and print the time taken to generate preview image. And
fix a typo
2011-01-24 18:37:12 -03:00
Lasse Laukkanen
10830c9544 examples: camerabin: Don't set default values for GstPhotography interface settings
Don't set any default values for source element GstPhotography interface
settings, source elements should have sane defaults themselves.
Also, setting scene-mode is tricky as it is a superset of other GstPhotography
settings. This might cause problem with defaults e.g. setting scene-mode to
'night' may configure flash-mode as 'on' by definition, and after that
we don't want to override this flash-mode setting with gst-camerabin-test default
value. Moreover, user needs have an option to set scene mode first and then force
some individual setting to a different value from the scene-mode definition.

https://bugzilla.gnome.org/show_bug.cgi?id=639841
2011-01-24 18:05:20 -03:00
Tim-Philipp Müller
f90b8bdfa0 examples: fix gtk3 code path in camerabin example app
Just add rows via the combobox's model, which should work with
both gtk2 and gtk3, instead of using the gtk_combo_box_append_text()
convenience API (which was renamed to gtk_combo_box_text_append_text()).
Fixes compilation against gtk3 (there was a typo in the list store
variable name, spotted by Markus Vartiainen).
2010-12-26 17:12:01 +00:00
Saleem Abdulrasool
516c977c76 camerabin: fix for latest GTK+ API changes 2010-12-20 21:36:40 +02:00
Lasse Laukkanen
6867ec5627 examples: camerabin: Remove gstring leak
Simplify gst-camerabin-test by removing GString and replacing
with gchar for the filename handling. Also removes a leak of
the GString data.
2010-11-08 11:07:17 -03:00
Lasse Laukkanen
fe22a3ab5a examples: add async bus handler to gst-camerabin-test
Splits the bus handler into sync and async, keeping the
prepare-xwindow handling at the sync for faster handling and
moving the others to the async handler
2010-11-08 08:56:15 -03:00
Teemu Katajisto
4503a85d54 examples: camerabin: add support for setting many post-processing elements
Instead of taking a single element as input for the image post
processing option, take a list of comma separated elements
that will be used.
2010-11-02 09:16:44 -03:00
Sebastian Dröge
18f38a747a examples: Fix compilation with GTK+ 3.0 2010-10-12 12:11:37 +02:00
Thiago Santos
55ad3f8816 camerabin: example: make gst-camera use flags
Enable all convertion flags in gst-camera example app
for safety.

Fixes #603063
2010-09-22 23:54:46 -03:00
Thiago Santos
657e80b108 camerabin: examples: do not use deprecated GstXOverlay functions
Replace the deprecated gst_x_overlay_set_xwindow_id with
gst_x_overlay_set_window_handle

Fixes #630255
2010-09-21 10:59:42 -03:00
Lasse Laukkanen
5c92dc23cc camerabin: update tag names in test application to latest gst definitions 2010-09-20 18:26:49 -03:00
Thiago Santos
19981f2787 camerabin: Change zoom property from int to float
Updates zoom property for a more natural type and
makes it consistent with the photography API
2010-09-20 18:26:48 -03:00
Teemu Katajisto
9bace27300 examples: camerabin: use photoiface properties through video-source
Fixes #616923
2010-09-20 18:26:48 -03:00
Teemu Katajisto
638f681f83 examples: camerabin: add --no-xwindow option and fix option handling
Add --no-xwindow option to not to create xwindow. Also fix zoom and
mute option types and filename string handling.
2010-09-20 18:26:47 -03:00
Sebastian Dröge
940d253b78 camerabin: Don't install gst-camera.ui
The examples are not meant to be installed and the executables of
them are not installed anyway.

Fixes bug #627918.
2010-08-30 15:20:08 +02:00
Sebastian Dröge
a189cef9c8 tests: Fix build with GTK+ < 2.17.7
gtk_widget_get_allocation() was added in that version.
2010-06-27 10:41:16 +02:00
Sebastian Dröge
44b9b422d8 tests: Don't use deprecated GTK API to fix the build with GTK+ 3.0 2010-06-27 07:40:50 +02:00
David Schleef
c3d4977761 Split out GST_PLUGINS_BAD_CFLAGS from GST_CFLAGS
Move include directives for gst-libs into GST_PLUGINS_BAD_CFLAGS,
and fix all the Makefiles that use it.  This is so that all the
include directories are added in the proper order: first the
directories in srcdir/builddir, then gst-plugins-base dirs, then
gstreamer dirs.  If the order is wrong, installed headers may be
used instead of local headers and/or uninstalled headers from -base.
2010-05-19 18:24:02 -07:00
Benjamin Otte
1e399b9838 examples: Don't install camerabin examples 2010-05-15 01:23:36 +02:00
Tim-Philipp Müller
088df2215f Add new camerabin test binary to .gitignore 2010-05-01 19:06:27 +01:00
Lasse Laukkanen
17617758c3 examples: camerabin: add viewfinder-filter and filter caps properties
Adds support for setting filter-caps and viewfinder-filter
properties in the gst-camerabin-test application
2010-04-13 12:00:36 -03:00
Teemu Katajisto
0176533c02 camerabin: add gst-camerabin-test command line test tool
gst-camerabin-test tool can be used to capture still images and
video clips using camerabin element.
2010-04-13 12:00:35 -03:00
Benjamin Otte
240f494aa7 Add -Wold-style-definition
and fix the warnings
2010-03-22 16:56:03 +01:00
Benjamin Otte
33c2f5fb01 Add -Wwrite-strings
and fix its warnings
2010-03-22 13:16:33 +01:00
Benjamin Otte
25a54fc391 gst-camera: Add a header declaring the functions from the ui file 2010-03-21 22:46:00 +01:00
Benjamin Otte
e54cbf7850 examples: Call gst_ensure_native_window() for gst-camera
Fixes spurious SEGVs due to multithreading conflicts in
client-side-window Gtk versions.
2010-02-14 15:22:05 +01:00
Benjamin Otte
a04c2db340 examples: Use gtk functions instead of libX11 functions in camerabin
Gets around the need to link to libX11 directly and provides the same
functionality.
To boost, it's more portable, too!
2010-02-14 13:43:04 +01:00
Stefan Kost
0713748e1b camerabin-example: cleanups for mainloop and state-changes. Fixes #608042
Start camerabin via idle handler to have the mainloop already running. Avoid
some unnecessary state changes. Cleanup the bus usage when restarting.
2010-01-28 15:02:23 +02:00
Stefan Kost
e2b3edbc97 camerabin-example: remove maemo comment and log filename
The maemo fixme is not needed anymore. Log the choosen filename to help
people finding the files.
2010-01-25 23:06:59 +02:00
Tim-Philipp Müller
3eaa8c7673 tests: refactor weird bus sync handler code in camerabin example 2010-01-22 02:25:44 +00:00
Sebastian Dröge
be9ca4d5e1 examples: Fix build and signal connection for GtkBuilder stuff 2010-01-16 11:41:20 +01:00
Javier Jardón
878ccf4a56 tests: Port from libglade to GtkBuilder
Fixes bug #601108.
2010-01-16 11:14:55 +01:00
Tim-Philipp Müller
31ab47e03b examples: make camerabin test application handle errors when starting up
Instead of hanging forever in a _get_state() in case an error occurs when
starting up camerabin, bail out and print an error message. Also remove
unnecessary _get_state() when shutting down the pipeline.
2010-01-06 01:56:40 +00:00
Stefan Kost
8c0203ec36 camerabin: remove abbreviations from the property names. Fixes #573370 (partialy)
Also rename their use in tests and examples.
2009-10-24 15:14:26 +03:00
Stefan Kost
3333ab473c gitignore: ignore more 2009-10-24 15:14:26 +03:00
Stefan Kost
0a13cfdaf1 camerabin: set camerabin to READY before accessing the elements 2009-10-24 15:14:26 +03:00
Stefan Kost
b7b8b7f407 build: fprintf, sprintf, sscanf need stdio.h 2009-10-07 15:26:12 +03:00
Stefan Kost
2390d3a31c build: add missing stdlib include to fix the build 2009-10-02 19:12:32 +03:00
Stefan Kost
7e7c63737e camerabin: more perf-test cleanups
Remove some obsolete exmaples. Add video-width/height. Use proper api for
setting still image resolution. Fix stopping random tests on bin-state-changes.
Remove the memdup in snapshot again, as its not needed (pixbuf goes out of
scope with the buffer).
2009-07-22 18:04:18 +03:00
Stefan Kost
b3753116d2 camerabin: we need to copy the data in the example
gdk_pixbuf_new_from_data does not copy the data.
2009-07-21 17:52:33 +03:00
Stefan Kost
8ac16a90e4 camerabin: add code in test to store snapshots for manual verification
Use gdk_pixbuf to save the image in perf-test. Also remove some obsolute
commented out code.
2009-07-20 16:42:44 +03:00
Stefan Kost
cae6b621aa camerabin: improve perf test robustness and add comments 2009-07-20 16:42:43 +03:00
Stefan Kost
b1d353e2de camerabin: implemnet two more tests
Add tests for videorecording startup and capture startup delay.
2009-07-17 15:50:19 +03:00
Stefan Kost
e4bc1e31ef camerabin: make shot2shot test more reliable
We can only trigger next shot (in the test) when current is captured and saved.
2009-06-26 18:36:25 +03:00
Stefan Kost
aaec6a730d camerabin: sync first test more safely
Don't use gst_element_get_state() to wait for PLAYING, Use the bus-handler
insteader and asynchronously schedule next test.
2009-06-25 19:34:27 +03:00
Stefan Kost
fa78a0f125 camerabin: add target-times option to specify test times
Have some reasonable default times. Add a commandline option to override
defaults. Interpret target-time=0 as skip-test.
2009-06-24 19:16:45 +03:00