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
This commit is contained in:
Vignesh Venkatasubramanian
2020-11-05 22:55:43 -08:00
parent dae90d760d
commit 4a46b9edf1

View File

@@ -67,6 +67,8 @@ const char* getMimeType(SkEncodedImageFormat format) {
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: