haikuwebkit/Source/ThirdParty/libwebrtc/cmake
Philippe Normand 0a4edf6dcd [WebRTC][GStreamer] Build and use the openh264 based encoder if present on the system
https://bugs.webkit.org/show_bug.cgi?id=202538
<rdar://problem/76047172>

Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-15
Reviewed by Xabier Rodriguez-Calvar.

.:

* Source/CMakeLists.txt:
* Source/cmake/GStreamerChecks.cmake:

Source/ThirdParty/libwebrtc:

In WPE/GTK we would like to have the libwebrtc openh264 encoder enabled if libopenh264 is
present on the host (eg not vendored).

* CMakeLists.txt:
* LibWebRTCWebKitMacros.h.in: Added.
* Source/webrtc/modules/video_coding/codecs/h264/h264.cc:
* Source/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc:
* Source/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.h:
* cmake/FindOpenh264.cmake: Added.

Source/WebCore:

Enable the openh264 encoder if it is available, it would be preferred over existing
GStreamer H.264 encoders in such case.

* platform/mediastream/libwebrtc/GStreamerVideoCommon.cpp:
(WebCore::supportedH264Formats):
* platform/mediastream/libwebrtc/GStreamerVideoCommon.h:
* platform/mediastream/libwebrtc/GStreamerVideoDecoderFactory.cpp:
* platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:
(WebCore::GStreamerVideoEncoderFactory::CreateVideoEncoder):
(WebCore::GStreamerVideoEncoderFactory::GetSupportedFormats const):

Canonical link: https://commits.webkit.org/236571@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-15 13:02:06 +00:00
..
FindAlsaLib.cmake
FindLibEvent.cmake
FindLibOpus.cmake
FindLibVpx.cmake
FindOpenh264.cmake [WebRTC][GStreamer] Build and use the openh264 based encoder if present on the system 2021-04-15 13:02:06 +00:00