applemedia: Disable 64RGBALE support on older macOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 31 Jan 2022 21:30:41 +0000 (03:00 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Feb 2022 16:57:04 +0000 (16:57 +0000)
commitbb32532f6077f8609145f21d156e69b1d43129a6
tree079312ed33efce7c81a277f9fcb12e518798ccaf
parent6ae4497c07b399e8bbc80ab7a3b8d2ccf6dce1a7
applemedia: Disable 64RGBALE support on older macOS

The kCVPixelFormatType_64RGBALE enum is only available on macOS Big
Sur (11.3) and newer. We also cannot use that while configuring the
encoder or decoder on older macOS.

Define the symbol unconditionally, but only use it when we're running
on Big Sur with __builtin_available().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1613>
subprojects/gst-plugins-bad/sys/applemedia/vtdec.c
subprojects/gst-plugins-bad/sys/applemedia/vtenc.c
subprojects/gst-plugins-bad/sys/applemedia/vtutil.c
subprojects/gst-plugins-bad/sys/applemedia/vtutil.h