Merge "ImageReader: add support for compatible flexYUV buffers" into lmp-mr1-dev automerge: 8514766 automerge: 2a8dc00

automerge: df876a1

* commit 'df876a110c4b6d55b4a9df57621aa38ff06c6de8':
  ImageReader: add support for compatible flexYUV buffers
This commit is contained in:
Lajos Molnar
2015-01-29 08:06:48 +00:00
committed by android-build-merger
2 changed files with 20 additions and 10 deletions

View File

@@ -214,6 +214,11 @@ public abstract class Image implements AutoCloseable {
* the underlying data could be mapped as a pointer in JNI without doing
* any copies with {@code GetDirectBufferAddress}.</p>
*
* <p>For raw formats, each plane is only guaranteed to contain data
* up to the last pixel in the last row. In other words, the stride
* after the last row may not be mapped into the buffer. This is a
* necessary requirement for any interleaved format.</p>
*
* @return the byte buffer containing the image data for this plane.
*/
public abstract ByteBuffer getBuffer();