Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a46b9ed authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian
Browse files

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
parent dae90d76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: