mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-16 22:01:14 +00:00
Rework our JNI interface and add ffmpeg bindings for AVC decoding (WIP)
This commit is contained in:
@@ -2,7 +2,7 @@ package com.limelight.nvstream.av.audio;
|
||||
|
||||
public class OpusDecoder {
|
||||
static {
|
||||
System.loadLibrary("nv_opus_dec");
|
||||
System.loadLibrary("nv_av_dec");
|
||||
}
|
||||
|
||||
public static native int init();
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.limelight.nvstream.av.video;
|
||||
|
||||
public class AvcDecoder {
|
||||
static {
|
||||
System.loadLibrary("nv_av_dec");
|
||||
}
|
||||
|
||||
public static native int init(int width, int height);
|
||||
public static native void destroy();
|
||||
public static native int getCurrentFrame(byte[] yuvframe, int size);
|
||||
public static native int getFrameSize();
|
||||
public static native int decode(byte[] indata, int inoff, int inlen);
|
||||
}
|
||||
Reference in New Issue
Block a user