diff --git a/java/libraries/video/examples/Capture/GettingStartedCaptureLinux/GettingStartedCaptureLinux.pde b/java/libraries/video/examples/Capture/GettingStartedCaptureLinux/GettingStartedCaptureLinux.pde deleted file mode 100644 index 1311116f1..000000000 --- a/java/libraries/video/examples/Capture/GettingStartedCaptureLinux/GettingStartedCaptureLinux.pde +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Getting Started with Capture. - * - * Reading and displaying an image from an attached Capture device. - */ - -import processing.video.*; - -Capture cam; - -void setup() { - size(640, 480); - -/* - // List functionality still not ready on Linux - String[] cameras = Capture.list(); - - if (cameras.length == 0) - { - println("There are no cameras available for capture."); - exit(); - } else { - println("Available cameras:"); - for (int i = 0; i < cameras.length; i++) - println(cameras[i]); - cam = new Capture(this, 640, 480, cameras[0]); - } - - However, different cameras can be selected by using their device file: - cam = new Capture(this, 640, 480, "/dev/video0"); - cam = new Capture(this, 640, 480, "/dev/video1"); - etc. - */ - - cam = new Capture(this, 640, 480); - cam.start(); - - /* - // You can get the resolutions supported by the - // capture device using the resolutions() method. - // It must be called after creating the capture - // object. - int[][] res = cam.resolutions(); - for (int i = 0; i < res.length; i++) { - println(res[i][0] + "x" + res[i][1]); - } - */ - - /* - // You can also get the framerates supported by the - // capture device: - String[] fps = cam.framerates(); - for (int i = 0; i < fps.length; i++) { - println(fps[i]); - } - */ -} - -void draw() { - if (cam.available() == true) { - cam.read(); - image(cam, 0, 0); - // The following does the same, and is faster when just drawing the image - // without any additional resizing, transformations, or tint. - //set(0, 0, cam); - } -} diff --git a/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde b/java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde similarity index 100% rename from java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCaptureMac.pde rename to java/libraries/video/examples/Capture/GettingStartedCaptureMac/GettingStartedCapture.pde diff --git a/java/libraries/video/examples/Capture/GettingStartedCaptureWin/GettingStartedCaptureWin.pde b/java/libraries/video/examples/Capture/GettingStartedCaptureWin/GettingStartedCaptureWin.pde deleted file mode 100644 index dc8872fce..000000000 --- a/java/libraries/video/examples/Capture/GettingStartedCaptureWin/GettingStartedCaptureWin.pde +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Getting Started with Capture. - * - * Reading and displaying an image from an attached Capture device. - */ - -import processing.video.*; - -Capture cam; - -void setup() { - size(640, 480); - - String[] cameras = Capture.list(); - - if (cameras.length == 0) - { - println("There are no cameras available for capture."); - exit(); - } else { - println("Available cameras:"); - for (int i = 0; i < cameras.length; i++) { - println(cameras[i]); - } - cam = new Capture(this, 640, 480, cameras[0]); - cam.start(); - - /* - // You can get the resolutions supported by the - // capture device using the resolutions() method. - // It must be called after creating the capture - // object. - int[][] res = cam.resolutions(); - for (int i = 0; i < res.length; i++) { - println(res[i][0] + "x" + res[i][1]); - } - */ - - /* - // You can also get the framerates supported by the - // capture device: - String[] fps = cam.framerates(); - for (int i = 0; i < fps.length; i++) { - println(fps[i]); - } - */ - } -} - -void draw() { - if (cam.available() == true) { - cam.read(); - image(cam, 0, 0); - // The following does the same, and is faster when just drawing the image - // without any additional resizing, transformations, or tint. - //set(0, 0, cam); - } -}