1 package kaka.cakelight;
3 import static kaka.cakelight.Main.timeIt;
5 public class CakeLight {
6 private Configuration config;
9 public CakeLight(Configuration config) {
13 public void setMode(Mode mode) {
19 public void cleanup() {
20 if (this.mode != null) {
25 public void startLoop() {
27 // FrameGrabber grabber = FrameGrabber.from(config);
29 // Frame frame = grabber.grabFrame();
31 // for (int i = 0; i < 100; i++) {
32 // time += timeIt("frame", () -> grabber.grabFrame());
34 // System.out.println("time = " + time);
36 // byte[] data = frame.getData();
37 // saveFile(data, "/home/kaka/test.img");