Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.

Public methods

getBuffer

In particular, the buffer returned will always have
isDirect return true, so
the underlying data could be mapped as a pointer in JNI without doing
any copies with GetDirectBufferAddress.

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.

getPixelStride

This is the distance between two consecutive pixel values in a row
of pixels. It may be larger than the size of a single pixel to
account for interleaved image data or padded formats.
Note that pixel stride is undefined for some formats such as
RAW_PRIVATE,
and calling getPixelStride on images of these formats will
cause an UnsupportedOperationException being thrown.
For formats where pixel stride is well defined, the pixel stride
is always greater than 0.

Returns

int

getRowStride

This is the distance between the start of two consecutive rows of
pixels in the image. Note that row stried is undefined for some formats
such as
RAW_PRIVATE,
and calling getRowStride on images of these formats will
cause an UnsupportedOperationException being thrown.
For formats where row stride is well defined, the row stride
is always greater than 0.