Commit graph

42 commits

Author SHA1 Message Date
Thiago Santos
8c3c7ee47a tests: camerabin: fix image location switching test
The test should wait until the last image-done is posted so it
can correctly check that all images have been saved.
2012-08-29 15:45:05 -03:00
Tim-Philipp Müller
489b102a43 gst_tag_list_free -> gst_tag_list_unref 2012-08-04 16:31:30 +01:00
Thiago Santos
9461db97c2 tests: camerabin: fix preview message handling
Preview messages now contain GstSamples instead of GstBuffers
2012-07-29 01:11:29 -03:00
Tim-Philipp Müller
c8e16bc1b7 tests: fix some pad template-related criticals in camerabin test 2012-07-10 11:14:59 +01:00
Tim-Philipp Müller
3c6bd7753e tests: update camerabin(2) unit test for rename 2012-04-30 18:05:09 +01:00
Tim-Philipp Müller
7d65470c4a Remove old camerabin 2012-04-30 17:44:34 +01:00
Wim Taymans
492a9a72fb tests: fix more tests 2012-02-07 12:14:05 +01:00
Tim-Philipp Müller
3c69286db9 tests: remove temporary files when done in camerabin, camerabin2 and jifmux tests 2012-01-04 19:14:14 +00:00
Lasse Laukkanen
466ca5d460 camerabin: Add image-formatter property
Add image-formatter property in order to let application configure
the formatter element for metadata.
2011-05-23 12:08:37 -03:00
Thiago Santos
cee2bc7aa0 test: camerabin: More leak fixes 2011-04-15 07:53:43 -03:00
Thiago Santos
8a9a0cd37e tests: camerabin: Some leak fixes
Leak fixes related to removing the source returned from
gst_bus_add_watch
2011-04-14 14:33:00 -03:00
Thiago Santos
9a2149cf02 camerabin: Fix caps leaks
Fix some caps leaks on unit tests
2010-12-20 11:06:52 -03:00
Thiago Santos
60a6eca2a1 camerabin: Adds 'idle' property
Adds 'idle', a read-only boolean property that tells applications
if there is any capturing/saving/encoding going on in camerabin. If
not, it is safe to set it to NULL and release resources without
losing data.
2010-11-04 22:48:02 -03:00
Lasse Laukkanen
bc1b09c1c4 camerabin: Add "ready-for-capture" property
Add "ready-for-capture" property to indicate if preparing a new
capture is possible.

"ready-for-capture" changes before the 'image-done' signal, so
the application can be notified that it can do a new capture
even before the previous one has finished encoding/saving.
2010-11-04 21:41:07 -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
e0dae09731 tests: camerabin: remove photoiface property/settings tests
Fixes #616923
2010-09-20 18:26:48 -03:00
Thiago Santos
544eb38aef camerabin: Adds a new test to check sequential capture of images
Adds a new test case that shoots a sequence of image capture
and check that the files are valid.

Also adds taglist checking capabilities to tests.
2010-09-16 16:57:57 -03:00
Thiago Santos
a40270a054 camerabin: Refactor tests
The tests were done in 2 steps, first there was a suite
that generated the files (while checking that camerabin
was operating correctly). Then there was a second suite
that was run to check that all files were playable with
playbin2. Those second tests were not being run because
they were checking if camerabin was initialized, and it
never was as those tests didn't use a 'setup' function.

This commit refactors the tests by removing this second
suite and merging its validation with the first suite's
functions.
2010-09-05 09:15:56 -03:00
Lasse Laukkanen
55d98ef488 camerabin: add block-after-capture property for viewfinder blocking
Adds block-after-capture property to block running viewfinder after capturing.
This property is useful if application wants to display capture preview and avoid
running viewfinder on background.

Based on a patch by Tommi Myöhänen <ext-tommi.1.myohanen@nokia.com>
2010-04-13 12:00:36 -03:00
Tommi Myöhänen
6206f58c3a GstPhotography: Add flicker and focus mode settings to photography API
Adds flicker and focus mode settings to photography API and also
implement it in camerabin.
2010-04-13 12:00:35 -03:00
Teemu Katajisto
779330a6e5 camerabin: update unit tests
Add testing of setting and getting of camerabin property elements and
add post-processing elements to pipeline.
2010-04-13 12:00:34 -03:00
Teemu Katajisto
3ff50bf133 camerabin: add unit tests for setting different flags when capturing
Adds some tests that use flags for capturing to asure it works
with flags set or not.
2010-04-13 12:00:34 -03:00
Teemu Katajisto
78e41a24d3 camerabin: add paused video capture file validity check in unit test
Also check that the file captured in the paused capture unit test is
playable.
2010-04-13 12:00:33 -03:00
Lasse Laukkanen
16cff06a70 camerabin: add viewfinder-filter property
Adds a new property called viewfinder-filter to camerabin.
This property is used to add a filter to process the video
flow right before the viewfinder sink.

