Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 54dd824eccb93445742e5ca875b2ea7ee77987ef
      
https://github.com/WebKit/WebKit/commit/54dd824eccb93445742e5ca875b2ea7ee77987ef
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.h
    M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm
    M Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.h
    M Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm

  Log Message:
  -----------
  Provides hint to the video decoder that it would be OK to use a low-power 
mode that can not decode faster than 1x realtime.
https://bugs.webkit.org/show_bug.cgi?id=294245
rdar://152930386

Reviewed by Youenn Fablet.

If playback rate is between 0.9 and 1.1, set kVTDecodeFrame_1xRealTimePlayback
when decoding the CMSampleBuffer.
We now pass a OptionSet<DecodingFlag> to the WebCoreDecompressionSession to 
allow
more future expandability.

Add macro to only log if the level is set to debug. This avoids unecessarily
building the log string when the result won't end up being used.

No change in JS observable behaviour.

* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm:
(WebCore::VideoMediaSampleRenderer::maybeBecomeReadyForMoreMediaData): Rename 
methods to be consistent with other naming style
(WebCore::VideoMediaSampleRenderer::stopRequestingMediaData): Rename methods to 
be consistent with other naming style
(WebCore::VideoMediaSampleRenderer::decodeNextSampleIfNeeded):
(WebCore::VideoMediaSampleRenderer::initializeDecompressionSession):
(WebCore::VideoMediaSampleRenderer::requestMediaDataWhenReady):
(WebCore::VideoMediaSampleRenderer::resetReadyForMoreMediaData): Rename method 
to be consistent with other naming style
(WebCore::VideoMediaSampleRenderer::resetReadyForMoreSample): Deleted.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to