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

68 lines
2.9 KiB
Java

package org.webrtc;
import android.content.Context;
import android.hardware.camera2.CameraManager;
import org.webrtc.CameraSession;
import org.webrtc.CameraVideoCapturer;
/* loaded from: classes3.dex */
public class Camera2Capturer extends CameraCapturer {
private final CameraManager cameraManager;
private final Context context;
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ void changeCaptureFormat(int i, int i2, int i3) {
super.changeCaptureFormat(i, i2, i3);
}
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ void dispose() {
super.dispose();
}
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ void initialize(SurfaceTextureHelper surfaceTextureHelper, Context context, CapturerObserver capturerObserver) {
super.initialize(surfaceTextureHelper, context, capturerObserver);
}
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ boolean isScreencast() {
return super.isScreencast();
}
@Override // org.webrtc.CameraCapturer
public /* bridge */ /* synthetic */ void printStackTrace() {
super.printStackTrace();
}
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ void startCapture(int i, int i2, int i3) {
super.startCapture(i, i2, i3);
}
@Override // org.webrtc.CameraCapturer, org.webrtc.VideoCapturer
public /* bridge */ /* synthetic */ void stopCapture() {
super.stopCapture();
}
@Override // org.webrtc.CameraCapturer, org.webrtc.CameraVideoCapturer
public /* bridge */ /* synthetic */ void switchCamera(CameraVideoCapturer.CameraSwitchHandler cameraSwitchHandler) {
super.switchCamera(cameraSwitchHandler);
}
@Override // org.webrtc.CameraCapturer, org.webrtc.CameraVideoCapturer
public /* bridge */ /* synthetic */ void switchCamera(CameraVideoCapturer.CameraSwitchHandler cameraSwitchHandler, String str) {
super.switchCamera(cameraSwitchHandler, str);
}
public Camera2Capturer(Context context, String str, CameraVideoCapturer.CameraEventsHandler cameraEventsHandler) {
super(str, cameraEventsHandler, new Camera2Enumerator(context));
this.context = context;
this.cameraManager = (CameraManager) context.getSystemService("camera");
}
@Override // org.webrtc.CameraCapturer
protected void createCameraSession(CameraSession.CreateSessionCallback createSessionCallback, CameraSession.Events events, Context context, SurfaceTextureHelper surfaceTextureHelper, String str, int i, int i2, int i3) {
Camera2Session.create(createSessionCallback, events, context, this.cameraManager, surfaceTextureHelper, str, i, i2, i3);
}
}