public class VideoUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| VideoUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | convertToBlackAndWhite(VideoFrame frame)Demo method that shows how to process in-place VideoFrame by converting it to black-and-white image. | 
| static VideoFrame | I420toNV21Frame(VideoFrame frame) | 
public static VideoFrame I420toNV21Frame(VideoFrame frame)
frame - A frame in I420 format.public static void convertToBlackAndWhite(VideoFrame frame)
frame - - VideoFrame in YUV 420 planar or semi-planar format - DO NOT assume continuity of planes.
 Pixels of one line occupy adjacent bytes in memory, but lines of the same plane can be separated from each other -
 use yuvStrides[] fields!
 NB: VideoFrame's planes backing memory buffer most of the time is allocated as direct buffer from native code and
 thus it is NOT backed by Java's byte[] array. Use slow but secure 'put' methods, or delegate processing to your native C++ code via JNI.Copyright 2016, Sinch AB