-
public class ImageUtilsUtil methods to process camera preview images.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ImageUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static BitmapconvertNV21ToBitmap(ByteArray nv21Image, Integer imageWidth, Integer imageHeight, Integer imageOrientation)Converts the image byte array in NV21 format to android.graphics.Bitmap. final static ByteArrayconvertYUV420toNV21(Image image)Converts the image in YUV_420_888 to NV21 format. final ByteArrayconvertBitmapToYuv(Bitmap bitmap, Integer requiredWidth, Integer requiredHeight)final Pair<Integer, Integer>getEvenSizes(Bitmap $self)Get 100% guaranteed even sizes of this Bitmap. -
-
Method Detail
-
convertNV21ToBitmap
final static Bitmap convertNV21ToBitmap(ByteArray nv21Image, Integer imageWidth, Integer imageHeight, Integer imageOrientation)
Converts the image byte array in NV21 format to android.graphics.Bitmap.
-
convertYUV420toNV21
final static ByteArray convertYUV420toNV21(Image image)
Converts the image in YUV_420_888 to NV21 format.
-
convertBitmapToYuv
final ByteArray convertBitmapToYuv(Bitmap bitmap, Integer requiredWidth, Integer requiredHeight)
-
-
-
-