R1NC / AND-YUV

LibYUV Utils for Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AND-YUV

LibYUV Utils for Android.

  • Image to YUV:
public static boolean I420WithImage(Image image, byte[] i420_bytes);
public static int bitmapToI420(Bitmap bitmap, byte[] dst_bytes);
  • YUV format transform:
public static int I420ToNV21(byte[] i420_bytes, int width, int height, byte[] dst_bytes);
public static int NV21ToI420(byte[] nv21_bytes, int width, int height, byte[] dst_bytes);
  • YUV matrix transform:
public static int rotateI420(byte[] src_bytes, int width, int height, RotateMode mode, byte[] dst_bytes);
public static int mirrorI420(byte[] src_bytes, int width, int height, byte[] dst_bytes);
public static int scaleI420(byte[] src_bytes, int src_width, int src_height, int dst_width, int dst_height, FilterMode filter_mode, byte[] dst_bytes);
  • YUV compress to Jpeg:
public static byte[] yuv2Jpeg(byte[] data, int format, final int width, final int height, Rect cropRect);
ezoic increase your site revenue

About

LibYUV Utils for Android.


Languages

Language:Java 61.7%Language:C++ 36.4%Language:CMake 1.8%