Commit c5a2c8c4 authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Commit Bot

Change AVIF animated images to the .avif extension

The image/avif-sequence MIME type and the associated file extension
"avifs" have been removed from the AVIF specification. See
https://github.com/AOMediaCodec/av1-avif/issues/59
https://github.com/AOMediaCodec/av1-avif/pull/86

Add "-animated-" to the filenames so it's clear they are animated images.

Change-Id: Ifd46d9c40430a5a60ada28fdede0cb232f56f75f
Bug: 1147501
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528169
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825937}
parent 3dbf03c3
......@@ -628,29 +628,33 @@ void TestYUVRed(const char* file_name,
TEST(AnimatedAVIFTests, ValidImages) {
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-8bpc.avifs", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-8bpc-with-alpha.avifs", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-10bpc.avifs", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-10bpc-with-alpha.avifs", 5u,
"/images/resources/avif/star-animated-8bpc.avif", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(
&CreateAVIFDecoder,
"/images/resources/avif/star-animated-8bpc-with-alpha.avif", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-12bpc.avifs", 5u,
"/images/resources/avif/star-animated-10bpc.avif", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(
&CreateAVIFDecoder,
"/images/resources/avif/star-animated-10bpc-with-alpha.avif", 5u,
kAnimationLoopInfinite);
TestByteByByteDecode(&CreateAVIFDecoder,
"/images/resources/avif/star-12bpc-with-alpha.avifs", 5u,
"/images/resources/avif/star-animated-12bpc.avif", 5u,
kAnimationLoopInfinite);
// TODO(ryoh): Add avifs with EditListBox.
TestByteByByteDecode(
&CreateAVIFDecoder,
"/images/resources/avif/star-animated-12bpc-with-alpha.avif", 5u,
kAnimationLoopInfinite);
// TODO(ryoh): Add animated avif files with EditListBox.
}
TEST(AnimatedAVIFTests, HasMultipleSubImages) {
std::unique_ptr<ImageDecoder> decoder = CreateAVIFDecoder();
decoder->SetData(ReadFile("/images/resources/avif/star-8bpc.avifs"), true);
decoder->SetData(ReadFile("/images/resources/avif/star-animated-8bpc.avif"),
true);
EXPECT_TRUE(decoder->ImageHasBothStillAndAnimatedSubImages());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment