haikuwebkit/LayoutTests/fast/images/animated-avif-expected.html

13 lines
352 B
HTML
Raw Permalink Normal View History

Animated AVIF support https://bugs.webkit.org/show_bug.cgi?id=222804 <rdar://problem/75362181> Reviewed by Philippe Normand. This change implements animation of the avif sequence. The decoding approach is similar to ones for other image formats, i.e., decoding frames in BGRA pixels then bit-copying them into ScalableImageDecoderFrame. The decoded frames are cached for future use. The repetition is missing in this change. It will be addressed in separate patches. The added avif animation test compares the last frame of each avifs and a static avif image. The embeded avifs images are originated from corresponding webp images for animated-webp.html, and encoded with timescale 100 (i.e., the duration of each frame is 0.01s). The total duration and the track duration are same so the added avifs samples are supposed to be played one time. Source/WebCore: Test: fast/images/animated-avif.html * platform/image-decoders/avif/AVIFImageDecoder.cpp: (WebCore::AVIFImageDecoder::repetitionCount const): (WebCore::AVIFImageDecoder::findFirstRequiredFrameToDecode): (WebCore::AVIFImageDecoder::frameBufferAtIndex): (WebCore::AVIFImageDecoder::isComplete): (WebCore::AVIFImageDecoder::tryDecodeSize): (WebCore::AVIFImageDecoder::decode): * platform/image-decoders/avif/AVIFImageDecoder.h: * platform/image-decoders/avif/AVIFImageReader.cpp: (WebCore::AVIFImageReader::decodeFrame): (WebCore::AVIFImageReader::imageCount const): (WebCore::AVIFImageReader::~AVIFImageReader): Deleted. * platform/image-decoders/avif/AVIFImageReader.h: LayoutTests: * TestExpectations: * fast/images/animated-avif-expected.html: Added. * fast/images/animated-avif.html: Added. * fast/images/resources/avifs00-ref.avif: Added. * fast/images/resources/avifs00.avifs: Added. * fast/images/resources/avifs01-ref.avif: Added. * fast/images/resources/avifs01.avifs: Added. * fast/images/resources/avifs02-ref.avif: Added. * fast/images/resources/avifs02.avifs: Added. * platform/gtk/TestExpectations: Canonical link: https://commits.webkit.org/235548@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-03-19 18:02:49 +00:00
<!DOCTYPE html>
<html>
<head>
<title>AVIF animation reftest: when animation ends, compare its last frame against the reference static avif image.</title>
<style>
img { margin: 1px; }
</style>
</head>
<body style="margin: 1px">
<img src=resources/avifs00-ref.avif><img src=resources/avifs01-ref.avif><img src=resources/avifs02-ref.avif>
</body>
</html>