summaryrefslogtreecommitdiff
path: root/gst/camerabin2
AgeCommit message (Collapse)AuthorFilesLines
2018-04-25Meson: Generate pc file for all plugins in badXavier Claessens1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=794568
2017-05-16Remove plugin specific static build optionNicolas Dufresne1-1/+0
Static and dynamic plugins now have the same interface. The standard --enable-static/--enable-shared toggle are sufficient.
2017-04-12docs: Port all docstring to gtk-doc markdownThibault Saunier5-35/+22
2017-03-08Rename plugin filesnames to match plugin namesNicolas Dufresne2-9/+9
- libgstgtksink.so -> libgstgtk.so - libgstteletextdec.so -> libgstteletex.so - libgstcamerabin2.so -> libgstcamerabin.so - libgstonvif.so -> libgstrtponvif.so (meson only) - sdp -> sdpelem (avoid clash with libgstsdp) - gstsiren -> siren - libgstkmssink.so -> libgstkms.so https://bugzilla.gnome.org/show_bug.cgi?id=779344
2016-08-20Add support for Meson as alternative/parallel build systemNirbheek Chauhan1-0/+18
https://github.com/mesonbuild/meson With contributions from: Tim-Philipp Müller <tim@centricular.com> Matej Knopp <matej.knopp@gmail.com> Jussi Pakkanen <jpakkane@gmail.com> (original port) Highlights of the features provided are: * Faster builds on Linux (~40-50% faster) * The ability to build with MSVC on Windows * Generate Visual Studio project files * Generate XCode project files * Much faster builds on Windows (on-par with Linux) * Seriously fast configure and building on embedded ... and many more. For more details see: http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html Building with Meson should work on both Linux and Windows, but may need a few more tweaks on other operating systems.
2016-07-08camerabin: update docs sectionTim-Philipp Müller1-13/+12
2016-03-24bad: use new gst_element_class_add_static_pad_template()Vineeth TM3-12/+8
https://bugzilla.gnome.org/show_bug.cgi?id=763081
2015-12-15plugins-bad: Fix example pipelinesVineeth TM2-3/+3
rename gst-launch --> gst-launch-1.0 replace old elements with new elements(ffmpegcolorspace -> videoconvert, ffenc_** -> avenc_**) fix caps in examples https://bugzilla.gnome.org/show_bug.cgi?id=759432
2015-08-05camerabin2: Fix string typoAnders Jonsson1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=753241
2015-05-01wrappercamerabinsrc: handle when source creation failThiago Santos1-3/+8
Remember to set the source to NULL state as adding it to the pipeline will set it to the READY state.
2015-05-01wrappercamerabinsrc: fix element linking orderThiago Santos1-6/+3
Video source should be linked to videocrop and not to videoconvert as it is done in the main linking path
2015-04-27wrappercamerabinsrc: remove unused codeThiago Santos1-23/+1
The structure is created and never used anymore. Remove it.
2015-04-27wrappercamerabinsrc: use digitalzoom elementThiago Santos2-87/+14
Replace videocrop ! videoscale ! capsfilter with the digitalzoom bin that has the same pipeline internally and already updates the capsfilter automatically when caps change, removing this code from wrappercamerabinsrc and making it cleaner.
2015-04-27digitalzoom: change videocrop parameters before passing caps eventThiago Santos1-6/+4
Avoids one extra uneeded renegotiation if the elements are already configured to their final property values when the caps event goes through. Also avoids hitting bug https://bugzilla.gnome.org/show_bug.cgi?id=748344
2015-04-27digitalzoom: also skip internal pipeline in upstream caps queryThiago Santos1-1/+21
To avoid going through our capsfilter which would limit the choices.
2015-04-27digitalzoom: prevent assertion when caps is anyThiago Santos1-0/+5
2015-04-27camerabin: digitalzoom: create a bin element for digital zoomingThiago Santos3-0/+445
It contains videocrop ! videoscale ! capsfilter and implements digital zooming. At this moment, it is a private element of the camerabin plugin. This will remove some code used in wrappercamerabinsrc to make code clearer and digitalzoom can potentially be used by other applications in the future, it has nothing camerabin specific.
2015-04-26Remove obsolete Android build cruftTim-Philipp Müller1-16/+0
This is not needed any longer.
2015-04-24wrappercamerabinsrc: Rework cropping for zoom and dimension reductionThiago Santos2-43/+30
wrappercamerabinsrc has a videocrop element to be used for zooming and for cropping when input caps is different when used with the GstPhotography interface. The zooming part needs the following elements: capsfilter ! videocrop ! videoscale ! capsfilter The capsfilters should always have the same caps to ensure the zooming is done and preserves dimensions, unless when it is needed to do more cropping due to input dimensions those caps need to be modified accordingly to preserve the output dimensions. This, however, makes it hard to get caps negotiation to work properly as we need to have different caps in the capsfilters to account for the extra cropping needed. It could be simple for fixed caps but it gets tricky with unfixed ones. To solve this, this patch splits the zooming and dimension reduction cropping into 2 separate videocrop elements. The first one does the dimension cropping, which is only needed when the GstPhotography API is used and the source provides a caps that is different than what is requested, while the second is dedicated to zoom crop only. The first part of the pipeline goes from: src ! videoconvert ! capsfilter ! videocrop ! videoscale ! capsfilter to src ! videocrop ! videoconvert ! capsfilter ! videocrop ! videoscale ! capsfilter It might add an extra overhead in the image capture as the image might need to be cropped twice but this can be solved by enabling videocrop to use crop metas so only the later one does the real cropping. It also makes the code a bit simpler.
2015-04-24wrappercamerabinsrc: remove obsolete commentThiago Santos1-3/+0
This is already handled in another place and doesn't make sense in the function context anymore
2015-04-24wrappercamerabinsrc: error out if source fails to prepare for captureThiago Santos1-3/+6
Post an error when preparing the image capture through photography interface fails
2015-04-24wrappercamerabinsrc: intersect instead of compare for equalityThiago Santos1-1/+1
Intersect is enough to check if the requested caps are compatible with what the source is going to provide. Equality will be too strict.
2015-04-24wrappercamerabinsrc: fix typoThiago Santos1-1/+1
2015-04-21wrappercamerabinsrc: Reset zoom element caps to go to viewfinder modeThiago Santos1-0/+5
Avoids not-negotiated failures related to using image capture caps still when adjusting to go back to viewfinder.
2015-04-21wrappercamerabinsrc: fix leak of drain queryThiago Santos1-1/+4
gst_pad_peer_query doesn't take ownership of the query object
2015-04-21wrappercamerabinsrc: Refactor internal pipelineThiago Santos2-155/+133
Remove tee and output-selector and just link the source pad to the outputs we want as needed. The way we need to prioritize caps negotiation and allocation queries depending on the mode enabled is too custom to be handled using tee and output-selector. This provides more flexibility and doesn't get in the way of proper handling of negotiation and allocation queries.
2015-04-10wrappercamerabinsrc: remove unused attribute and related pad probeThiago Santos2-35/+0
The variable was never set to true and can be removed along with the probe in which it used to act
2015-03-14camerabin: remove hack around bug 648359Thiago Santos1-8/+1
It is already fixed
2015-03-14camerabin: remove deprecated g_atomic functionThiago Santos1-7/+1
We depend on 2.32 already
2015-03-14wrappercamerabinsrc: fix pad leakThiago Santos1-2/+2
Only get the pad if it is really going to be used to avoid leaking it
2015-03-08camerabin: update zoom param spec if video source changes its max-zoomMohammed Hassan1-0/+8
If the video source happens to allow max-zoom to be greater than our maximum hard coded value of 10 then the user cannot set anything greater than our maximum specified in the param spec. We have to update our param spec to prevent glib from capping the value https://bugzilla.gnome.org/show_bug.cgi?id=745740
2015-03-04camerabin2: check negotiated caps avoid reseting of the pipeOleksij Rempel2-15/+40
To avoid useless renegotiation of the pipe we can check for negotiated caps on src_filter and compare it with requested filter. If the caps intersect, avoid restart. Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net> https://bugzilla.gnome.org/show_bug.cgi?id=672610
2015-01-05wrappercamerabinsrc: fix deadlock with pad object lockThiago Santos1-1/+1
The image capture mutex and the pad object lock would cause a race if the pad query was made right when the image probe was running. The image probe needs the capture mutex and the querying would need the pad object lock.
2015-01-05wrappercamerabinsrc: simplify weird if/else clauseThiago Santos1-13/+12
It is not an if/else situation but an if error abort otherwise just continue. Remove else to make it more readable
2014-12-26wrappercamerabinsrc: do not set source state with lockThiago Santos1-3/+6
It might be racy with the image probe thread as it uses the capture mutex just like the start-capture handler from camerabin. The start-capture would be waiting for the source's streaming thread to stop to be able to set the source state to ready while the probe would be blocked waiting to acquire the capture mutex. It causes a deadlock.
2014-12-26wrappercamerabinsrc: use the drain query instead of flushThiago Santos1-6/+4
The flush might clear any pending captures that are still in queues being processed while the drain query will wait for those to be properly done
2014-10-28Add some missing G_END_DECLSTim-Philipp Müller1-0/+3
2014-10-02gst: remove unnecessary GLIB_DISABLE_DEPRECATION_WARNINGSVineeth T M1-4/+0
There are unnecessary definitions for disabling deprecation warnings. Since GLIB_DISABLE_DEPRECATION_WARNINGS is not needed anymore in these files, removing the same. https://bugzilla.gnome.org/show_bug.cgi?id=737559
2014-09-18camerabin2: removed redundant initializationSanjay NM1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=736853
2014-08-10wrappercamerabinsrc: Unref elements after usageSebastian Rasmussen1-1/+10
gst_bin_get_by_name() and gst_bin_get_by_interface() both return references to elements that need to be unreferenced after usage. https://bugzilla.gnome.org/show_bug.cgi?id=734524
2014-07-26wrappercamerabinsrc: do not give references to probesThiago Santos1-6/+3
They are kept until the probes are removed but they will never be removed as the refcount of the element won't get to 0 because the probes own references (cyclic refs). As the probes should only be running as long as the element is running there is no need to secure a ref for them. Removes 3 leaked refs of wrappercamerabinsrc
2014-07-26camerabin: use gst_object_ref to make it easier to track refsThiago Santos1-2/+2
Helps debugging
2014-07-26wrappercamerabinsrc: unref request padsThiago Santos1-0/+8
Do not forget to unref output-selector requested pads
2014-07-23wrappercamerabinsrc: only flush buffers if renegotiation is neededThiago Santos1-7/+8
This avoid extra overhead when taking sequential pictures that woudln't need renegotiation
2014-07-23camerabin: handle EOS on the pipelineThiago Santos2-16/+19
Make camerabin handle EOS to the pipeline to allow standard pipeline close where an EOS is sent to the whole pipeline before setting it to NULL.
2014-07-17wrappercamerabinsrc: set src to ready when there are no pending buffersThiago Santos1-1/+1
Setting to ready will block waiting for buffers to be reclaimed, so flush before setting to null to make sure no buffers are pending https://bugzilla.gnome.org/show_bug.cgi?id=733072
2014-07-11wrappercamerabinsrc: Fix caps filter caps proxyingNicolas Dufresne1-15/+14
The notify signal is triggered when caps is changed. But instead of proxying the fixed caps, we query for the caps. Hence, when we go to READY state, we endup setting template caps on the proxied caps filter instead of NULL, which leads to negoitation failure. Correctly proxy NULL caps if this is the new caps. Fixes not negotiated error when running in cheese. Also fix a leak of caps string in one of the trace. https://bugzilla.gnome.org/show_bug.cgi?id=732741
2014-07-10camerabin2: Flush downstream after setting src to READYNicolas Dufresne1-0/+12
v4l2src requires all buffers to come back in order to cleanly stop streaming. Flushing the pipline should force all buffers to come back. https://bugzilla.gnome.org/show_bug.cgi?id=732741
2014-05-30camerabin: fix structure handling in preview messageThiago Santos1-2/+11
Avoid trying to modify the message structure as it isn't mutable. Use a copy and post a new message if necessary. Fixes failing tests.
2014-04-09camerabin2: remove unneeded checkVincent Penquerc'h1-2/+2
A message may not be NULL in the message handling function (and nothing there sets it to NULL). Coverity 1139848