Package com.flashphoner.fpwcsapi.util
Class Utils
java.lang.Object
com.flashphoner.fpwcsapi.util.Utils
Custom utils
-
Constructor Summary
-
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 void
initRenderer
(String logTag, org.webrtc.SurfaceViewRenderer renderer) static String
Create md5static String
stripCodecs
(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)
-