Skip to content

Instantly share code, notes, and snippets.

@sandeep5193
sandeep5193 / YuvFrame.java
Created June 7, 2018 10:08 — forked from JBurkeKF/YuvFrame.java
Copy a WebRTC I420Frame, convert it to a Bitmap (requires io.pristine:libjingle)
// TODO: Your own package name here
//package com.kittehface;
// Some work based on http://stackoverflow.com/a/12702836 by rics (http://stackoverflow.com/users/21047/rics)
import android.graphics.Bitmap;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
// TODO: project should include io.pristine:libjingle from Maven