summaryrefslogtreecommitdiff
path: root/gst/videocrop
Commit message (Collapse)AuthorAgeFilesLines
* videocrop: Fix icles tests.Víctor Manuel Jáquez Leal2021-08-171-3/+5
| | | | | | | | | | | | | | | Internally videcrop can call gst_video_crop_set_info() with NULL as in caps. Then critical messages are raised when the in caps are processed. To fix this the in caps are checked, and if they are present, its capsfeature is extracted, otherwise, the previous raw caps detection remains as before. Also the videocrop-test removes the format field in the structure because now its always passed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1056>
* videocrop: Resurrect logging category.Víctor Manuel Jáquez Leal2021-08-118-119/+17
| | | | | | | | | | | | | Fix for a regression from commit 8f1384c9. That commit moved the debug category definition, as static, into a gstvideocropelement.c, but that category was used as default, in gstvideocrop.c, so it was never used at logging, so the debug selector never showed the logs for videocrop. This patch move back the category definition into gstvideocrop.c and leaving the function videocrop_element_init() as a noop. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1049>
* videocrop: Resurrect any caps feature negotiation.Víctor Manuel Jáquez Leal2021-07-281-1/+5
| | | | | | | | Commit e31cbce4 brought a regression to negotiate featured caps. But only by removing the entry in the caps template. This commit brings it back. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1039>
* videocrop: Add support for GBR* video formatsMarkus Ebner2021-04-103-55/+79
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/515>
* videocrop: Added support for planar pixel formats > 8bitsMarkus Ebner2021-04-103-21/+60
| | | | | | | | - Added support for planar pixel formats with depths greater than 8bits to transform_planar implementation - Added a whole lot of new pixel formats to the support-list Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/515>
* videocrop: Move supported format list into private headerMarkus Ebner2021-04-103-17/+26
| | | | | | | - Moved declaration of supported pixel formats to private header, which can be shared between videocrop and aspectvideocrop Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/515>
* videocrop: allow per feature registrationStéphane Cerveau2021-03-296-23/+160
| | | | | | | | | | | | | Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
* videocrop: handle non raw caps featuresVíctor Manuel Jáquez Leal2021-03-262-3/+28
| | | | | | | | | | | | | | Currently, videocrop, only negotiates raw caps (system memory) because it's the type of memory it can modify. Nonetheless, it's also possible for the element to handle non-raw caps when only adding the crop meta is possible, in other words, when downstream buffer pools expose the crop API. This patch enable non-raw caps negotiation. If downstream doesn't expose crop API and negotiated caps are featured, the negotiation fails. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/915>
* Fix usage of C99Xavier Claessens2020-03-231-2/+4
| | | | It's 2020, way too early for that, let's stick to C89 for now.
* videocrop: Add support for Y41B and Y42BMarkus Ebner2020-03-101-2/+4
|
* videocrop: Add support for Y444Markus Ebner2020-03-102-43/+38
| | | | | | - Refactored the planar transform method to support all video formats that are stored planar, independent of the used subsampling - Added support for Y444
* videocrop: Use G_VALUE_INIT to initialize GValuesMarkus Ebner2020-03-101-3/+2
|
* videocrop: allow properties to be animated by GstControllerDaniel Molkentin2020-01-031-4/+25
|
* videocrop: Also update the coordinate when in-placeNicolas Dufresne2019-11-121-0/+8
| | | | | | | This update is needed when the output caps is not changed (e.g. we are moving a viewport around). Fixes #669
* videocrop: Don't always re-run the allocation queryNicolas Dufresne2019-11-111-3/+5
| | | | | | | | | | | | When in-place, running an allocation is not useful since videocrop is not implicated in the allocation. So only force the allocation query for the case it was in passthrough. This is needed since the change in the crop region will likely pull us out of this mode. For the case we where neither in passthrough or in-place, the allocation query is already ran by the baseclass, so nothing special is needed. This fixes performance issues when changing the crop region per frame. This was reproduced using videocrop2-test.
* videocrop: Cleanup spurious assignmentNicolas Dufresne2019-11-111-4/+1
| | | | These are just writing the same thing a second time.
* Remove autotools build systemTim-Philipp Müller2019-10-141-12/+0
|
* documentation: fix a number of typosAaron Boxer2019-10-051-2/+2
|
* doc: Port documentation to hotdocThibault Saunier2019-05-131-0/+1
|
* docs: Port all docstring to gtk-doc markdownThibault Saunier2019-05-132-7/+7
|
* aspectcropration: Fix potential unref of NULL pointerThibault Saunier2018-11-261-1/+1
|
* aspectcropratio: Set caps from the streaming thread on property changesThibault Saunier2018-11-262-5/+31
| | | | | | | | Otherwise it might lead to deadlocks See https://gitlab.gnome.org/GNOME/pitivi/issues/2259 Closes #518
* Meson: Generate pc file for all plugins in goodXavier Claessens2018-04-251-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=794568
* videocrop: Add GstVideoCropMeta supportNicolas Dufresne2017-12-171-30/+129
| | | | | | | If downstream supports this meta, it will add or update it from the GstBuffer in-place rather then copying. https://bugzilla.gnome.org/show_bug.cgi?id=791453
* Remove plugin specific static build optionNicolas Dufresne2017-05-161-1/+0
| | | | | Static and dynamic plugins now have the same interface. The standard --enable-static/--enable-shared toggle are sufficient.
* Add support for Meson as alternative/parallel build systemNirbheek Chauhan2016-08-201-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/mesonbuild/meson With contributions from: Tim-Philipp Müller <tim@centricular.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.
* videocrop mark crop properties as mutable in playing stateTim-Philipp Müller2016-05-231-6/+10
|
* good: use new gst_element_class_add_static_pad_template()Vineeth TM2016-03-242-8/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=763076
* gst: Don't assume that get_current_caps() returns non-NULL caps after ↵Dave Craig2016-02-231-2/+4
| | | | | | | | | | has_current_caps() Remove calls to gst_pad_has_current_caps() which then go on to call gst_pad_get_current_caps() as the caps can go to NULL in between. Instead just use gst_pad_get_current_caps() and check for NULL. https://bugzilla.gnome.org/show_bug.cgi?id=759539
* win32: remove outdated build cruftTim-Philipp Müller2016-02-211-145/+0
| | | | | | This hasn't been touched for generations, doesn't work, and is just causing confusion. We also don't want to maintain these files manually.
* Rename property enums from ARG_ to PROP_Luis de Bethencourt2015-04-272-22/+22
| | | | Property enum items should be named PROP_ for consistency and readability.
* Remove obsolete Android build cruftTim-Philipp Müller2015-04-261-15/+0
| | | | This is not needed any longer.
* videocrop: print the property values when setThiago Santos2015-04-241-3/+3
| | | | | | Instead of printing the currently used values. The log is meant to show what the properties changed to, not what is being currently used.
* videocrop: Remove todo about caps filterNicolas Dufresne2014-12-151-1/+0
| | | | The filter is already interected.
* videocrop: Make sure new crop is appliedNicolas Dufresne2014-12-152-47/+55
| | | | | | | | | | | | | Since "basetransform: Fix caps equality check" commit a7f357, set_info() will not be called anymore if crop didn't change the caps. This is fixed by setting "need_update" boolean when cropping properties has been changed, and then applying these if they where not applied before rendering the next frame. This patch also fixed the locking, dropping un-needed custom lock, and no holding needless lock while doing the operation as we already hold the streaming lock. https://bugzilla.gnome.org/show_bug.cgi?id=740787
* aspectratiocrop: Handle resolution changes properlyAndrei Sarakeev2014-11-282-11/+2
| | | | | | | | | When an caps-event is received, we must immediately change the crop to videocrop correctly changed caps-event dimension, otherwise the videocrop will first use the previous value of the crop that when resizing video to a smaller resolution may cause an error. https://bugzilla.gnome.org/show_bug.cgi?id=740671
* videocrop: Add support for GRAY16_LE/GRAY16_BEJoshua M. Doe2013-05-152-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=700331
* gst: Add better support for static pluginsSebastian Dröge2013-04-151-1/+1
|
* videocrop: add support for YV12Tim-Philipp Müller2012-11-101-1/+1
| | | | We can do I420, so we can do YV12 as well.
* videocrop: Add NV12/NV21 supportNicolas Dufresne2012-11-102-2/+51
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687964
* videocrop: Add support for automatic croppingNicolas Dufresne2012-11-072-34/+124
| | | | | | | | | This change enable automatic cropping using -1 set to left, top, right or bottom property. In the case both side are set to automatic cropping, the croping will be done equally on both side (in the odd case, right and bottom cropping will be 1 pixel more). https://bugzilla.gnome.org/show_bug.cgi?id=687761
* Fix FSF addressTim-Philipp Müller2012-11-044-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* gst: add various missing GST_PLUGINS_BASE_LIBS in Makefile.amAntoine Tremblay2012-10-271-1/+1
| | | | | | | Those plugins depend on either libgstaudio or libgstvideo, which are in gst-plugins-base. https://bugzilla.gnome.org/show_bug.cgi?id=687013
* videocrop: port to videofilterWim Taymans2012-10-172-207/+118
|
* fix more capsWim Taymans2012-09-141-1/+1
|
* docs: gst-launch -> gst-launch-1.0 and ffmpegcolorspace -> videoconvertTim-Philipp Müller2012-08-272-2/+2
|
* videocrop: Don't return NULL from _transform_capsRobert Swain2012-07-271-6/+1
| | | | | | If _transform_caps () returns NULL, the basetransform _transform_caps tries to call gst_caps_is_subset () with a NULL subset which hits an assertion.
* fix Y800 formatWim Taymans2012-06-062-2/+2
|
* video: remove duplicate formatWim Taymans2012-05-291-1/+1
|
* Use new gst_element_class_set_static_metadata()Tim-Philipp Müller2012-04-102-2/+2
|