discord-jadx/app/src/main/java/org/webrtc/VideoDecoder.java

48 lines
1.1 KiB
Java

package org.webrtc;
public interface VideoDecoder {
public interface Callback {
void onDecodedFrame(VideoFrame videoFrame, Integer num, Integer num2);
}
public static class DecodeInfo {
public final boolean isMissingFrames;
public final long renderTimeMs;
public DecodeInfo(boolean z2, long j) {
this.isMissingFrames = z2;
this.renderTimeMs = j;
}
}
public static class Settings {
public final int height;
public final int numberOfCores;
public final int width;
@CalledByNative("Settings")
public Settings(int i, int i2, int i3) {
this.numberOfCores = i;
this.width = i2;
this.height = i3;
}
}
@CalledByNative
long createNativeVideoDecoder();
@CalledByNative
VideoCodecStatus decode(EncodedImage encodedImage, DecodeInfo decodeInfo);
@CalledByNative
String getImplementationName();
boolean getPrefersLateDecoding();
@CalledByNative
VideoCodecStatus initDecode(Settings settings, Callback callback);
@CalledByNative
VideoCodecStatus release();
}