Aug 30, 2009 10:05
Working on my Processing video code and trying to step it up from DVD to BluRay input.
DVDs are 720x480 pixels, so if I'm looking at the R, G & B values, I've got 1,036,800 numbers that I've got to deal with every frame. Scaling that up to BluRay's 1920x1080 gives me 6,220,800 values per frame... six times more data. Still theoretically within the bounds of the largest arrays I can address, but I'm getting errors in my code that didn't exist before scaling it up like this.
*sigh*
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException
at quicktime.util.QTUtils.checkQTObjectSizeAndOffset(QTUtils.java:801)
at quicktime.util.QTHandleRef.copyFromHandle(QTHandleRef.java:478)
at quicktime.std.movies.media.DataRef.copyFromHandle(DataRef.java:276)
at quicktime.std.movies.media.DataRef.setAliasHandle(DataRef.java:261)
at quicktime.std.movies.media.DataRef.(DataRef.java:145)
at processing.video.Movie.init(Movie.java:159)
at processing.video.Movie.(Movie.java:101)
at processing.video.Movie.(Movie.java:89)
at ChucksColorAverageBluRay.setup(ChucksColorAverageBluRay.java:55)
at processing.core.PApplet.handleDraw(PApplet.java:1403)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:613)
or later
error, disabling movieEvent() for null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at processing.video.Movie.run(Movie.java:684)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2005056
at ChucksColorAverageBluRay.movieEvent(ChucksColorAverageBluRay.java:138)
... 6 more