Rabbit-R1/original r1/java/sources/org/webrtc/VideoEncoderWrapper.java
2024-05-21 17:08:36 -04:00

33 lines
1.1 KiB
Java

package org.webrtc;
import org.webrtc.VideoEncoder;
/* loaded from: classes3.dex */
class VideoEncoderWrapper {
/* JADX INFO: Access modifiers changed from: private */
public static native void nativeOnEncodedFrame(long j, EncodedImage encodedImage);
VideoEncoderWrapper() {
}
static boolean getScalingSettingsOn(VideoEncoder.ScalingSettings scalingSettings) {
return scalingSettings.on;
}
static Integer getScalingSettingsLow(VideoEncoder.ScalingSettings scalingSettings) {
return scalingSettings.low;
}
static Integer getScalingSettingsHigh(VideoEncoder.ScalingSettings scalingSettings) {
return scalingSettings.high;
}
static VideoEncoder.Callback createEncoderCallback(final long j) {
return new VideoEncoder.Callback() { // from class: org.webrtc.VideoEncoderWrapper$$ExternalSyntheticLambda0
@Override // org.webrtc.VideoEncoder.Callback
public final void onEncodedFrame(EncodedImage encodedImage, VideoEncoder.CodecSpecificInfo codecSpecificInfo) {
VideoEncoderWrapper.nativeOnEncodedFrame(j, encodedImage);
}
};
}
}