Add video decoder using OpenMax LI on Raspberry Pi

This commit is contained in:
Iwan Timmer
2014-01-07 01:36:00 +01:00
parent 887b2ac8f7
commit 34d793628b
6 changed files with 384 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package com.limelight.binding.video;
import com.limelight.binding.LibraryHelper;
public class OmxDecoder {
static {
LibraryHelper.loadNativeLibrary("nv_omx_dec");
}
public static native int init();
public static native void stop();
public static native void destroy();
public static native int decode(byte[] indata, int inoff, int inlen, boolean last);
}