Package com.sinch.android.rtc.video
Object VideoUtils
-
- All Implemented Interfaces:
public class VideoUtilsEntry point for accessing helper methods of video frames processing.
-
-
Field Summary
Fields Modifier and Type Field Description public final static VideoUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static VideoFrameI420toNV21Frame(VideoFrame frame)Converts frame in I420 to NV21. final static UnitconvertToBlackAndWhite(VideoFrame frame)Demo method that shows how to process in-place VideoFrame by converting it to black-and-white image. -
-
Method Detail
-
I420toNV21Frame
final static VideoFrame I420toNV21Frame(VideoFrame frame)
Converts frame in I420 to NV21.
- Parameters:
frame- A frame in I420 format.
-
convertToBlackAndWhite
final static Unit convertToBlackAndWhite(VideoFrame frame)
Demo method that shows how to process in-place VideoFrame by converting it to black-and-white image.
- Parameters:
frame-VideoFrame in YUV 420 planar or semi-planar format.
-
-
-
-