Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 10a8332b70f2bd0d05100a35f4ed4385f25df7aa
      
https://github.com/WebKit/WebKit/commit/10a8332b70f2bd0d05100a35f4ed4385f25df7aa
  Author: Youenn Fablet <[email protected]>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/platform/graphics/AnnexBUtilities.cpp
    A Source/WebCore/platform/graphics/AnnexBUtilities.h
    M Source/WebCore/platform/graphics/H264Utilities.cpp
    M Source/WebCore/platform/graphics/HEVCUtilities.cpp
    M Source/WebCore/platform/graphics/HEVCUtilities.h
    M Source/WebCore/platform/graphics/cocoa/HEVCUtilitiesCocoa.h
    M Source/WebCore/platform/graphics/cocoa/HEVCUtilitiesCocoa.mm

  Log Message:
  -----------
  Move AnnexB utilities to a specific file
rdar://188171472
https://bugs.webkit.org/show_bug.cgi?id=324953

Reviewed by Jean-Yves Avenard.

Given AnnexB is used by H264 and HEVC, we move the utilities to a new file 
AnnexBUtilities.h, which is used by H264/HEVC utilities.
We directly use a Vector<NaluIndex> to cope with the fact that H264 does not a 
vps.
We update the code accordingly.

No change of behavior.

* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/graphics/AnnexBUtilities.cpp: Added.
(WebCore::findNaluIndices):
(WebCore::parseRbsp):
* Source/WebCore/platform/graphics/AnnexBUtilities.h: Added.
(WebCore::findFirstNaluIndexMatching):
* Source/WebCore/platform/graphics/HEVCUtilities.cpp:
(WebCore::findHEVCAnnexBVpsIndex):
(WebCore::findHEVCAnnexBMaxNumReorderPics):
(WebCore::findNaluIndices): Deleted.
(WebCore::parseRbsp): Deleted.
* Source/WebCore/platform/graphics/HEVCUtilities.h:
* Source/WebCore/platform/graphics/cocoa/HEVCUtilitiesCocoa.mm:
(WebCore::hevcAnnexBVpsIsFollowedBySpsAndPps):
(WebCore::createVideoInfoFromHEVCAnnexBStream):
(WebCore::convertHEVCAnnexBToLengthPrefixed):

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



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

Reply via email to