Package quicktime

Examples of quicktime.QTException


/* 191 */     setIntAt(0, QTObject.ID(paramQTHandleRef));
/*     */
/* 193 */     switch (paramInt) {
/*     */     case 1718909296:
/* 195 */       if (QTSession.getQTVersion() == 3)
/* 196 */         throw new QTException(-50);
/* 197 */       setSize(17);
/* 198 */       setByteAt(4, (byte)0);
/* 199 */       setIntAt(5, EndianOrder.flipNativeToBigEndian32(12));
/* 200 */       setIntAt(9, EndianOrder.flipNativeToBigEndian32(1718909296));
/* 201 */       setIntAt(13, EndianOrder.flipNativeToBigEndian32(QTUtils.toOSType(paramString)));
/* 202 */       break;
/*     */     case 1835625829:
/* 204 */       if (QTSession.getQTVersion() == 3)
/* 205 */         throw new QTException(-50);
/* 206 */       byte[] arrayOfByte = QTUtils.String2PString(paramString, 255);
/* 207 */       setSize(13 + arrayOfByte.length);
/* 208 */       setByteAt(4, (byte)0);
/* 209 */       setIntAt(5, EndianOrder.flipNativeToBigEndian32(8 + arrayOfByte.length));
/* 210 */       setIntAt(9, EndianOrder.flipNativeToBigEndian32(1835625829));
/* 211 */       setBytesAt(13, arrayOfByte.length, arrayOfByte, 0);
/* 212 */       break;
/*     */     case 1702392864:
/* 214 */       concatenate(new StringHandle("X." + paramString, 2));
/* 215 */       break;
/*     */     default:
/* 217 */       throw new QTException(-50);
/*     */     }
/*     */   }
View Full Code Here


/* 266 */     setSize(paramArrayOfByte.length);
/* 267 */     copyFromArray(0, paramArrayOfByte, 0, paramArrayOfByte.length);
/* 268 */     this.dataRefType = 1970433056;
/* 269 */     int i = GetDataHandler(_ID(), getType(), 1);
/* 270 */     if (i == 0)
/* 271 */       throw new QTException(-2012);
/*     */   }
View Full Code Here

/*  48 */     super(paramString.length() + 1, false);
/*  49 */     this.strFormat = paramInt;
/*  50 */     if (this.strFormat == 1) {
/*  51 */       setCStringAt(0, paramString.length(), paramString);
/*  52 */     } else if (this.strFormat == 2) {
/*  53 */       if (paramString.length() > 255) throw new QTException(-50);
/*  54 */       setPStringAt(0, paramString.length(), paramString);
/*     */     }
/*     */     else {
/*  57 */       throw new QTException(-50);
/*     */     }
/*     */   }
View Full Code Here

/* 196 */     setIntAt(20, paramBoolean ? 1 : 0);
/*     */   }
/*     */
/*     */   public int getImagingProperty(int paramInt) throws QTException
/*     */   {
/* 201 */     if ((paramInt < 0) || (paramInt > 5)) throw new QTException(-50);
/* 202 */     int i = 24 + paramInt * 4;
/* 203 */     return getIntAt(i);
/*     */   }
View Full Code Here

/* 203 */     return getIntAt(i);
/*     */   }
/*     */
/*     */   public void setImagingProperty(int paramInt1, int paramInt2) throws QTException
/*     */   {
/* 208 */     if ((paramInt2 < 0) || (paramInt2 > 5)) throw new QTException(-50);
/* 209 */     int i = 24 + paramInt2 * 4;
/* 210 */     setIntAt(i, paramInt1);
/*     */   }
View Full Code Here

/*     */
/*     */   public QTVRTrackRefEntry(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  51 */     super(paramArrayOfByte);
/*  52 */     if (paramArrayOfByte.length != 10) throw new QTException(-50);
/*     */   }
View Full Code Here

/*    */
/*    */   public QTVRString(byte[] paramArrayOfByte)
/*    */     throws QTException
/*    */   {
/* 56 */     super(paramArrayOfByte.length, true);
/* 57 */     if (paramArrayOfByte.length < 4) throw new QTException(-50);
/* 58 */     int i = (short)(((short)paramArrayOfByte[2] << 8) + (short)paramArrayOfByte[3]);
/* 59 */     if (4 + i != paramArrayOfByte.length) throw new QTException(-50);
/* 60 */     System.arraycopy(paramArrayOfByte, 0, getBytes(), 0, paramArrayOfByte.length);
/*    */   }
View Full Code Here

/*     */
/*     */   public CursorRecord(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  50 */     super(paramArrayOfByte);
/*  51 */     if (paramArrayOfByte.length != 8) throw new QTException(-50);
/*     */   }
View Full Code Here

/*     */     case 1986618469:
/* 675 */       return new SGVideoChannel(arrayOfInt1[0], this);
/*     */     case 1836413801:
/* 677 */       return new SGMusicChannel(arrayOfInt1[0], this);
/*     */     }
/* 679 */     throw new QTException("Unknown SGChannel - please report bug");
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public static AliasHandle fromDataRef(DataRef paramDataRef)
/*     */     throws QTException
/*     */   {
/*  79 */     if (paramDataRef.getType() != 1634494835) throw new QTException(-50);
/*  80 */     return new AliasHandle(QTObject.ID(paramDataRef), paramDataRef, paramDataRef.isLocked(), false);
/*     */   }
View Full Code Here

TOP

Related Classes of quicktime.QTException

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.