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

Commit 59262f93 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Update decodeImage to account for alignment

Bug: 147749998
Test: I902de3410c45a21cf27b48a02cdc5d514b7ada60

Document that the stride must be pixel-aligned.

Change-Id: Ifbd667298f542f249092ae8eca744b4ed65afaee
parent 4274794a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -337,7 +337,8 @@ size_t AImageDecoder_getMinimumStride(AImageDecoder*) __INTRODUCED_IN(30);
 *               {@link AImageDecoder_getMinimumStride}.
 * @param size Size of the pixel buffer in bytes. Must be at least
 *             stride * (height - 1) +
 *             {@link AImageDecoder_getMinimumStride}.
 *             {@link AImageDecoder_getMinimumStride}. Must also be a multiple
 *             of the bytes per pixel of the {@link AndroidBitmapFormat}.
 * @return {@link ANDROID_IMAGE_DECODER_SUCCESS} on success, or an error code
 *         from the same enum describing the failure.
 */