diff --git a/core/andres.txt b/core/andres.txt index 8b53d0fac..1f1d54c3a 100644 --- a/core/andres.txt +++ b/core/andres.txt @@ -2,10 +2,14 @@ X Make methods in PGL used by opengl protected, then remove gl from the public GL methods X Texture wrapping option in PGraphics: textureWrap(mode) +0208 video +X Cleanup video API: + http://forum.processing.org/topic/gsoc-2012-processing-video#25080000001473557 + http://code.google.com/p/processing/issues/detail?id=1170 +X Have Capture.list() return all supported resolutions, and use the string as the argument + for the capture object + API changes/additions (for beta release) -_ Cleanup video API: http://code.google.com/p/processing/issues/detail?id=1170 -_ Have Capture.list() return all supported resolutions, and use the string as the argument -_ for the capture object _ Add DISABLE_PERSPECTIVE_CORRECTED_STROKE hint, remove DISABLE_PERSPECTIVE_CORRECTED_LINES _ Rename shader constants (FLAT, LIT, TEXTURED, etc), resetShader() w/out args? _ Back-buffer support in shaders: http://code.google.com/p/processing/issues/detail?id=1169 diff --git a/java/libraries/video/src/processing/video/Capture.java b/java/libraries/video/src/processing/video/Capture.java index 28f15d514..57e1dce47 100644 --- a/java/libraries/video/src/processing/video/Capture.java +++ b/java/libraries/video/src/processing/video/Capture.java @@ -479,7 +479,13 @@ public class Capture extends PImage implements PConstants { testPipeline.addMany(source, sink); Element.linkMany(source, sink); + // Play/pause sequence (with getState() calls to to make sure + // all async operations are done) to trigger the capture momentarily + // for the device and obtain its supported resolutions. testPipeline.play(); + testPipeline.getState(); + testPipeline.pause(); + testPipeline.getState(); ArrayList resolutions = new ArrayList(); addResFromSource(resolutions, source);