gstreamer/gst-libs/gst/codecs
Seungha Yang 82fb55bdff codecs: h264decoder: Make GstVideoCodecFrame hold the last reference of the buffer
... when gst_video_decoder_finish_frame() is called.

Some subclasses attach GstBuffer to GstH264Picture as an user data
which will increase reference count of the buffer. It would result
to buffer copy per every frame.

Background here is, GstVideoDecoder wants writable output buffer for
GstMeta handling, and if the output buffer is not writable
(i.e., reference count is not one), the buffer will be copied.
Even if underlying GstMemory wouldn't be copied, buffer copy operation
will introduce extra memory allocation overhead which is not optimal.

By this modification, subclass might be able to receive the last
reference to GstH264Picture

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1449>
2020-07-21 17:18:42 +09:00
..
codecs-prelude.h Move CODEC base classes into it's own library 2020-03-05 03:06:16 +00:00
gsth264decoder.c codecs: h264decoder: Make GstVideoCodecFrame hold the last reference of the buffer 2020-07-21 17:18:42 +09:00
gsth264decoder.h codecs: h264decoder: Pass GstVideoCodecFrame to output_picture() 2020-07-21 17:18:42 +09:00
gsth264picture.c codecs: h264picture: use g_array_remove_index_fast() 2020-06-29 12:36:38 +00:00
gsth264picture.h codecs: h264decoder: Port from GList to GArray 2020-05-19 16:57:08 +00:00
gsth265decoder.c codecs: set sys frame num before new_picture() 2020-04-23 19:54:17 +00:00
gsth265decoder.h codecs: Reorganize the order of vfunc 2020-04-22 23:20:44 +00:00
gsth265picture.c codecs: h265picture: Don't leak pic_list GArray 2020-06-11 23:42:47 +00:00
gsth265picture.h h264picture: Add system_frame_num 2020-03-05 03:06:16 +00:00
gstvp8decoder.c codecs: Add new baseclass for VP8 decoder 2020-04-22 23:20:44 +00:00
gstvp8decoder.h codecs: Add new baseclass for VP8 decoder 2020-04-22 23:20:44 +00:00
gstvp8picture.c codecs: Add new baseclass for VP8 decoder 2020-04-22 23:20:44 +00:00
gstvp8picture.h codecs: Add new baseclass for VP8 decoder 2020-04-22 23:20:44 +00:00
gstvp9decoder.c codecs: Add minimal state validation 2020-04-09 19:33:56 +00:00
gstvp9decoder.h vp9decoder: Fix small typo 2020-04-22 23:20:44 +00:00
gstvp9picture.c codecs: fix gir generation 2020-04-26 19:26:32 +02:00
gstvp9picture.h h264picture: Add system_frame_num 2020-03-05 03:06:16 +00:00
meson.build codecs: Add new baseclass for VP8 decoder 2020-04-22 23:20:44 +00:00