Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5e2ef4f0b30f3e1c697526da3ed43425770ea95a
https://github.com/WebKit/WebKit/commit/5e2ef4f0b30f3e1c697526da3ed43425770ea95a
Author: Jean-Yves Avenard <[email protected]>
Date: 2026-08-30 (Sun, 30 Aug 2026)
Changed paths:
M Source/WebCore/platform/TrackInfo.h
M
Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.cpp
M Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.h
M Source/WebCore/platform/graphics/cocoa/CMUtilities.mm
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
M Tools/TestWebKitAPI/Tests/WebCore/cocoa/CoreMediaUtilities.mm
Log Message:
-----------
VideoInfo::fieldCount should be an enum.
https://bugs.webkit.org/show_bug.cgi?id=322886
rdar://186133638
Reviewed by Eric Carlson.
In 320050@main, VideoInfo::fieldCount was made to mimic
kCVImageBufferFieldCountKey.
However, this value can only ever have a value of 1 or 2 or not be set.
We make it an enum which ease the IPC serialization value checks.
Test: Tools/TestWebKitAPI/Tests/WebCore/cocoa/CoreMediaUtilities.mm
* Source/WebCore/platform/TrackInfo.h:
(WebCore::VideoInfo::fieldCount const):
* Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.cpp:
(WebCore::fieldCountFromFormatDescription):
* Source/WebCore/platform/graphics/avfoundation/FormatDescriptionUtilities.h:
* Source/WebCore/platform/graphics/cocoa/CMUtilities.mm:
(WebCore::createFormatDescriptionFromTrackInfo):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Tools/TestWebKitAPI/Tests/WebCore/cocoa/CoreMediaUtilities.mm:
(TestWebKitAPI::TEST(CMUtilities, FieldCountAndDetailRoundTrip)):
Canonical link: https://commits.webkit.org/320114@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications