x264enc: Separate high-10 video formats from 8-bit formats
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Wed, 1 Jul 2020 14:11:09 +0000 (16:11 +0200)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 21 Jul 2020 13:41:52 +0000 (15:41 +0200)
commit05bb87ea0f837942dcd21b861b4c368101346895
treeed31530fa6d69bfc2f01ceaa9c33ff6aa3db3a31
parent09db0d66b7f89a0186ec5263f832e321ac0d517b
x264enc: Separate high-10 video formats from 8-bit formats

If downstream is constrained to an 8-bit profile, caps queries would
still allow I420_10LE as input. If upstream actually sends such a caps
event, downstream would fail to accept the high-10 profile.

The following pipeline now fails earlier, during the negotiation phase
instead of the stream start:

    gst-launch-1.0 videotestsrc ! video/x-raw,format=I420_10LE \
        ! x264enc ! video/x-h264,profile=constrained-baseline \
        ! fakesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/59>
ext/x264/gstx264enc.c