X-Git-Url: http://dolda2000.com/gitweb/?p=kaka%2Fcakelight.git;a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FGuiTest.java;h=0d199c238a1c624760c9da6fba4c06fd4e731dbd;hp=c72519a96dd1d91d1b90247acde5d90c29f51626;hb=adc29b9a70fa1d03ac67b0b3f397fed7a75f4d7b;hpb=8418fbdaa82ab1152cd37154cb110762add943a6 diff --git a/src/kaka/cakelight/GuiTest.java b/src/kaka/cakelight/GuiTest.java index c72519a..0d199c2 100644 --- a/src/kaka/cakelight/GuiTest.java +++ b/src/kaka/cakelight/GuiTest.java @@ -68,7 +68,7 @@ public class GuiTest extends Application { return javafx.scene.paint.Color.rgb(c.r(), c.g(), c.b()); } - private void drawFrame(GraphicsContext gc, Frame frame) { + private void drawFrame(GraphicsContext gc, VideoFrame frame) { if (paused) return; System.out.println("Drawing a frame"); drawCols(gc, frame); @@ -100,7 +100,7 @@ public class GuiTest extends Application { } } - private void drawVideo(GraphicsContext gc, Frame frame) { + private void drawVideo(GraphicsContext gc, VideoFrame frame) { byte[] rgb = new byte[3]; Mat img = frame.getConvertedImage(); float colSize = 16 * BLOCK / (float)img.cols(); @@ -114,7 +114,7 @@ public class GuiTest extends Application { } } - private void drawCols(GraphicsContext gc, Frame frame) { + private void drawCols(GraphicsContext gc, VideoFrame frame) { byte[] rgb = new byte[3]; for (int x = 0; x < config.leds.cols; x++) { for (int y = 0; y < 9; y++) { @@ -124,7 +124,7 @@ public class GuiTest extends Application { } } - private void drawRows(GraphicsContext gc, Frame frame) { + private void drawRows(GraphicsContext gc, VideoFrame frame) { byte[] rgb = new byte[3]; for (int y = 0; y < config.leds.rows; y++) { for (int x = 0; x < 16; x++) {