mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 08:07:54 +00:00
Rework our JNI interface and add ffmpeg bindings for AVC decoding (WIP)
This commit is contained in:
1 parent
cca7df6c25
commit
2c2e713166
274 files changed
+64352
-19
No files matched your search
@@ -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