|
Author |
Topic: resizing and smoothing video problem (Read 1618 times) |
|
TomC
|
resizing and smoothing video problem
« on: Feb 25th, 2004, 1:44am » |
|
Does this happen to anyone else? Using smooth() with video and image(video,x,y,width,height) crashes with an ArrayOutofBoundsException on 67 and 68, Windows 2000. It's fine with image(video,x,y). Code: Error while running applet. java.lang.ArrayIndexOutOfBoundsException: 102399 at BLine.drawPoint_alpha(BLine.java:534) at BLine.draw(BLine.java:362) at BGraphics.endFrame(BGraphics.java:620) at BApplet.nextFrame(BApplet.java:450) at BApplet.run(BApplet.java:369) at java.lang.Thread.run(Unknown Source) |
| Code: void setup() { size(320,240); smooth(); beginVideo(320,240,30); } void loop() { image(video,0,0,width,height); } |
| On edit: the out of bounds index is (width*width)-1, so it doesn't affect a square sketch... does that help?
|
« Last Edit: Feb 25th, 2004, 1:48am by TomC » |
|
|
|
|
fry
|
Re: resizing and smoothing video problem
« Reply #1 on: Feb 25th, 2004, 5:05pm » |
|
sounds like a 'width' listed where the 'height' should be, or vice-versa, in the image code. i'll make a note to look into it, or maybe toxi will know offhand since he's been doing a lotta work on that stuff.
|
|
|
|
fry
|
Re: resizing and smoothing video problem
« Reply #2 on: Jul 10th, 2004, 10:22pm » |
|
this seems to be fixed (as of 69?) is that the case or is anyone still seeing it?
|
|
|
|
|