Package quicktime.streaming

Source Code of quicktime.streaming.SourcerTrackParams

/*     */ package quicktime.streaming;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.std.movies.Track;
/*     */ import quicktime.util.QTPointer;
/*     */
/*     */ public final class SourcerTrackParams extends QTPointer
/*     */ {
/*  25 */   private static boolean apriori = QTSession.apriori();
/*     */   public static final int kNativeSize = 32;
/* 196 */   private Track itsTrack = null;
/* 197 */   private SourcerLoopParams itsParams = null;
/*     */
/*     */   SourcerTrackParams()
/*     */     throws QTException
/*     */   {
/*  41 */     super(32, true);
/*     */   }
/*     */
/*     */   SourcerTrackParams(byte[] paramArrayOfByte) throws QTException {
/*  45 */     super(paramArrayOfByte);
/*     */   }
/*     */
/*     */   public SourcerTrackParams(int paramInt, Track paramTrack)
/*     */     throws QTException
/*     */   {
/*  55 */     this(1, paramInt, paramTrack, 0L, 0L, null);
/*     */   }
/*     */
/*     */   public SourcerTrackParams(int paramInt, Track paramTrack, long paramLong1, long paramLong2, SourcerLoopParams paramSourcerLoopParams)
/*     */     throws QTException
/*     */   {
/*  68 */     this(1, paramInt, paramTrack, paramLong1, paramLong2, paramSourcerLoopParams);
/*     */   }
/*     */
/*     */   public SourcerTrackParams(int paramInt1, int paramInt2, Track paramTrack, long paramLong1, long paramLong2, SourcerLoopParams paramSourcerLoopParams)
/*     */     throws QTException
/*     */   {
/*  83 */     super(32, true);
/*  84 */     setVersion(paramInt1);
/*  85 */     setFlags(paramInt2);
/*  86 */     setTrack(paramTrack);
/*  87 */     setTrackStartOffset(paramLong1);
/*  88 */     setDuration(paramLong2);
/*  89 */     setLoopParams(paramSourcerLoopParams);
/*     */   }
/*     */
/*     */   public void setVersion(int paramInt)
/*     */   {
/*  97 */     setIntAt(0, paramInt);
/*     */   }
/*     */
/*     */   public int getVersion()
/*     */   {
/* 105 */     return getIntAt(0);
/*     */   }
/*     */
/*     */   public void setFlags(int paramInt)
/*     */   {
/* 113 */     setIntAt(4, paramInt);
/*     */   }
/*     */
/*     */   public int getFlags()
/*     */   {
/* 121 */     return getIntAt(4);
/*     */   }
/*     */
/*     */   public void setTrack(Track paramTrack)
/*     */     throws QTRuntimeException
/*     */   {
/* 130 */     if (paramTrack != null) {
/* 131 */       setIntAt(8, QTObject.ID(paramTrack));
/* 132 */       this.itsTrack = paramTrack;
/*     */     } else {
/* 134 */       throw new QTRuntimeException("Track must not be null");
/*     */     }
/*     */   }
/*     */
/*     */   public Track getTrack()
/*     */   {
/* 142 */     return this.itsTrack;
/*     */   }
/*     */
/*     */   public void setTrackStartOffset(long paramLong)
/*     */   {
/* 150 */     setLongAt(12, paramLong);
/*     */   }
/*     */
/*     */   public long getTrackStartOffset()
/*     */   {
/* 157 */     return getLongAt(12);
/*     */   }
/*     */
/*     */   public void setDuration(long paramLong)
/*     */   {
/* 165 */     setLongAt(20, paramLong);
/*     */   }
/*     */
/*     */   public long getDuration()
/*     */   {
/* 172 */     return getLongAt(20);
/*     */   }
/*     */
/*     */   public void setLoopParams(SourcerLoopParams paramSourcerLoopParams)
/*     */   {
/* 180 */     if (paramSourcerLoopParams != null) {
/* 181 */       setIntAt(28, QTObject.ID(paramSourcerLoopParams));
/* 182 */       this.itsParams = paramSourcerLoopParams;
/*     */     } else {
/* 184 */       setIntAt(28, 0);
/* 185 */       this.itsParams = null;
/*     */     }
/*     */   }
/*     */
/*     */   public SourcerLoopParams getLoopParams()
/*     */   {
/* 193 */     return this.itsParams;
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 205 */     return getClass().getName() + "[version=" + getVersion() + ",flags=" + getFlags() + ",track=" + getTrack() + ",trackStartOffset" + getTrackStartOffset() + ",duration" + getDuration() + ",loopParams" + getLoopParams() + "]";
/*     */   }
/*     */ }

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

Related Classes of quicktime.streaming.SourcerTrackParams

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.