Package quicktime.std.qtcomponents

Examples of quicktime.std.qtcomponents.TimeCodeTime


    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
    Track tcTrack = movie.addTrack (width, height, 0);
    TimeCodeMedia tcMedia = new TimeCodeMedia (tcTrack, timescale);
    TimeCoder timeCoder = tcMedia.getTimeCodeHandler();
View Full Code Here


/*     */
/*     */   public static TimeCodeInfo fromTimeCoderTime(TimeCoder paramTimeCoder, int paramInt)
/*     */     throws QTException
/*     */   {
/* 147 */     int[] arrayOfInt1 = new int[1];
/* 148 */     TimeCodeTime localTimeCodeTime = new TimeCodeTime();
/* 149 */     int[] arrayOfInt2 = new int[1];
/* 150 */     TimeCodeInfo localTimeCodeInfo = new TimeCodeInfo();
/* 151 */     int i = TCGetTimeCodeAtTime(QTObject.ID(paramTimeCoder), paramInt, arrayOfInt1, localTimeCodeInfo.definition.getBytes(), localTimeCodeTime.getBytes(), arrayOfInt2);
/*     */
/* 157 */     StdQTException.checkError(i);
/*     */
/* 159 */     if (arrayOfInt2[0] != 0)
/* 160 */       localTimeCodeInfo.userData = new QTHandle(arrayOfInt2[0], null, false);
/*     */     else {
/* 162 */       localTimeCodeInfo.userData = null;
/*     */     }
/* 164 */     localTimeCodeInfo.counter = localTimeCodeTime.toCounter();
/* 165 */     localTimeCodeInfo.time = localTimeCodeTime;
/* 166 */     localTimeCodeInfo.frameNumber = arrayOfInt1[0];
/*     */
/* 168 */     return localTimeCodeInfo;
/*     */   }
View Full Code Here

/*     */
/*     */   public static TimeCodeInfo fromTimeCoderCurrent(TimeCoder paramTimeCoder)
/*     */     throws QTException
/*     */   {
/* 178 */     int[] arrayOfInt1 = new int[1];
/* 179 */     TimeCodeTime localTimeCodeTime = new TimeCodeTime();
/* 180 */     int i = 0;
/* 181 */     int[] arrayOfInt2 = new int[1];
/* 182 */     TimeCodeInfo localTimeCodeInfo = new TimeCodeInfo();
/* 183 */     int j = TCGetCurrentTimeCode(QTObject.ID(paramTimeCoder), arrayOfInt1, localTimeCodeInfo.definition.getBytes(), localTimeCodeTime.getBytes(), arrayOfInt2);
/*     */
/* 188 */     StdQTException.checkError(j);
/*     */
/* 190 */     if (arrayOfInt2[0] != 0)
/* 191 */       localTimeCodeInfo.userData = new QTHandle(arrayOfInt2[0], null, false);
/*     */     else {
/* 193 */       localTimeCodeInfo.userData = null;
/*     */     }
/* 195 */     localTimeCodeInfo.counter = localTimeCodeTime.toCounter();
/* 196 */     localTimeCodeInfo.time = localTimeCodeTime;
/* 197 */     localTimeCodeInfo.frameNumber = arrayOfInt1[0];
/*     */
/* 199 */     return localTimeCodeInfo;
/*     */   }
View Full Code Here

TOP

Related Classes of quicktime.std.qtcomponents.TimeCodeTime

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.