Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b123243404df9c06163c76ca2746d74e5b1d08bc
      
https://github.com/WebKit/WebKit/commit/b123243404df9c06163c76ca2746d74e5b1d08bc
  Author: Youenn Fablet <[email protected]>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/MediaReorderQueue.h
    M Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTB.h
    M Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTB.mm
    M Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTBAV1.mm
    M Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTBVP9.mm

  Log Message:
  -----------
  WebRTCVideoDecoderVTB should support decoded frame reordering for H264 and 
H265
rdar://173915678
https://bugs.webkit.org/show_bug.cgi?id=311324

Reviewed by Eric Carlson.

We introduce WebRTCVideoDecoderVTBQueue that implements frames reordering based 
on timestamps.
The reorderSize should be given at the time the format is given.

WebRTCVideoDecoderVTB::m_queue is manipulated in the thread the API is called.
A ref to m_queue is taken in the VTB callback.
When the callback is called, frames will be added/sorted by the queue.

In case of flush, the queue is cleared after having cleared the VTB callback.
This queue will be used by H264/H265 decoders when implemented.
For existing decoders (AV1 and VP9), this is a no-op as reordering size is 
always 0.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to