Skip to content

Commit

Permalink
Update wrapped libraries to latest versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWey committed Mar 29, 2022
1 parent ffbc1c2 commit 43060ab
Show file tree
Hide file tree
Showing 827 changed files with 35,178 additions and 11,809 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -97,14 +97,14 @@ Library | Version
--- | ---
Gtk+ | 3.24
Gdk | 3.24
Glib | 2.64
GObject | 2.64
Gio | 2.64
Pango | 1.43
Atk | 2.34
Gdk-pixbuf | 2.38
Glib | 2.72
GObject | 2.72
Gio | 2.72
Pango | 1.50
Atk | 2.38
Gdk-pixbuf | 2.42
Cairo | 1.12.2
LibRsvg | 2.44
GtksourceView | 4.2
GStreamer | 1.16
Vte3 | 0.56
LibRsvg | 2.54
GtksourceView | 4.8
GStreamer | 1.20
Vte3 | 0.68
177 changes: 161 additions & 16 deletions generated/gstreamer/gst/app/AppSink.d
Expand Up @@ -30,6 +30,7 @@ private import gst.app.c.functions;
public import gst.app.c.types;
private import gst.base.BaseSink;
private import gstreamer.Caps;
private import gstreamer.MiniObject;
private import gstreamer.Sample;
private import gstreamer.URIHandlerIF;
private import gstreamer.URIHandlerT;
Expand Down Expand Up @@ -131,14 +132,14 @@ public class AppSink : BaseSink, URIHandlerIF
*/
public Caps getCaps()
{
auto p = gst_app_sink_get_caps(gstAppSink);
auto __p = gst_app_sink_get_caps(gstAppSink);

if(p is null)
if(__p is null)
{
return null;
}

return ObjectG.getDObject!(Caps)(cast(GstCaps*) p, true);
return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true);
}

/**
Expand All @@ -156,7 +157,7 @@ public class AppSink : BaseSink, URIHandlerIF
/**
* Check if appsink will emit the "new-preroll" and "new-sample" signals.
*
* Returns: %TRUE if @appsink is emiting the "new-preroll" and "new-sample"
* Returns: %TRUE if @appsink is emitting the "new-preroll" and "new-sample"
* signals.
*/
public bool getEmitSignals()
Expand Down Expand Up @@ -200,6 +201,44 @@ public class AppSink : BaseSink, URIHandlerIF
return gst_app_sink_is_eos(gstAppSink) != 0;
}

/**
* This function blocks until a sample or an event becomes available or the appsink
* element is set to the READY/NULL state.
*
* This function will only return samples when the appsink is in the PLAYING
* state. All rendered buffers and events will be put in a queue so that the application
* can pull them at its own rate. Note that when the application does not
* pull samples fast enough, the queued buffers could consume a lot of memory,
* especially when dealing with raw video frames.
* Events can be pulled when the appsink is in the READY, PAUSED or PLAYING state.
*
* This function will only pull serialized events, excluding
* the EOS event for which this functions returns
* %NULL. Use gst_app_sink_is_eos() to check for the EOS condition.
*
* This method is a variant of gst_app_sink_pull_sample() that can be used
* to handle incoming events events as well as samples.
*
* Note that future releases may extend this API to return other object types
* so make sure that your code is checking for the actual type it is handling.
*
* Returns: a #GstSample, or a #GstEvent or NULL when the appsink is stopped or EOS.
* Call gst_mini_object_unref() after usage.
*
* Since: 1.20
*/
public MiniObject pullObject()
{
auto __p = gst_app_sink_pull_object(gstAppSink);

if(__p is null)
{
return null;
}

return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p, true);
}

/**
* Get the last preroll sample in @appsink. This was the sample that caused the
* appsink to preroll in the PAUSED state.
Expand All @@ -225,14 +264,14 @@ public class AppSink : BaseSink, URIHandlerIF
*/
public Sample pullPreroll()
{
auto p = gst_app_sink_pull_preroll(gstAppSink);
auto __p = gst_app_sink_pull_preroll(gstAppSink);

if(p is null)
if(__p is null)
{
return null;
}

return ObjectG.getDObject!(Sample)(cast(GstSample*) p, true);
return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true);
}

/**
Expand All @@ -253,14 +292,14 @@ public class AppSink : BaseSink, URIHandlerIF
*/
public Sample pullSample()
{
auto p = gst_app_sink_pull_sample(gstAppSink);
auto __p = gst_app_sink_pull_sample(gstAppSink);

if(p is null)
if(__p is null)
{
return null;
}

return ObjectG.getDObject!(Sample)(cast(GstSample*) p, true);
return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true);
}

