video: Sort video formats correctly
authorSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jun 2021 10:40:33 +0000 (13:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jun 2021 11:00:54 +0000 (14:00 +0300)
commitc18dd84f796983dd1cebc1e05eaf6edcc8ee78e3
treee402b3e717fe5fbf3d45926a667026fb758365da
parent3bbcfe9c23e7f4c80a26ef38564e88ed99733d75
video: Sort video formats correctly

AV12 should be right after A420 because it is the same format with just
one plane less, instead of being next to I420/NV12 which don't have an
alpha channel.

RGBP should be before GBR because it's the same format except for the
more canonical component order.

See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/790
which actually checks on the CI if the algorithm defined in
video-format.h is implemented correctly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1189>
docs/plugins/gst_plugins_cache.json
gst-libs/gst/video/video-format.h