FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 962 : Video width and height broken in 0151
Last modified: 2008-10-19 13:53
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
961
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Daniel Shiffman
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-10-18 21:29
In both 151 and 152, seems like getting video.width and video.height is
broken. They don't get set until video.available() is true (maybe this is
what we want, but it breaks a bunch of examples?).
Simple example produces "Width (0) and height (0) cannot be <= 0"
import processing.video.*;
Capture video;
void setup() {
size(320,240);
video = new Capture(this,320,240,15);
println(video.width + " " + video.height);
}
void draw() {
if (video.available()) {
video.read();
}
// A video image can also be tinted and resized just as with a PImage.
image(video,0,0);
}
If I do this:
if (video.available()) {
video.read();
println(video.width + " " + video.height);
}
I get 320x240 once video.available() is true
Additional Comment
#1 From fry 2008-10-19 04:41
This is a regression from
bug #961
for more).
*** This bug has been marked as a duplicate of
961
***
Additional Comment
#2 From Daniel Shiffman 2008-10-19 06:48
zoinks, duh, i can't believe i didn't see this was the same bug as the one
just posted. sorry + thanks!
Additional Comment
#3 From fry 2008-10-19 12:59
No worries, the symptoms are totally different, and it's far easier to mark
bugs as duplicates than it is to split bugs into two.
Additional Comment
#4 From fry 2008-10-19 13:00
Also, I assume you mean 0150 and 0151, since 0152 was released this morning
to deal with this problem, right?
Additional Comment
#5 From Daniel Shiffman 2008-10-19 13:25
Yes, i am building from source so i had the problem in 0152 before you
fixed it. but checked and it works now, thanks!
Additional Comment
#6 From fry 2008-10-19 13:53
Got it, thanks for checking the SVN.