public class YuvTools
extends java.lang.Object
| Constructor and Description |
|---|
YuvTools() |
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Bitmap |
convertYuvBufferToBitmap(android.content.Context context,
YuvBuffer yuvImage)
Deprecated.
|
static android.graphics.Bitmap |
convertYuvBufferToBitmap(YuvBuffer yuvImage)
Deprecated.
|
static java.nio.ByteBuffer |
convertYuvToRgb(YuvBuffer input,
java.nio.ByteBuffer recycleBuffer)
Deprecated.
|
static com.yoti.mobile.android.core.yuvtools.YuvModel |
generateYUVFormat(byte[] bytes,
int width,
int height,
boolean noModify)
Read a YUV saved picture and create a YotiYUV object where Y is width * height and UV is 0.5
* width * height.
|
static com.yoti.mobile.android.core.yuvtools.YuvModel |
generateYUVFormat(YuvBuffer buffer)
Deprecated.
|
static com.yoti.mobile.android.core.yuvtools.YuvModel |
generateYUVFormat(YuvBuffer buffer,
boolean noModify)
Deprecated.
|
static com.yoti.mobile.android.commons.image.DirectBuffer |
yuvCrop(com.yoti.mobile.android.commons.image.ImageBuffer inputBuffer,
android.graphics.RectF cropRectangle) |
static YuvBuffer |
yuvCrop(YuvBuffer input,
android.graphics.RectF cropRectangle)
Deprecated.
|
static void |
yuvRotate(com.yoti.mobile.android.commons.image.ImageBuffer input,
byte[] output,
int degrees)
Raw rotation method for buffer data.
|
static YuvBuffer |
yuvRotate(YuvBuffer input,
int degrees)
Deprecated.
|
static boolean |
yuvRotate(YuvBuffer input,
YuvBuffer output,
int degrees)
Deprecated.
|
static YuvBuffer |
yuvRotateToUpright(YuvBuffer input)
Deprecated.
|
static boolean |
yuvRotateToUpright(YuvBuffer input,
YuvBuffer output)
Deprecated.
|
@Deprecated public static YuvBuffer yuvRotateToUpright(@NonNull YuvBuffer input)
@Deprecated
public static boolean yuvRotateToUpright(@NonNull
YuvBuffer input,
@NonNull
YuvBuffer output)
@Deprecated public static YuvBuffer yuvRotate(@NonNull YuvBuffer input, int degrees)
@Deprecated
public static boolean yuvRotate(@NonNull
YuvBuffer input,
@NonNull
YuvBuffer output,
int degrees)
yuvRotate(YuvBuffer, int), so applications can reuse buffers rather than allocating each
time. If the provided buffer is not large enough, this will reallocate the data block, but
otherwise no allocations will be made.public static void yuvRotate(@NonNull
com.yoti.mobile.android.commons.image.ImageBuffer input,
@NonNull
byte[] output,
int degrees)
throws YuvException
YuvException@Deprecated public static YuvBuffer yuvCrop(YuvBuffer input, android.graphics.RectF cropRectangle)
public static com.yoti.mobile.android.commons.image.DirectBuffer yuvCrop(com.yoti.mobile.android.commons.image.ImageBuffer inputBuffer,
android.graphics.RectF cropRectangle)
@Deprecated
public static java.nio.ByteBuffer convertYuvToRgb(@NonNull
YuvBuffer input,
@Nullable
java.nio.ByteBuffer recycleBuffer)
input - YUV data to convertrecycleBuffer - Previous return value to reuse, or null for the first call@Deprecated public static android.graphics.Bitmap convertYuvBufferToBitmap(YuvBuffer yuvImage)
@Deprecated
public static android.graphics.Bitmap convertYuvBufferToBitmap(android.content.Context context,
YuvBuffer yuvImage)
public static com.yoti.mobile.android.core.yuvtools.YuvModel generateYUVFormat(@NonNull
byte[] bytes,
int width,
int height,
boolean noModify)
bytes - - the YUV byteswidth - - the picture widthheight - - the picture heightnoModify - true if the input bytes will be used after this call, so must not be
modified. Will be faster if false@Deprecated public static com.yoti.mobile.android.core.yuvtools.YuvModel generateYUVFormat(YuvBuffer buffer, boolean noModify)
@Deprecated public static com.yoti.mobile.android.core.yuvtools.YuvModel generateYUVFormat(YuvBuffer buffer)