as Bitmap
Converts a YUV 420 to ByteBuffer if possible.
Return
null if conversion fails.
Parameters
format
Image format, this should be an EImagePixelFormat as int
buffer
The buffer that keeps the image.
width
The width of the image.
height
The height of the image.
See also
Converts a YUV 420 to ByteBuffer if possible.
Return
null if conversion fails.
Parameters
format
Image format
buffer
The buffer that keeps the image.
width
The width of the image.
height
The height of the image.
See also
Creates an android.graphics.Bitmap based on provided ByteArray that contains image.
Parameters
encoding
Encoding of the image.
img
Image data as ByteBuffer.
width
Image width in px.
height
Image height in px.
Creates an android.graphics.Bitmap based on provided ByteArray that contains image.
Parameters
encoding
Encoding of the image.
buffer
Image data as ByteArray.
width
Image width in px.
height
Image height in px.