video-color: Add primaries and colorimetry compare functions
authorSeungha Yang <seungha@centricular.com>
Sat, 16 Jul 2022 14:36:22 +0000 (23:36 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Jul 2022 08:56:45 +0000 (08:56 +0000)
commit2ed64cad6a0b9e1adfc1c6c47fcf94305d0cb519
treefbae13222ef22790f750f66d1e7395851f006fe2
parent1728f8b72a1f8ceea0a71a50c38b52256085153f
video-color: Add primaries and colorimetry compare functions

SMPTE 170M and 240M use the same RGB and white point coordinates
and therefore both primaries can be considered functionally
equivalent.
Also, some transfer functions have different name but equal
gamma functions. Adding another colorimetry compare function
to deal with thoes cases at once

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2765>
subprojects/gst-plugins-base/gst-libs/gst/video/video-color.c
subprojects/gst-plugins-base/gst-libs/gst/video/video-color.h
subprojects/gst-plugins-base/tests/check/libs/video.c