/**
Expand All @@ -287,6 +326,9 @@ public class AppSink : BaseSink, URIHandlerIF
* If callbacks are installed, no signals will be emitted for performance
* reasons.
*
* Before 1.16.3 it was not possible to change the callbacks in a thread-safe
* way.
*
* Params:
* callbacks = the callbacks
* userData = a user_data argument for the callbacks
Expand Down Expand Up @@ -360,6 +402,47 @@ public class AppSink : BaseSink, URIHandlerIF
gst_app_sink_set_wait_on_eos(gstAppSink, wait);
}

/**
* This function blocks until a sample or an event or EOS becomes available or the appsink
* element is set to the READY/NULL state or the timeout expires.
*
* This function will only return samples when the appsink is in the PLAYING
* state. All rendered buffers and events will be put in a queue so that the application
* can pull them at its own rate. Note that when the application does not
* pull samples fast enough, the queued buffers could consume a lot of memory,
* especially when dealing with raw video frames.
* Events can be pulled when the appsink is in the READY, PAUSED or PLAYING state.
*
* This function will only pull serialized events, excluding
* the EOS event for which this functions returns
* %NULL. Use gst_app_sink_is_eos() to check for the EOS condition.
*
* This method is a variant of gst_app_sink_try_pull_sample() that can be used
* to handle incoming events events as well as samples.
*
* Note that future releases may extend this API to return other object types
* so make sure that your code is checking for the actual type it is handling.
*
* Params:
* timeout = the maximum amount of time to wait for a sample
*
* Returns: a #GstSample, or #GstEvent or NULL when the appsink is stopped or EOS or the timeout expires.
* Call gst_mini_object_unref() after usage.
*
* Since: 1.20
*/
public MiniObject tryPullObject(GstClockTime timeout)
{
auto __p = gst_app_sink_try_pull_object(gstAppSink, timeout);

if(__p is null)
{
return null;
}

return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p, true);
}

/**
* Get the last preroll sample in @appsink. This was the sample that caused the
* appsink to preroll in the PAUSED state.
Expand Down Expand Up @@ -391,14 +474,14 @@ public class AppSink : BaseSink, URIHandlerIF
*/
public Sample tryPullPreroll(GstClockTime timeout)
{
auto p = gst_app_sink_try_pull_preroll(gstAppSink, timeout);
auto __p = gst_app_sink_try_pull_preroll(gstAppSink, timeout);

if(p is null)
if(__p is null)
{
return null;
}

return ObjectG.getDObject!(Sample)(cast(GstSample*) p, true);
return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true);
}

/**
Expand All @@ -425,14 +508,14 @@ public class AppSink : BaseSink, URIHandlerIF
*/
public Sample tryPullSample(GstClockTime timeout)
{
auto p = gst_app_sink_try_pull_sample(gstAppSink, timeout);
auto __p = gst_app_sink_try_pull_sample(gstAppSink, timeout);

if(p is null)
if(__p is null)
{
return null;
}

return ObjectG.getDObject!(Sample)(cast(GstSample*) p, true);
return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true);
}

/**
Expand Down Expand Up @@ -480,6 +563,32 @@ public class AppSink : BaseSink, URIHandlerIF
return Signals.connect(this, "new-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}

/**
* Signal that a new downstream serialized event is available.
*
* This signal is emitted from the streaming thread and only when the
* "emit-signals" property is %TRUE.
*
* The new event can be retrieved with the "try-pull-object" action
* signal or gst_app_sink_pull_object() either from this signal callback
* or from any other thread.
*
* EOS will not be notified using this signal, use #GstAppSink::eos instead.
* EOS cannot be pulled either, use gst_app_sink_is_eos() to check for it.
*
* Note that this signal is only emitted when the "emit-signals" property is
* set to %TRUE, which it is not by default for performance reasons.
*
* The callback should return %TRUE if the event has been handled, which will
* skip basesink handling of the event, %FALSE otherwise.
*
* Since: 1.20
*/
gulong addOnNewSerialized(bool delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
return Signals.connect(this, "new-serialized-event", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}

/**
* Get the last preroll sample in @appsink. This was the sample that caused the
* appsink to preroll in the PAUSED state.
Expand Down Expand Up @@ -530,6 +639,42 @@ public class AppSink : BaseSink, URIHandlerIF
return Signals.connect(this, "pull-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}

/**
* This function blocks until a sample or an event becomes available or the appsink
* element is set to the READY/NULL state or the timeout expires.
*
* This function will only return samples when the appsink is in the PLAYING
* state. All rendered samples and events will be put in a queue so that the application
* can pull them at its own rate.
* Events can be pulled when the appsink is in the READY, PAUSED or PLAYING state.
*
* Note that when the application does not pull samples fast enough, the
* queued samples could consume a lot of memory, especially when dealing with
* raw video frames. It's possible to control the behaviour of the queue with
* the "drop" and "max-buffers" properties.
*
* This function will only pull serialized events, excluding
* the EOS event for which this functions returns
* %NULL. Use gst_app_sink_is_eos() to check for the EOS condition.
*
* This signal is a variant of #GstAppSink::try-pull-sample: that can be used
* to handle incoming events as well as samples.
*
* Note that future releases may extend this API to return other object types
* so make sure that your code is checking for the actual type it is handling.
*
* Params:
* timeout = the maximum amount of time to wait for a sample
*
* Returns: a #GstSample or a #GstEvent or NULL when the appsink is stopped or EOS or the timeout expires.
*
* Since: 1.20
*/
gulong addOnTryPullObject(MiniObject delegate(ulong, AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
return Signals.connect(this, "try-pull-object", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}

/**
* Get the last preroll sample in @appsink. This was the sample that caused the
* appsink to preroll in the PAUSED state.
Expand Down

0 comments on commit 43060ab

Please sign in to comment.