CameraPainter cameraPainter = new CameraPainter();
cameraPainter.options.width.set(width);
cameraPainter.options.height.set(height);
cameraPainter.options.colorFormat.set(CameraPainter.ColorFormat.NV21_UV_SWAPPED);
cameraPainter.options.surfaceView.set(new SurfaceView(this.getContext()));
<BUG>frame.addConsumer(cameraPainter, cameraProvider, 1 / frameRate, 0);
</BUG>
break;
}
}

CameraPainter cameraPainter = new CameraPainter();
cameraPainter.options.width.set(width);
cameraPainter.options.height.set(height);
cameraPainter.options.colorFormat.set(CameraPainter.ColorFormat.NV21_UV_SWAPPED);
cameraPainter.options.surfaceView.set(new SurfaceView(this.getContext()));
frame.addConsumer(cameraPainter, cameraChannel, 1 / frameRate, 0);
break;
}
}
