Package com.flashphoner.fpwcsapi.util
Class Utils
java.lang.Object
com.flashphoner.fpwcsapi.util.Utils
Custom utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getNV21(int inputWidth, int inputHeight, int[] argb) static byte[]getNV21(int inputWidth, int inputHeight, android.graphics.Bitmap rgbBitmap) Convert ARGB data to YUVstatic voidinitRenderer(String logTag, org.webrtc.SurfaceViewRenderer renderer) static StringCreate md5static StringstripCodecs(String sdp, String[] codecs) static String
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
md5
Create md5- Parameters:
s- String for creating md5- Returns:
-
writeFmtp
-
stripCodecs
-
initRenderer
-
getNV21
public static byte[] getNV21(int inputWidth, int inputHeight, android.graphics.Bitmap rgbBitmap) Convert ARGB data to YUV- Parameters:
inputWidth-inputHeight-rgbBitmap-- Returns:
-
getNV21
public static byte[] getNV21(int inputWidth, int inputHeight, int[] argb)
-