Skip to content

R1NC/AND-YUV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

LibYUV Utils for Android.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published