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

Commit 159ab12d authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

AImageDecoder: Recommend only downscaling with setTargetSize

Fixes: 180037959
Test: NA
Change-Id: I19076b4368623806f7a9f6312a780a6d5886e49e
parent 97792f96
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -367,6 +367,10 @@ int AImageDecoder_setDataSpace(AImageDecoder* _Nonnull decoder, int32_t dataspac
 * the first frame (e.g. before calling {@link AImageDecoder_advanceFrame} or
 * after calling {@link AImageDecoder_rewind}).
 *
 * It is strongly recommended to use setTargetSize only for downscaling, as it
 * is often more efficient to scale-up when rendering than up-front due to
 * reduced overall memory.
 *
 * Available since API level 30.
 *
 * @param width Width of the output (prior to cropping).