mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
use play/pause/getState combination in listResolutions() to avoid hangs in OSX and/or Windows. Updated todo notes
This commit is contained in:
+7
-3
@@ -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
|
||||
|
||||
@@ -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<String> resolutions = new ArrayList<String>();
|
||||
addResFromSource(resolutions, source);
|
||||
|
||||
Reference in New Issue
Block a user