Package quicktime.std.comp

Source Code of quicktime.std.comp.Component

/*     */ package quicktime.std.comp;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.std.StdQTException;
/*     */
/*     */ public class Component extends ComponentIdentifier
/*     */ {
/*     */   public Component(ComponentIdentifier paramComponentIdentifier)
/*     */     throws StdQTException
/*     */   {
/*  36 */     this(allocate(QTObject.ID(paramComponentIdentifier)), null);
/*     */   }
/*     */
/*     */   protected Component(ComponentIdentifier paramComponentIdentifier, int paramInt)
/*     */     throws QTException
/*     */   {
/*  48 */     this(allocate(paramComponentIdentifier, paramInt), null);
/*     */   }
/*     */
/*     */   public Component(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/*  59 */     this(allocate(paramInt1, paramInt2), null);
/*     */   }
/*     */
/*     */   protected Component(int paramInt, Object paramObject)
/*     */   {
/*  68 */     super(paramInt, paramObject);
/*     */   }
/*     */
/*     */   protected Component(int paramInt)
/*     */     throws StdQTException
/*     */   {
/*  76 */     super(allocate(paramInt), null);
/*     */   }
/*     */
/*     */   private static int allocate(ComponentIdentifier paramComponentIdentifier, int paramInt) throws StdQTException {
/*  80 */     if (paramComponentIdentifier.getInfo().getType() != paramInt) throw new StdQTException(-3000);
/*  81 */     return allocate(QTObject.ID(paramComponentIdentifier));
/*     */   }
/*     */
/*     */   private static int allocate(int paramInt1, int paramInt2)
/*     */     throws StdQTException
/*     */   {
/*  90 */     int[] arrayOfInt = new int[1];
/*  91 */     StdQTException.checkError(OpenADefaultComponent(paramInt1, paramInt2, arrayOfInt));
/*  92 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   private static int allocate(int paramInt)
/*     */     throws StdQTException
/*     */   {
/*  99 */     int[] arrayOfInt = new int[1];
/* 100 */     StdQTException.checkError(OpenAComponent(paramInt, arrayOfInt));
/* 101 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public final int count()
/*     */   {
/* 111 */     return CountComponentInstances(_ID());
/*     */   }
/*     */
/*     */   private static native short OpenADefaultComponent(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native short OpenAComponent(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native int CountComponentInstances(int paramInt);
/*     */ }

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

Related Classes of quicktime.std.comp.Component

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.