[webkit-changes] [WebKit/WebKit] 71c6f8: [GStreamer][WebCodecs] Improve VPx encoding accuracy

Philippe Normand noreply at github.com
Tue Jan 9 03:38:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 71c6f87c37cc6d6d4b06f88d5281c7734712a6ec
      https://github.com/WebKit/WebKit/commit/71c6f87c37cc6d6d4b06f88d5281c7734712a6ec
  Author: Philippe Normand <philn at igalia.com>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/VideoDecoderGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp
    M Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.cpp
    M Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.h
    M Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp
    M Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.h

  Log Message:
  -----------
  [GStreamer][WebCodecs] Improve VPx encoding accuracy
https://bugs.webkit.org/show_bug.cgi?id=266966

Reviewed by Xabier Rodriguez-Calvar.

The codec string passed to the encoder is now parsed and converted to an input/output caps pair to
be used by the internal encoder. VPx encoders are now more accurately handling colorspace
informations. As follow-up, a similar approach can be used for avc and av1 cases.

* Source/WebCore/platform/graphics/gstreamer/VideoDecoderGStreamer.cpp:
(WebCore::GStreamerInternalVideoDecoder::GStreamerInternalVideoDecoder):
(WebCore::GStreamerInternalVideoDecoder::decode):
* Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:
(WebCore::GStreamerInternalVideoEncoder::initialize):
* Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.cpp:
(WebCore::vpxCapsFromCodecString):
(WebCore::GStreamerCodecUtilities::capsFromCodecString):
(WebCore::GStreamerCodecUtilities::parseVP9Profile): Deleted.
* Source/WebCore/platform/gstreamer/GStreamerCodecUtilities.h:
* Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:
(videoEncoderSetEncoder):
(videoEncoderSetFormat):
(webkit_video_encoder_class_init):
* Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.h:
(videoEncoderSetFormat):

Canonical link: https://commits.webkit.org/272806@main




More information about the webkit-changes mailing list