Skip to content

Instantly share code, notes, and snippets.

View theeasiestway's full-sized avatar
👉
👈

theeasiestway

👉
👈
View GitHub Profile
@theeasiestway
theeasiestway / DecodeActivity.java
Created March 13, 2020 07:27 — forked from waveacme/DecodeActivity.java
MediaCodec decode h264 example
//from https://github.com/vecio/MediaCodecDemo
package io.vec.demo.mediacodec;
import java.nio.ByteBuffer;
import android.app.Activity;
import android.media.MediaCodec;
import android.media.MediaCodec.BufferInfo;
// ==================== pull from Facebook/rockdb@github ====================
class ListJni {
public:
// Get the java class id of java.util.List.
static jclass getListClass(JNIEnv* env) {
jclass jclazz = env->FindClass("java/util/List");
assert(jclazz != nullptr);
return jclazz;
}