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

Commit 7e4d0b94 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

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
parent 0da9a430
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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