Package quicktime.std.qtcomponents

Examples of quicktime.std.qtcomponents.TimeCodeDef


  {
    // make a new copy of mov
    Movie movie = cloneMovie(mov);
    int timescale = movie.getTimeScale();

    TimeCodeDef tcDef = new TimeCodeDef();
    tcDef.setTimeScale(movie.getTimeScale());
    int fps = MovieUtils.countFrames(movie, 0, 1);

    tcDef.setFrameDuration(movie.getTimeScale() / fps);
    tcDef.setFramesPerSecond(fps);
    tcDef.setFlags(StdQTConstants.tcDropFrame);

    // first record at 0 hrs, 0 min, 0 sec, 0 frames
    TimeCodeTime tcTime = new TimeCodeTime (0, 0, 0, 0);

    // create time code track and media
View Full Code Here

TOP

Related Classes of quicktime.std.qtcomponents.TimeCodeDef

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.