mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-06 16:06:02 +00:00
Add video decoder using OpenMax LI on Raspberry Pi
This commit is contained in:
17
src/com/limelight/binding/video/OmxDecoder.java
Normal file
17
src/com/limelight/binding/video/OmxDecoder.java
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user