Add AVIF mime type to BitmapFactory
Associate SkEncodedImageFormat::kAVIF to "image/avif" mime type.
Avif mime type can be found in the specification here:
https://aomediacodec.github.io/av1-avif/#mime-registration
Test: Media cts tests still pass.
Test: Invoking ImageDecoder and BitmapFactory with an AVIF image
returns the correct mime type.
Bug: 141654151
Change-Id: I0b67154a9031e1444912b59757e89cf625ee1280
diff --git a/libs/hwui/jni/BitmapFactory.cpp b/libs/hwui/jni/BitmapFactory.cpp
index 7d2583a..52522a3 100644
--- a/libs/hwui/jni/BitmapFactory.cpp
+++ b/libs/hwui/jni/BitmapFactory.cpp
@@ -67,6 +67,8 @@
return "image/webp";
case SkEncodedImageFormat::kHEIF:
return "image/heif";
+ case SkEncodedImageFormat::kAVIF:
+ return "image/avif";
case SkEncodedImageFormat::kWBMP:
return "image/vnd.wap.wbmp";
case SkEncodedImageFormat::kDNG: