Agora Java API Reference for Android
Classes | Static Public Member Functions | Static Public Attributes | List of all members
io.agora.rtc.utils.YuvUtils Class Reference

Classes

class  Plane
 

Static Public Member Functions

static boolean supportedImageFormat (Image image)
 
static byte [] getImageData (Image image, int imageFormat)
 
static boolean writeNV21ToFile (byte[] imageData, int width, int height, String filePath)
 
static void writeRawData (byte[] data, String filePath)
 
static void write420ImageToFile (Image image, String filePath)
 
static byte [] yuv420toNV21 (Image image)
 
static byte [] yuv420toNV21 (byte[] data, int width, int height)
 
static byte [] yuv420toNV21 (VideoFrame.I420Buffer i420, int width, int height)
 
static void writeRgbaToFile (Buffer buffer, int width, int height, String filePath)
 

Static Public Attributes

static final int I420 = ImageFormat.YUV_420_888
 
static final int NV21 = ImageFormat.NV21
 

Detailed Description

Created by wyylling on 09/12/2017.