Package io.scanbot.sdk.ui.camera.util
Object PreviewImageUtil
-
- All Implemented Interfaces:
public class PreviewImageUtil
Util methods to process camera preview images
-
-
Field Summary
Fields Modifier and Type Field Description public final static PreviewImageUtil
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Bitmap
convertNV21ToBitmap(ByteArray nv21Image, Integer imageWidth, Integer imageHeight, Integer imageOrientation)
Converts the image byte array in NV21 format to Bitmap final static ByteArray
)>convertYUV420toNV21(<Error class: unknown class> image)
Converts the image in YUV_420_888 to NV21 format final static ByteArray
)>convertYUV420toNV21Fast(<Error class: unknown class> image)
Converts the image in YUV_420_888 to NV21 format with shortcut to improve performance -
-
Method Detail
-
convertNV21ToBitmap
final static Bitmap convertNV21ToBitmap(ByteArray nv21Image, Integer imageWidth, Integer imageHeight, Integer imageOrientation)
Converts the image byte array in NV21 format to Bitmap
-
convertYUV420toNV21
final static ByteArray )>convertYUV420toNV21(<Error class: unknown class> image)
Converts the image in YUV_420_888 to NV21 format
-
convertYUV420toNV21Fast
final static ByteArray )>convertYUV420toNV21Fast(<Error class: unknown class> image)
Converts the image in YUV_420_888 to NV21 format with shortcut to improve performance
-
-
-
-