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

Commit ec2cbe34 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

AImageDecoder: Hide support for animated HEIF

Bug: 160984428
Bug: 170672785
Test: none

The system currently requires decoding the pixels of the frame of an
HEIF/AVIF animated image before the actual duration of that frame can
be retrieved. Rather than handling this (likely temporary) limitation by
- documenting it
- providing extra APIs
- limiting other formats in the same way
remove documentation specifying that animated HEIF is supported.
Developers are likely to be more interested in the other formats (GIF,
WebP) anyway. If they do attempt to animate an HEIF file, they will
still see the default duration specified for the sequence.

Change-Id: I5b97aeddee1311b694d73ac67b6157032d9ad745
parent b2ee00d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -583,7 +583,7 @@ size_t AImageDecoder_getMinimumStride(AImageDecoder* _Nonnull decoder) __INTRODU
 * Available since API level 30.
 * Available since API level 30.
 *
 *
 * Starting in API level 31, it can be used to decode all of the frames of an
 * Starting in API level 31, it can be used to decode all of the frames of an
 * animated image (i.e. GIF, WebP, HEIF) using new APIs. Internally,
 * animated image (i.e. GIF, WebP) using new APIs. Internally,
 * AImageDecoder keeps track of its "current frame" - that is, the frame that
 * AImageDecoder keeps track of its "current frame" - that is, the frame that
 * will be decoded by a call to AImageDecoder_decodeImage. At creation time, the
 * will be decoded by a call to AImageDecoder_decodeImage. At creation time, the
 * current frame is always the first frame, and multiple calls to this method
 * current frame is always the first frame, and multiple calls to this method