Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
* Don't repeat what annotations are stating with respect to ownership
transfer, nullability
* Misc cleanup / typo fixes / addition of links
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/752>
|
|
Provide non-inline version of refcounting APIs so that it can be
consumed by bindings
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/-/issues/46
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/728>
|
|
Since we started depending on GLib 2.44, we can be sure this macro is
defined (it will be a no-op on compilers that don't support it). For
plugins we should just start using `G_DECLARE_FINAL_TYPE` which means
we no longer need the macro there, but for most types in core we don't
want to break ABI, which means it's better to just keep it like it is
(and use the `#ifdef` instead).
|
|
* Making sure that `static inline` function are in the GIR (by first
defining them, and make sure to mark as skiped)
* Do not try to link to unexisting symbols
* Also generate GIR information about gst_tracers
|
|
|
|
This makes its API consistent with the other GstMiniObject subclasses.
|
|
Basically, you can use this instead of using gst_buffer_list_unref
(which needs to be preceded by a NULL-check).
Also fixes #275
|
|
We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
|
|
Returns size in bytes.
|
|
Ensures buffer is writable. Useful if we want to change
metadata on it such as timestamps.
https://bugzilla.gnome.org/show_bug.cgi?id=750241
|
|
One omission: gst_allocator_sysmem_get_type() was
exported but never in any public header file.
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=754464
|
|
gtk-doc can handle static inline functions just fine these days,
there's no need for this stuff any more.
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=751420
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=730957
|
|
This should help improve documentation generated for
languages other than C.
https://bugzilla.gnome.org/show_bug.cgi?id=730961
|
|
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=720029
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=687520
|
|
Make the idx argument of _insert() a gint because we allow -1 as a value.
Improve annotation.
|
|
Make the foreach function return FALSE when one of the function calls returned
FALSE.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=666219
|
|
Conflicts:
gst/gstbuffer.h
gst/gstbufferlist.h
gst/gstcaps.h
gst/gstdatetime.h
gst/gstelementfactory.h
gst/gstevent.h
gst/gstghostpad.h
gst/gstindexfactory.h
gst/gstiterator.h
gst/gstmessage.h
gst/gstminiobject.h
gst/gstpipeline.h
gst/gstquery.h
gst/gstsegment.h
gst/gststructure.h
gst/gsttaglist.h
gst/gsturi.h
gst/gstvalue.h
libs/gst/base/gstbitreader.h
libs/gst/base/gstbytereader.h
libs/gst/base/gstbytewriter.h
Note: can't use G_GNUC_MALLOC with GstCaps return
values in 0.11 because of the EMPTY+ANY singletons.
|
|
Maybe gcc can do something clever with that, or at least
warn us if we don't save the return value somewhere.
|
|
gst_buffer_list_len() -> gst_buffer_list_length()
gst_buffer_list_sized_new() -> gst_buffer_list_new_sized()
|
|
Remove gst_mini_object_register() and add a GST_DEFINE_MINI_OBJECT macro to
define a _get_type() function for the boxed miniobject.
Remove a bunch of custom _get_type() functions and replace them with the
miniobject macro.
Rename some _init method to _priv_*_initialize() like the rest of them.
Inspired by patch from Johan Dahlin and see bug #657603
|
|
|
|
We now have multiple memory blocks as part of the buffers and we can therefore
reduce the bufferlist to a simple array of buffers.
|
|
|
|
|
|
More work on making miniobject a simple allocated struct.
|
|
Many of these are superfluous, added for clarity.
|
|
Add a function to add a list of buffers to the bufferlist.
|
|
Make code including GStreamer headers compile with -Wcast-qual by
maintaining const-ness when casting. Also fix function signature of
gst_byte_writer_set_pos(): the byte writer should not be marked as
const.
https://bugzilla.gnome.org/show_bug.cgi?id=627910
|
|
|
|
|
|
|
|
Add new method to iterate a bufferlist without having to allocate an iterator.
Add convenience method for getting an item from the list based on the group and
index.
Remove redundant _do_data callback and method.
Update unit-tests and add some more for the new methods.
|
|
|
|
Buffer lists are a means to manage disjoint buffers as one buffer. It's also
possible to put many of those buffers into a list.
The idea is that when support is added to various elements, we will be able to
more efficiently slice and dice buffers, reduce the amount of memcpy and also
reduce data passing overhead.
The implementation is kept simple on purpose, reusing all of the memory
management features we have for miniobjects and buffers.
Access to the bufferlist object is done with an iterator, which allows for
efficient iteration and modification of the list.
See #572285
|