codecs: h264decoder: Port from GList to GArray
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 15 May 2020 18:56:27 +0000 (14:56 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Tue, 19 May 2020 16:57:08 +0000 (16:57 +0000)
commit7e63d1f5ad8f6e486b565c73ef352f2fe8c63135
tree7843c2854abad1ab132a386e273f99cd17fef2d6
parentf8736626a99bdcb6e9490487dca133236d5aecad
codecs: h264decoder: Port from GList to GArray

Using glist requires a lot of small allocation at runtime and also
it comes with a slow sort algorithm. As we play with that for very
frame and slices, use GArray instead. Note that we cache some arrays
in the instance as there is no support for stack allocated arrays
in GArray.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1238>
gst-libs/gst/codecs/gsth264decoder.c
gst-libs/gst/codecs/gsth264picture.c
gst-libs/gst/codecs/gsth264picture.h