Despite sketch size Webcam limited to 640x480

Hello, I have been running Processing on a MacBook and can generate 1280x960 webcam video. I am trying to do the same on a Windows 8 PC, but both of my Logitech Cams, a c310 and c910, open in a 1280x960 sized sketch as 640x480. (The c910 captures video in 1920x1080 using the Windows 8 camera app, so I know it is capable of it.) So, my question is: Does Processing or Java somehow limit the Camera's ability to render HD video during a sketch? If so, how can I alter it? Or is this a Camera thing?

If this helps, here is the code and a screencapture on a simple sketch. I have run several sketches with webcam captures and the results are always the same. Screenshot (1)

   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]);
    }

    // The camera can be initialized directly using an 
    // element from the array returned by list():
    cam = new Capture(this, cameras[0]);
    cam.start();     
  }      
}

    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);
}
Sign In or Register to comment.