Package quicktime

Examples of quicktime.QTException


/*     */
/*     */   public int getMusicEvent(int paramInt)
/*     */     throws QTException
/*     */   {
/* 448 */     if (paramInt * 4 >= getSize() - 4)
/* 449 */       throw new QTException(-50);
/* 450 */     return getIntAt(paramInt * 4);
/*     */   }
View Full Code Here


/*     */
/*     */   public void setMusicEvent(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 465 */     if (paramInt1 * 4 >= getSize())
/* 466 */       throw new QTException(-50);
/* 467 */     if ((paramInt1 * 4 == getSize() - 4) &&
/* 468 */       (paramInt2 != EndianOrder.flipNativeToBigEndian32(1610612736))) {
/* 469 */       throw new QTException(-50);
/*     */     }
/* 471 */     setIntAt(paramInt1 * 4, paramInt2);
/*     */   }
View Full Code Here

/*     */
/*     */   public long getXMusicEvent(int paramInt)
/*     */     throws QTException
/*     */   {
/* 483 */     if (paramInt * 4 >= getSize() - 8)
/* 484 */       throw new QTException(-50);
/* 485 */     return getLongAt(paramInt * 4);
/*     */   }
View Full Code Here

/*     */
/*     */   public void setXMusicEvent(int paramInt, long paramLong)
/*     */     throws QTException
/*     */   {
/* 497 */     if (paramInt * 4 >= getSize() - 8)
/* 498 */       throw new QTException(-50);
/* 499 */     setLongAt(paramInt * 4, paramLong);
/*     */   }
View Full Code Here

/*     */
/*     */   public void setNoteRequest(int paramInt1, int paramInt2, NoteRequest paramNoteRequest)
/*     */     throws QTException
/*     */   {
/* 529 */     if (paramInt1 * 4 >= getSize() - 92) {
/* 530 */       throw new QTException(-50);
/*     */     }
/*     */
/* 533 */     setIntAt(paramInt1 * 4, stuffGeneralEvent_Header(paramInt2, 23));
/* 534 */     copyFromArray(paramInt1 * 4 + 4, paramNoteRequest.getBytes(), 0, paramNoteRequest.getSize());
/*     */
View Full Code Here

/*     */
/*     */   public NoteRequest getNoteRequest(int paramInt)
/*     */     throws QTException
/*     */   {
/* 553 */     if (paramInt * 4 >= getSize() - 92) {
/* 554 */       throw new QTException(-50);
/*     */     }
/* 556 */     int i = getIntAt(paramInt * 4 + 84);
/*     */
/* 558 */     if (generalSubtype_Footer(i) != 1) {
/* 559 */       throw new QTException(-50);
/*     */     }
/* 561 */     NoteRequest localNoteRequest = new NoteRequest();
/* 562 */     copyToArray(paramInt * 4, localNoteRequest.getBytes(), 0, localNoteRequest.getSize());
/* 563 */     return localNoteRequest;
/*     */   }
View Full Code Here

/* 592 */     if (paramAtomicInstrument.getSize() % 4 != 0) {
/* 593 */       i++;
/*     */     }
/* 595 */     int j = i + 2;
/* 596 */     if (paramInt1 * 4 >= getSize() - j * 4) {
/* 597 */       throw new QTException(-50);
/*     */     }
/* 599 */     setIntAt(paramInt1 * 4, stuffGeneralEvent_Header(paramInt2, j));
/* 600 */     copyFromHandle(paramInt1 * 4 + 4, paramAtomicInstrument, 0, paramAtomicInstrument.getSize());
/* 601 */     setIntAt(paramInt1 * 4 + 4 + i * 4, stuffGeneralEvent_Footer(6, j));
/*     */   }
View Full Code Here

/*     */
/*     */   public AtomicInstrument getAtomicInstrument(int paramInt)
/*     */     throws QTException
/*     */   {
/* 616 */     if (paramInt * 4 > getSize() - 4) {
/* 617 */       throw new QTException(-50);
/*     */     }
/*     */
/* 620 */     int i = getIntAt(paramInt * 4 - 4);
/*     */
/* 623 */     int j = generalLength(i) * 4;
/*     */
/* 626 */     if (paramInt * 4 - 4 + j > getSize()) {
/* 627 */       throw new QTException(-50);
/*     */     }
/*     */
/* 630 */     int k = getIntAt(paramInt * 4 - 4 + j - 4);
/*     */
/* 633 */     if (generalSubtype_Footer(k) != 6) {
/* 634 */       throw new QTException(-50);
/*     */     }
/*     */
/* 637 */     int m = makeAndCopyHandle(paramInt * 4, j - 8);
/* 638 */     return new AtomicInstrument(m, null);
/*     */   }
View Full Code Here

/*  51 */         localGenericMedia = (GenericMedia)localConstructor.newInstance(arrayOfObject);
/*     */       }
/*  53 */       localGenericMedia.setIDs(paramInt1, paramTrack);
/*  54 */       return localGenericMedia;
/*     */     } catch (Exception localException) {
/*  56 */       throw new QTException(localException.toString());
/*     */     }
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public static Media newFromType(int paramInt1, Track paramTrack, int paramInt2, DataRef paramDataRef)
/*     */     throws QTException
/*     */   {
/* 123 */     if ((paramInt1 == 0) || (paramTrack == null)) throw new QTException(-50);
/*     */
/* 125 */     switch (paramInt1) { case 1735291491:
/* 126 */       return new BaseMedia(paramTrack, paramInt2, paramDataRef);
/*     */     case 1297106247:
/* 127 */       return new MPEGMedia(paramTrack, paramInt2, paramDataRef);
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.