mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-06 16:06:10 +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();
|
||||
|
||||
13
src/com/limelight/nvstream/av/video/AvcDecoder.java
Normal file
13
src/com/limelight/nvstream/av/video/AvcDecoder.java
Normal file
@@ -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