Esempio n. 1
0
  /**
   * Creates an empty movie to which frames can be added.
   *
   * @throws IOException
   */
  private void createMovie() throws IOException {
    try {
      // create the scratch movie
      movie =
          Movie.createMovieFile(
              new QTFile(scratchFile),
              kMoviePlayer,
              createMovieFileDeleteCurFile | createMovieFileDontCreateResFile);

      // create the video track and media
      int timeScale = 600;
      int noVolume = 0;
      videoTrack = movie.newTrack(dim.width, dim.height, noVolume);
      videoMedia = new VideoMedia(videoTrack, timeScale);
      editing = false;
    } catch (QTException ex) {
      throw new IOException("caught in createMovie: " + ex.toString()); // $NON-NLS-1$
    }
  }