Update decodeImage to account for alignment
Bug: 147749998
Test: I902de3410c45a21cf27b48a02cdc5d514b7ada60
Document that the stride must be pixel-aligned.
Change-Id: Ifbd667298f542f249092ae8eca744b4ed65afaee
diff --git a/include/android/imagedecoder.h b/include/android/imagedecoder.h
index 469b088..c9a041e 100644
--- a/include/android/imagedecoder.h
+++ b/include/android/imagedecoder.h
@@ -337,7 +337,8 @@
* {@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.
*/