android: use protected fields in JavaCamera2View

pull/19046/head
Alexander Alekhin 4 years ago
parent 2c634eeef2
commit fb85974d01
  1. 16
      modules/java/generator/android-21/java/org/opencv/android/JavaCamera2View.java

@ -43,17 +43,17 @@ public class JavaCamera2View extends CameraBridgeViewBase {
private static final String LOGTAG = "JavaCamera2View"; private static final String LOGTAG = "JavaCamera2View";
private ImageReader mImageReader; protected ImageReader mImageReader;
private int mPreviewFormat = ImageFormat.YUV_420_888; protected int mPreviewFormat = ImageFormat.YUV_420_888;
private CameraDevice mCameraDevice; protected CameraDevice mCameraDevice;
private CameraCaptureSession mCaptureSession; protected CameraCaptureSession mCaptureSession;
private CaptureRequest.Builder mPreviewRequestBuilder; protected CaptureRequest.Builder mPreviewRequestBuilder;
private String mCameraID; protected String mCameraID;
private android.util.Size mPreviewSize = new android.util.Size(-1, -1); protected android.util.Size mPreviewSize = new android.util.Size(-1, -1);
private HandlerThread mBackgroundThread; private HandlerThread mBackgroundThread;
private Handler mBackgroundHandler; protected Handler mBackgroundHandler;
public JavaCamera2View(Context context, int cameraId) { public JavaCamera2View(Context context, int cameraId) {
super(context, cameraId); super(context, cameraId);

Loading…
Cancel
Save