Loading app/src/main/java/net/sourceforge/opencamera/cameracontroller/CameraController.java +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ public abstract class CameraController { public volatile int test_texture_view_buffer_w; // for TextureView, keep track of buffer size public volatile int test_texture_view_buffer_h; public volatile boolean test_force_run_post_capture; // for Camera2 API, test using adjustPreview() / RequestTagType.RUN_POST_CAPTURE public static volatile boolean test_force_slow_preview_start; // for Camera2 API, test waiting for 6s when starting preview /** Class for caching a subset of CameraFeatures, that are slow to read. * For now only used for vendor extensions which are slow to read. Loading app/src/main/java/net/sourceforge/opencamera/cameracontroller/CameraController2.java +16 −12 Original line number Diff line number Diff line Loading @@ -6230,13 +6230,15 @@ public class CameraController2 extends CameraController { */ private void launchCameraSession(boolean wait_until_started, CreateCaptureSessionFunction function, Runnable on_failed) throws CameraAccessException { if( wait_until_started ) { /*try { if( test_force_slow_preview_start ) { try { Thread.sleep(6000); // test slow to start preview //Thread.sleep(25000); // test slow to start preview } catch(InterruptedException e) { throw new RuntimeException(e); }*/ } } function.call(); } else { Loading @@ -6244,13 +6246,15 @@ public class CameraController2 extends CameraController { @Override public void run() { try { /*try { if( test_force_slow_preview_start ) { try { Thread.sleep(6000); // test slow to start preview //Thread.sleep(25000); // test slow to start preview } catch(InterruptedException e) { throw new RuntimeException(e); }*/ } } function.call(); } catch(CameraAccessException e) { Loading Loading
app/src/main/java/net/sourceforge/opencamera/cameracontroller/CameraController.java +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ public abstract class CameraController { public volatile int test_texture_view_buffer_w; // for TextureView, keep track of buffer size public volatile int test_texture_view_buffer_h; public volatile boolean test_force_run_post_capture; // for Camera2 API, test using adjustPreview() / RequestTagType.RUN_POST_CAPTURE public static volatile boolean test_force_slow_preview_start; // for Camera2 API, test waiting for 6s when starting preview /** Class for caching a subset of CameraFeatures, that are slow to read. * For now only used for vendor extensions which are slow to read. Loading
app/src/main/java/net/sourceforge/opencamera/cameracontroller/CameraController2.java +16 −12 Original line number Diff line number Diff line Loading @@ -6230,13 +6230,15 @@ public class CameraController2 extends CameraController { */ private void launchCameraSession(boolean wait_until_started, CreateCaptureSessionFunction function, Runnable on_failed) throws CameraAccessException { if( wait_until_started ) { /*try { if( test_force_slow_preview_start ) { try { Thread.sleep(6000); // test slow to start preview //Thread.sleep(25000); // test slow to start preview } catch(InterruptedException e) { throw new RuntimeException(e); }*/ } } function.call(); } else { Loading @@ -6244,13 +6246,15 @@ public class CameraController2 extends CameraController { @Override public void run() { try { /*try { if( test_force_slow_preview_start ) { try { Thread.sleep(6000); // test slow to start preview //Thread.sleep(25000); // test slow to start preview } catch(InterruptedException e) { throw new RuntimeException(e); }*/ } } function.call(); } catch(CameraAccessException e) { Loading