From 7e4d0b947365a235a4f4d8dcce19ff4a667f096e Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Tue, 9 Feb 2021 15:52:49 -0800 Subject: [PATCH] ImageWriter: Fix a minor documentation error queueInputImage doesn't throw IllegalArgumentException if the queued image size is different than the ImageWriter size. The underlying buffer queue supports attaching a buffer of different size. Bug: 156254356 Bug: 149670093 Test: Build Change-Id: I340dd6f923604fb4b0188a319e6f4fd4f8d64c05 --- media/java/android/media/ImageWriter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/media/java/android/media/ImageWriter.java b/media/java/android/media/ImageWriter.java index 92db946ab5bad..a5bf8db162b4b 100644 --- a/media/java/android/media/ImageWriter.java +++ b/media/java/android/media/ImageWriter.java @@ -312,8 +312,7 @@ public class ImageWriter implements AutoCloseable { * (acquired via {@link #dequeueInputImage}). In the former case, the Image * data will be moved to this ImageWriter. Note that the Image properties * (size, format, strides, etc.) must be the same as the properties of the - * images dequeued from this ImageWriter, or this method will throw an - * {@link IllegalArgumentException}. In the latter case, the application has + * images dequeued from this ImageWriter. In the latter case, the application has * filled the input image with data. This method then passes the filled * buffer to the downstream consumer. In both cases, it's up to the caller * to ensure that the Image timestamp (in nanoseconds) is correctly set, as