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
This commit is contained in:
Shuzhen Wang
2021-02-09 15:52:49 -08:00
parent 0da9a43002
commit 7e4d0b9473

View File

@@ -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