Also updates test to check property exists.
2010-04-13 12:00:33 -03:00
Lasse Laukkanen
3b788bac25 camerabin: set videotestsrc pattern to white in unit test
Lower complexity of encoding and videotestsrc redrawing in order
to prevent unit test timeouts.
2010-04-13 12:00:32 -03:00
Teemu Katajisto
eb3fb87710 camerabin: New unit tests
Add unit tests for camerabin properties setting and getting,
adds one for video capturing with pause.

Also does some c99 variable declaration fixes.
2010-04-13 12:00:32 -03:00
Shenghua Liu
3b6faa6404 camerabin: update unit test to have test on recording snapshot preview
Adds a small check to verify that the preview image message is
being sent on video recording.
2010-04-13 12:00:31 -03:00
Benjamin Otte
f96e4f1581 Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
2010-03-21 21:39:18 +01:00
Teemu Katajisto
23bcd2d766 camerabin: use raw audio/video in unit tests
Removes dependency to ogg/vorbis/theora when running camerabin
unit tests.
2009-10-29 11:43:10 +02:00
Teemu Katajisto
f058bd79bd camerabin: fix for gstreamer core unit test framework update
Set camerabin state to NULL in the each test case end.
2009-10-24 15:14:26 +03: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
8f1b3d3ec2 camerabin: debug log only change 2009-06-22 22:01:22 +03:00
Stefan Kost
b1367a95ca camerabin: more cleanup in tests
Add more debug logging. Remove unused mutex and cond.
2009-06-22 13:41:16 +03:00
Stefan Kost
1658384381 camerabin: cleanups in the tests
Sprinkle more logging to make it easier to follow. Specify a low framerate and
capture resolution to avoid tests timing out. Make the sinks sync to test closer
to reality. Fix Makefile to use uninstalled interface.
2009-06-14 10:56:38 +03:00
Lasse Laukkanen
6a47f6f594 camerabin: preview image sending optimization
* decouple image capturing from image post-processing and encoding
 * post image-captured message after image is captured
 * post preview-image message with snapshot of captured image
2009-06-05 15:51:31 +03:00
Lasse Laukkanen
65ddcd6d5d camerabin: change img-done signal parameter from GString* to const gchar*
Don't allow setting filename via img-done signal parameter but force app
use filename property. Don't stop capture when setting filename property.
Update check unit test based on the change.
2009-04-16 15:19:20 +03:00
Jan Schmidt
81a950ddf8 camerabin: Make the tests pass when the camerabin can't initialise.
The camerabin tests were throwing glib errors and hanging when
gst-plugins-good elements (jpegenc, videocrop) can't found.
2009-03-07 00:31:07 +00:00
Stefan Kost
fab9dfa5d0 camerabin: rework signaling and tests
Revert the GString change. There are no marshallers for it. A better change is
now described in http://bugzilla.gnome.org/show_bug.cgi?id=573370.
Test should work again.
2009-02-27 12:35:14 +02:00
Stefan Kost
2879426a82 camerabin: increase timeout and lower video recording length
The video was recorded for too long for the test timeouts. Also the verification
suite did not had custom timouts at all. Also split the verification for images
and video to get better reporting.
2009-02-25 15:25:58 +02:00
Stefan Kost
293715f77a camerabin: get rid of // comment and explain 2009-02-25 11:00:55 +02:00
Stefan Kost
5442a630ef camerabin: update check unit test
Use playbin2 for validation. Use tmp_dir for capturing. Wait with g_cond for
burst capture finish. Cleanup some g_object_set. Add some logging to ease
tracing.
2009-02-25 10:46:10 +02:00
Nokia Corporation
d92f2b89f5 tests: Add camerabin unit tests. 2009-02-09 10:22:09 +02:00