Skip to content

Instantly share code, notes, and snippets.

@sandeep5193
sandeep5193 / YuvFrame.java
Created Jun 7, 2018 — forked from JBurkeKF/YuvFrame.java
Copy a WebRTC I420Frame, convert it to a Bitmap (requires io.pristine:libjingle)
View YuvFrame.java
// 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