revisione ortografica e grammaticale
[capturemjpeg.git] / docs / relazione / sources / vendor_specific.pde
blobf63eaf8a6d82a23117f260b72256eb7e1121ccea
1 import it.lilik.capturemjpeg.*;
3 private CaptureMJPEG capture;
4 private PImage next_img = null;
6 void setup() {
7   size(400, 300);
8   background(0);
9   capture = new CaptureMJPEG
10     (this,
11      new SonyURL("mynetworkcamera.foo")
12      .setFPS(20).getURL(),
13    //new AxisURL("mynetworkcamera.foo")
14    //.setDesiredFPS(20).getURL(),
15      "user",
16      "password");
17   capture.startCapture();
18   frameRate(20);
21 void draw() {
22   if (next_img != null) {
23     image(next_img, 0, 0);
24   }
27 void captureMJPEGEvent(PImage img) {
28   next_img = img;