32 lines
993 B
Java
32 lines
993 B
Java
package org.webrtc;
|
|
|
|
import androidx.annotation.Nullable;
|
|
public interface VideoProcessor extends CapturerObserver {
|
|
|
|
public static class FrameAdaptationParameters {
|
|
public final int cropHeight;
|
|
public final int cropWidth;
|
|
public final int cropX;
|
|
public final int cropY;
|
|
public final boolean drop;
|
|
public final int scaleHeight;
|
|
public final int scaleWidth;
|
|
public final long timestampNs;
|
|
|
|
public FrameAdaptationParameters(int i, int i2, int i3, int i4, int i5, int i6, long j, boolean z2) {
|
|
this.cropX = i;
|
|
this.cropY = i2;
|
|
this.cropWidth = i3;
|
|
this.cropHeight = i4;
|
|
this.scaleWidth = i5;
|
|
this.scaleHeight = i6;
|
|
this.timestampNs = j;
|
|
this.drop = z2;
|
|
}
|
|
}
|
|
|
|
void onFrameCaptured(VideoFrame videoFrame, FrameAdaptationParameters frameAdaptationParameters);
|
|
|
|
void setSink(@Nullable VideoSink videoSink);
|
|
}
|