Tim-Philipp Müller
6bb3e01918
meson: add update-orc-dist target
...
Add target to update backup orc -dist.[ch] files.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/734 >
2020-07-04 14:01:56 +01:00
Thibault Saunier
75065ab244
videotestsrc: Do not try to answer the duration query before negotiation
...
We have no idea at that moment and this code was trying to divide by 0!
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/705 >
2020-06-15 17:24:17 +00:00
Mathieu Duponchelle
cc516695b0
plugins: uddate gst_type_mark_as_plugin_api() calls
2020-06-06 00:41:17 +02:00
Mathieu Duponchelle
e666c9ec04
plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types
2020-06-03 22:44:23 -04:00
Thibault Saunier
9ce93abb29
videotestsrc: Fix buffer duration in reverse playback
...
In reverse playback, buffers have to be displayed at buffer.stop running
time, meaning:
buffer.pts + buffer.duration = prev_buffer.pts
=>
buffer.duration = prev_buffer.pts - buffer.pts
We were setting buffer.duration = next_buffer.pts - buffer.pts which
is not correct.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/646 >
2020-05-06 16:50:01 +00:00
Niels De Graef
e5cc81a128
videotestsrc: Use G_DECLARE_FINAL_TYPE
2020-03-16 15:47:58 +00:00
Tim-Philipp Müller
289d8e53e2
Remove autotools build system
2019-10-13 14:15:43 +01:00
Edward Hervey
2409f4f360
base: Avoid usage of deprecated API
...
GTimeval and related functions are now deprecated in glib.
Replacement APIs have been present since 2.26
2019-10-11 06:17:39 +00:00
Thibault Saunier
909baa2360
Pass the code through codespell
2019-08-30 13:05:36 +00:00
Thibault Saunier
27ba8d24ec
doc: Port to hotdoc
2019-05-13 11:34:08 -04:00
Seungha Yang
3499d9ea64
meson: Replace empty configuration_data() with copy keyword
...
Use 'copy' keyword to avoid meson warning message.
Note that 'copy' keyword in configure_file() is available
since meson 0.47.0
https://bugzilla.gnome.org/show_bug.cgi?id=797298
2018-10-17 13:48:47 +01:00
Xavier Claessens
201e7c7803
Meson: Generate pc file for all plugins in base
...
https://bugzilla.gnome.org/show_bug.cgi?id=794568
2018-04-25 11:05:56 +01:00
Sam Thursfield
f1324f9cb0
videotestsrc: Document the num-buffers property
...
It's not obvious from the existing docs that this option exists, nor
that it can be used to give a pipeline an exact length in video frames.
https://bugzilla.gnome.org/show_bug.cgi?id=777647
2018-01-12 00:49:20 +00:00
Edward Hervey
a47881100d
videotestsrc: Avoid overflow calculation
...
n_frames could end up being quite big (potentially up to G_MAXINT64). Which
would result in overflowing 64bits when multiplying it by GST_SECOND.
Instead move GST_SECOND to the num argument
2017-11-21 10:15:02 +01:00
Edward Hervey
c81e3e6fce
videotestsrc: Fix undefined left shift
...
Cast value to target type
2017-11-04 12:19:46 +01:00
Edward Hervey
cb0b73672c
Update disted orc file
...
For latest orc fixes
2017-10-31 11:57:23 +01:00
Olivier Crête
4fdb5ab675
videotestsrc: Protect videoinfo with object lock
...
The videoinfo is set in the streaming thread, but can be read by any
thread from the various queries, so protect it with the object lock.
2017-05-23 08:54:25 +02:00
Nicolas Dufresne
8e6c6266d7
Remove plugin specific static build option
...
Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.
2017-05-16 13:42:07 -04:00
Jan Schmidt
97001a886a
videotestsrc: Publish multiview-mode info in the caps
...
Don't allow downstream to accidentally pretend that
the output is anything than a mono or single-eye
left/right view.
https://bugzilla.gnome.org/show_bug.cgi?id=776172
2017-03-18 02:03:47 +11:00
Thibault Saunier
099ac9faf2
docs: Convert gtkdoc comments to markdown
...
Modernizing the documentation, making it simpler to read an
modify and allowing us to possibly switch to hotdoc in the
future.
2017-03-10 18:19:17 -03:00
Carl Karsten
99f4899491
videotestsrc: Add options to make ball pattern based on system time, and invert each second.
...
This adds some extra options that affect pattern=ball mode, allowing the
animation to be synced to running time or wall-time clock for comparing
sync across different instances / pipelines / machines.
Also added is the ability to invert the rendering colours every second,
and some different ball motion patterns.
https://bugzilla.gnome.org/show_bug.cgi?id=740557
2017-01-18 09:52:50 +11:00
Thibault Saunier
5bdb38995f
meson: Fix build when orc is disabled
...
Making sure not to use the orc_dep variable in case
orc has been explicitely disabled.
2016-11-14 17:26:02 -03:00
Stian Selnes
22ccb687fa
videotestsrc: Make snow deterministic
...
Deterministic generation of snow and smpte is important for tests so
that it's not affected by other videotestsrc elements in current or
possibly previous tests.
https://bugzilla.gnome.org/show_bug.cgi?id=773102
2016-11-01 20:05:18 +02:00
Arun Raghavan
4de66632d7
meson: Enable Orc in build
...
Top-level meson.build code updated from gst-plugins-good.
2016-10-03 11:01:24 +05:30
Nirbheek Chauhan
5c4f4ac1bd
Add support for Meson as alternative/parallel build system
...
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.
2016-08-20 11:09:51 +01:00
Vineeth TM
44b70ca3a1
base: use new gst_element_class_add_static_pad_template()
...
https://bugzilla.gnome.org/show_bug.cgi?id=763075
2016-03-24 14:25:41 +02:00
Tim-Philipp Müller
ddfe7a2808
win32: remove outdated build cruft
...
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.
2016-02-20 10:05:17 +00:00
Aurélien Zanelli
9b9f913809
videotestsrc: add missing break in set_property switch case
...
To avoid future issue when adding new properties.
https://bugzilla.gnome.org/show_bug.cgi?id=760204
2016-01-06 13:21:06 +02:00
Joan Pau Beltran
a95a900c21
videotestsrc: fix handling of Bayer format 'gbrg'
...
Due to a typo, videotestsrc did not handle the Bayer
format 'gbrg' properly and reported it as invalid,
causing negotiation errors.
https://bugzilla.gnome.org/show_bug.cgi?id=757264
2015-10-30 20:29:04 +00:00
Thibault Saunier
ab6b536a66
videotestsrc: Force alpha downstream if foreground color contains alpha
...
Otherwise the foreground color won't be fully represented in the
outputted frames.
https://bugzilla.gnome.org/show_bug.cgi?id=755482
2015-10-22 11:12:23 +02:00
Jan Schmidt
3f7138a6e4
videotestsrc: Don't fixate framerate if downstream didn't provide one
...
intersection with a downstream that accepts any video/x-raw caps
with no further detail won't create a framerate field. If it's
not in the caps, don't fixate it, just set it to 30/1
2015-10-02 15:05:26 +10:00
Nicolas Dufresne
7db376d05e
videotestsrc: Don't set DTS on buffer
...
DTS is for encoded data and have no meaning for raw. It better to not
set it, as it's confusing.
https://bugzilla.gnome.org/show_bug.cgi?id=752791
2015-08-04 18:00:35 -04:00
Wim Taymans
14083178b8
video: improve logging
...
Add logging categories for most video objects.
Remove some useless debug lines in video-info and videotestsrc.
Add a performance debug line in the video scaler.
2015-07-15 12:47:42 +02:00
Jan Schmidt
db86cff74d
videotestsrc: Document the solid-color pattern
2015-05-30 01:11:47 +10:00
Tim-Philipp Müller
ec5c93f169
docs: update element example pipelines
...
- gst-launch -> gst-launch-1.0
- use autoaudiosink and audiovideosink more often
- review pipeline examples and descriptions
2015-05-10 11:38:19 +01:00
Tim-Philipp Müller
c680e324bc
Remove obsolete Android build cruft
...
This is not needed any longer.
2015-04-26 18:42:34 +01:00
Luis de Bethencourt
df08f5eabe
remove unused enum items PROP_LAST
...
This were probably added to the enums due to cargo cult programming and are
unused. Removing them.
2015-04-24 17:11:01 +01:00
Wim Taymans
9bbfc3c848
videotestsrc: add all colors mode
2015-03-10 12:27:03 +01:00
Luis de Bethencourt
783204824d
orc: update orc files
2015-01-27 13:39:14 +00:00
Sebastian Dröge
8abfdd127f
videotestsrc: Report our latency properly in live mode
...
While we have no latency at all in theory, any other live source has the
duration of one buffer as minimum latency. Do the same in videotestsrc.
https://bugzilla.gnome.org/show_bug.cgi?id=741879
2014-12-24 12:59:37 +01:00
Vineeth T M
c2224b8059
videotestsrc: assertion error
...
timestamp_offset is being declared as an int64 variable,
for which the min
value of G_MININT64 is -9223372036854775808
Changing the minimum and maximum limit for the offset variable.
https://bugzilla.gnome.org/show_bug.cgi?id=738568
2014-10-21 11:28:11 +02:00
Wim Taymans
042b25542c
videotestsrc: add gradient pattern
...
Makes a gradient between background and foreground color.
2014-10-08 11:36:33 +02:00
Wim Taymans
2977ef5281
videotestsrc: storel is better then copyl
...
It is better to use storel to splat the variable into the destination.
ORC doesn't know when a variable is last written to so it can't yet optimize
away the copy operation.
2014-09-26 16:44:09 +02:00
Sebastian Dröge
68f5350c66
Release 1.3.1
2014-05-03 17:50:10 +02:00
Luis de Bethencourt
954db90918
videotestsrc: fix undefined behaviour of left-shift
...
With a small type for the color values being left-shifted, the result is
undefined and it could potentially overflow.
https://bugzilla.gnome.org/show_bug.cgi?id=729195
2014-04-29 10:59:32 -04:00
Vincent Penquerc'h
ba8220a9fd
videotestsrc: bail out on unsupported caps
...
This avoids using uninitialized data (and properly rejects caps).
Coverity 1139898
2014-04-10 15:51:05 +01:00
Julien Isorce
c9b493b853
videotestsrc: ensure having caps when setting the buffer pool config
...
It happens if downstream does not propose a buffer pool.
GST_DEBUG=2 gst-launch-1.0 videotestsrc ! fakesink
https://bugzilla.gnome.org/show_bug.cgi?id=723271
2014-01-31 14:09:03 +00:00
Vincent Penquerc'h
0d66d05c98
videotestsrc: fix unit test breaking on duration query
...
The new switch caused breaks to not break of the main switch
anymore, causing fall through.
2014-01-10 14:24:12 +00:00
Vincent Penquerc'h
1185fbd29a
videotestsrc: do not set TIME duration when asked for another format
...
This fixes asserts in pipelines such as:
gst-launch-1.0 videotestsrc num-buffers=1000 ! x264enc ! h264parse ! \
matroskamux name=mux ! filesink location=test.mkv
2014-01-10 09:56:34 +00:00
Sebastian Dröge
eff7866dd0
videotestsrc: Always set pixel-aspect-ratio and interlace-mode in the fixed caps
...
Otherwise our caps will not be compatible with elements that require a
1/1 pixel-aspect-ratio or progressive video.
https://bugzilla.gnome.org/show_bug.cgi?id=721103
2013-12-30 19:48:29 +01:00