[webkit-changes] [WebKit/WebKit] 082279: [Cocoa] Some AVIF images can't be rendered because...
Said Abou-Hallawa
noreply at github.com
Sat Sep 17 13:02:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 08227904ddb6fdd6e7e85dd22928147d59b22879
https://github.com/WebKit/WebKit/commit/08227904ddb6fdd6e7e85dd22928147d59b22879
Author: Said Abou-Hallawa <said at apple.com>
Date: 2022-09-17 (Sat, 17 Sep 2022)
Changed paths:
M LayoutTests/TestExpectations
A LayoutTests/fast/images/avif-heif-container-as-image-expected.html
A LayoutTests/fast/images/avif-heif-container-as-image.html
A LayoutTests/fast/images/resources/green-400x400.avif
M LayoutTests/platform/mac-wk2/TestExpectations
M LayoutTests/platform/mac/TestExpectations
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.h
Log Message:
-----------
[Cocoa] Some AVIF images can't be rendered because their containers formats are HEIF
https://bugs.webkit.org/show_bug.cgi?id=244103
Reviewed by Myles C. Maxfield.
If the system frameworks say the image type is "public.heif", we can distingush
the case of a HEIF image from the case of an AVIF image inside a HEIF conatinver
by checking the "ftyp" box. An image is an AVIF if "avif" or "avis" is present
in the major_brand or in one of the compatible_brands of the "ftyp" box.
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::ImageDecoderCG::decodeUTI const):
(WebCore::ImageDecoderCG::setData):
(WebCore::ImageDecoderCG::uti const): Deleted.
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.h:
Canonical link: https://commits.webkit.org/254591@main
More information about the webkit-changes
mailing list