Nicolas Dufresne
a01883013a
test: camerabin: Fix buffer size calculation
...
We were assunming that GStreamer size for RGB (24bit packed) data was width x
height x 3, but GStreamer defaults to specific alignment. Use GstVideoInfo API
in order to obtain the buffer size.
This fixes failure seen when trying to merge: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/998
which make us negoaite 1x1 instead of 16x16 in this test.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2297 >
2021-06-02 11:26:41 -04:00
Andrew Branson
8de7b41015
photography: Add additional settings relevant to Android
...
Exposure mode property, extra colour tone values (aqua, emboss, sketch, neon), extra scene modes (backlight, flowers, AR, HDR).
Missing vmethods for exposure mode, analog gain, lens focus, colour temperature, min & max exposure time
Contribs by Mohammed Sameer <msameer@foolab.org>, Adam Pigg <adam@piggz.co.uk>
2019-11-18 23:10:04 +00:00
Seungha Yang
8cd89b2cdd
tests: Remove pointless unistd include
2018-12-30 22:34:43 +09:00
Tim-Philipp Müller
92400a3b69
tests: camerabin: skip checks if we don't have encoders for the default format
...
https://bugzilla.gnome.org/show_bug.cgi?id=767863
2018-01-20 15:49:35 +00:00
Guillaume Desmottes
b3b764999a
tests: fix bus leak
...
gst_bus_remove_signal_watch() has to be called to release the ref
taken by gst_bus_add_signal_watch().
https://bugzilla.gnome.org/show_bug.cgi?id=768843
2016-07-18 12:41:12 +01:00
Guillaume Desmottes
9694e7e820
camerabin: fix element leak in test
...
https://bugzilla.gnome.org/show_bug.cgi?id=766663
2016-06-21 10:52:47 +03:00
Vineeth TM
8cdfb13658
bad: use new gst_element_class_add_static_pad_template()
...
https://bugzilla.gnome.org/show_bug.cgi?id=763081
2016-03-24 14:56:51 +02:00
Thiago Santos
dd2dba632e
tests: camerabin: add tests for GstPhotography image capture
...
GstPhotography enables new paths in wrappercamerabinsrc that allows
the source to be notified about the capture caps and provide an
alternative caps if desired bypassing the negotiation (this doesn't
seem like a good idea these days). To make sure it keeps working
until we remove it from the API in favor of standard caps negotiation
features this test was added.
It adds 3 extra tests with a simple test source that will:
1) Test that capturing with ANY caps work
2) Test that capturing with a fixed caps work
3) Test that capturing with a fixed caps and having the source
pick a different resolution from GstPhotography API works
by having wrappercamerabinsrc crop the capture to the final
requested dimensions
2015-04-24 15:12:47 -03:00
Thiago Santos
de5f0dd221
camerabin: tests: remove unused macros
...
Those macros were with the wrong name (likely a copy n paste mistake)
and were unused.
2015-04-24 15:12:46 -03:00
Thiago Santos
7774126c5d
tests: camerabin: remove obsolete check for 0.10 feature
2015-04-24 15:12:46 -03:00
Thiago Santos
87e306fe4a
tests: camerabin: add test for capture with different caps
...
Adds a test to verify that viewfinder and image capture caps
can be set to non-intersecting caps and still work.
https://bugzilla.gnome.org/show_bug.cgi?id=724868
2015-04-21 10:00:44 -03:00
Thiago Santos
f1b99f04dc
tests: camerabin: fix caps leak in test
...
The gst_query_set_caps_result doesn't take ownership of caps
2014-06-27 17:35:32 -03:00
Thiago Santos
f5cf601638
tests: camerabin: avoid warning if test is failing
...
In case the test fails the message won't be returned and it
will lead to an assertion that might be misleading to those
debugging the issue.
2014-02-04 14:17:26 -03:00
Thiago Santos
8255f0bb10
tests: camerabin: improve preview handling in tests
...
Always erase the preview image data to allow the next check for
it to operate properly
2014-01-30 03:29:25 -03:00
Tim-Philipp Müller
15610ca447
tests: camerabin: report element creation failures better and fix up LIBS
2013-02-28 20:21:16 +00:00
Tim-Philipp Müller
9e1b75fda3
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Tim-Philipp Müller
32ba17cd0f
Use gst_element_class_set_static_metadata()
...
where possible. Avoids some string copies. Also re-indent
some stuff. Also some indent fixes here and there.
2012-10-17 17:46:34 +01:00
Mark Nauwelaerts
578861abea
replace gst_element_class_set_details_simple with gst_element_class_set_metadata
2012-09-14 17:27:49 +02:00
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