 |
Author |
Topic: Accessing Pixels in QTJava (Read 479 times) |
|
trip


|
Accessing Pixels in QTJava
« on: Oct 20th, 2004, 9:51am » |
|
Hey all, As a kind of learning project in Java, I've been trying to write a video class similar to BVideo, but with access to time control. However, for the life of me I can't figure out how to access the pixels of the movie, and someone here obviously knows, since it is in BVideo If anyone could point me in the right direction I would greatly appreciate it. If I end up making something that works, I'll try to make it work with Processing as well. thanks c
|
|
|
|
fry
|
Re: Accessing Pixels in QTJava
« Reply #2 on: Oct 20th, 2004, 9:36pm » |
|
i'm posting the code for the movie library (BVideo in 70+) you'll have to clear some things out (you needn't implement 'PLibrary' but the rest should be ok on its own. also notice that it extends PImage (formerly BImage), so that pixels[] etc are all available. http://acg.media.mit.edu/people/fry/temp/Movie.java here's to hoping that you come up with a better & fancier video library. in addition to time control, audio control is something we don't have a great way to deal with. (note that this code is LGPL so you're not allowed to make changes and run off to use it without making the changes available to others.. basically just share & share alike..) (edit: posted the wrong file at first.. was camera, now it's movie)
|
« Last Edit: Oct 20th, 2004, 9:46pm by fry » |
|
|
|
|
trip


|
Re: Accessing Pixels in QTJava
« Reply #3 on: Oct 24th, 2004, 1:18pm » |
|
thought i had replied to this... oops. thanks a lot fry, i'll try to make something happen with the code. and as far as adding to the movie playback, i'll try to add functions that jump frames instead of seconds... i think i have that part figured out, although the user set fps adds a kink to the equation. as far as audio goes, i'll need to research that. i'm not that experienced (yet!) with java and qtjava. ok, thanks again. on to experimenting! c
|
|
|
|
|