Package quicktime.std.qtcomponents

Source Code of quicktime.std.qtcomponents.TimeCodeDescription

/*     */ package quicktime.std.qtcomponents;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.std.movies.media.SampleDescription;
/*     */ import quicktime.util.EndianDescriptor;
/*     */ import quicktime.util.EndianFlipSpec;
/*     */ import quicktime.util.QTUtils;
/*     */
/*     */ public final class TimeCodeDescription extends SampleDescription
/*     */ {
/*  28 */   private static boolean apriori = QTSession.apriori();
/*     */   private static EndianDescriptor ed;
/*     */   public static final int kNativeSize = 38;
/*     */
/*     */   protected static EndianDescriptor makeED()
/*     */   {
/*  33 */     EndianDescriptor localEndianDescriptor = SampleDescription.makeED();
/*     */
/*  35 */     EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(16, 4, 1);
/*  36 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/*     */
/*  38 */     EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(20, 4, 3);
/*  39 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/*     */
/*  41 */     return localEndianDescriptor;
/*     */   }
/*     */
/*     */   public static EndianDescriptor getEndianDescriptor()
/*     */   {
/*  49 */     if (ed == null)
/*  50 */       ed = makeED();
/*  51 */     return ed;
/*     */   }
/*     */
/*     */   public TimeCodeDescription()
/*     */     throws QTException
/*     */   {
/*  78 */     super(38, true, 1953325924);
/*     */   }
/*     */   private TimeCodeDescription(int paramInt) {
/*  81 */     super(paramInt, null, false);
/*     */   }
/*     */
/*     */   public Object clone() {
/*  85 */     return new TimeCodeDescription(makeAndCopyHandle());
/*     */   }
/*     */
/*     */   public TimeCodeDef getTimeCodeDef()
/*     */   {
/*  92 */     TimeCodeDef localTimeCodeDef = new TimeCodeDef(lockAndDeref(20));
/*  93 */     if (!isLocked()) unlock();
/*  94 */     return localTimeCodeDef;
/*     */   }
/*     */
/*     */   public void setTimeCodeDef(TimeCodeDef paramTimeCodeDef)
/*     */   {
/* 101 */     copyArrayToPointer(paramTimeCodeDef.getBytes(), 0, lockAndDeref(20), 0, 14);
/* 102 */     if (!isLocked()) unlock();
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 107 */     return getClass().getName() + "[format=" + QTUtils.fromOSType(getDataFormat()) + getTimeCodeDef() + "]";
/*     */   }
/*     */
/*     */   private static native void copyArrayToPointer(byte[] paramArrayOfByte, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.std.qtcomponents.TimeCodeDescription
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.std.qtcomponents.TimeCodeDescription

TOP
Copyright © 2018 www.massapi.com. 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.