Play and zoom into movies to see details of videos that have a higher resolution than your screen
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

zoomableMoviePlayer.pde 1019B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Quick minimalistic movie player with zoom for Processing 2.2.1
  3. Only GUI element is a timeline.
  4. Intended to use for zooming into movies to be able to see details of videos that have a higher resolution than your screen.
  5. Drag & drop a movie from your window manager into the viewport to load and play it.
  6. - Pause/play with middle mouse
  7. - Mousewheel for zooming in / out
  8. - Drag & drop the movies image with left mouse button
  9. - Save a screenshot with right mouse button
  10. victorgiers.com
  11. */
  12. import processing.video.*;
  13. import sojamo.drop.*;
  14. Movie mov;
  15. SDrop dropimport;
  16. Timeline timeline;
  17. Viewport viewport;
  18. boolean playing;
  19. float scaleFactor, translateX, translateY;
  20. void setup() {
  21. size(1200, 800);
  22. frame.setResizable(true);
  23. scaleFactor = 1;
  24. viewport = new Viewport();
  25. timeline = new Timeline(0, height-20, width, 20);
  26. loadMovie("katze.avi");
  27. dropimport = new SDrop(this);
  28. }
  29. void draw() {
  30. timeline.update();
  31. timeline.display();
  32. viewport.update();
  33. viewport.display();
  34. println(scaleFactor);
  35. }