Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Working with a video frame in memory

$
0
0
Sure. Loading the frame/pixels by definition comes before displaying it anyway.

Code Example
  1. Movie mov;

  2. void setup() {
  3.   size(640, 360);
  4.   mov = new Movie(this, "yourMovie.mov");
  5.   mov.loop();
  6. }

  7. void draw() {
  8.   if (mov.available()) {
  9.     mov.read();
  10.     mov.loadPixels();
  11.     // do stuff
  12.   }
  13. }

Viewing all articles
Browse latest Browse all 1768

Trending Articles