Package quicktime.std.movies.media

Examples of quicktime.std.movies.media.DataRef




    // open the movie

    final DataRef urlMovie = new DataRef(theURL);

   

    // create the movie
View Full Code Here


  public void createNewMovieFromURL (String theURL) throws QTException
  {

    logger.fine(theURL);
    // create the DataRef that contains the information about where the movie is
    DataRef urlMovie = new DataRef(theURL);
   
    // create the movie
    m = Movie.fromDataRef (urlMovie,StdQTConstants.newMovieActive);
   
    // determine whether we have audio, video, or both:
View Full Code Here

    Movie movie = null;
    try
    {
      movie = new Movie();
      mov.insertSegment(movie, 0, mov.getDuration(), 0);
      movie.setDefaultDataRef(new DataRef(new QTHandle()));
    } // try
    catch (QTException qte)
    {
      qte.printStackTrace();
    } // catch (QTException)
View Full Code Here

  throws QTException
  {
    Track targetTrack = target.newTrack(0f, 0f, 20);
    @SuppressWarnings("unused")
    SoundMedia media = new SoundMedia(targetTrack,
      source.getMedia().getTimeScale(), new DataRef(new QTHandle()));
    source.insertSegment(targetTrack, 0, source.getDuration(), 0);
    return targetTrack;
  } // addAudioTrack(Track, Movie)
View Full Code Here

    Movie movie = MovieUtils.cloneMovie(mov);
    try
    {
      movie = new Movie();
      mov.insertSegment(movie, 0, mov.getDuration(), 0);
      movie.setDefaultDataRef(new DataRef(new QTHandle()));
    } // try
    catch (QTException qte)
    {
      qte.printStackTrace();
    } // catch (QTException)
View Full Code Here

  {
    Track targetTrack = target.newTrack(source.getSize().getWidthF(),
      source.getSize().getHeightF(), 1.0f);
    @SuppressWarnings("unused")
    VideoMedia media = new VideoMedia(targetTrack,
      source.getMedia().getTimeScale(), new DataRef(new QTHandle()));
    int duration = source.getDuration();
    source.insertSegment(targetTrack, 0, duration, 0);
    return targetTrack;
  } // addVideoTrack(Track, Movie)
View Full Code Here

        byte[] newPictBytes = new byte[pics[x].getSize() + 512];
        pics[x].copyToArray(0, newPictBytes, 512, newPictBytes.length - 512);
        pics[x] = new Pict(newPictBytes);

        // export the pict
        DataRef ref = new DataRef(pics[x],
          StdQTConstants.kDataRefQTFileTypeTag, "PICT");
        gi.setDataReference(ref);

        // create matrix to represent scaling of each pict
        Matrix drawMatrix = new Matrix();
View Full Code Here

      // make a copy of mov
      newMov = cloneMovie(mov);
      Track newAudio;

      // use addEmptyTrack to make sure it has SoundMedia characteristics
      newAudio = newMov.addEmptyTrack(audio, new DataRef(new QTHandle()));
      audio.insertSegment(newAudio, 0, audio.getDuration(),
        (int)(start * newMov.getTimeScale()));
    } // try
    catch (QTException qte)
    {
View Full Code Here

    try
    {
      // make a copy of mov
      newMov = cloneMovie(mov);
      Track newAudio;
      newAudio = newMov.addEmptyTrack(audio, new DataRef(new QTHandle()));

      // use addEmptyTrack to make sure it has Sound Media characteristics
      audio.insertSegment(newAudio, 0, (int) (duration
          * audio.getMovie().getTimeScale()),
          (int) (start * newMov.getTimeScale()));
 
View Full Code Here

    byte[] newPictBytes = new byte[pic.getSize() + 512];
    pic.copyToArray(0, newPictBytes, 512, newPictBytes.length - 512);
    pic = new Pict(newPictBytes);

    // export the pict
    DataRef ref = new DataRef(pic, StdQTConstants.kDataRefQTFileTypeTag,
    "PICT");
    gi.setDataReference(ref);
    Dimension dim = new Dimension(width, height);
    QTImageProducer ip  = new QTImageProducer(gid, dim);
View Full Code Here

TOP

Related Classes of quicktime.std.movies.media.DataRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.