Package quicktime.std.movies

Examples of quicktime.std.movies.Track


/*     */   public boolean doUserDialog(Movie paramMovie, Track paramTrack, int paramInt1, int paramInt2)
/*     */     throws StdQTException
/*     */   {
/* 199 */     byte[] arrayOfByte = new byte[1];
/* 200 */     Movie localMovie = paramMovie;
/* 201 */     Track localTrack = paramTrack;
/* 202 */     int i = paramInt1;
/* 203 */     int j = paramInt2;
/* 204 */     int k = _ID();
/*     */
/* 206 */     int m = 0;
View Full Code Here


/*     */   }
/*     */
/*     */   private static Movie checkMovie(Movie paramMovie) throws QTException {
/*     */     try {
/* 494 */       if (paramMovie.getTrackCount() > 1) return paramMovie;
/* 495 */       Track localTrack = paramMovie.getIndTrack(1);
/* 496 */       Media localMedia = Media.getTrackMedia(localTrack);
/* 497 */       if (localMedia.getSampleCount() > 1) {
/* 498 */         paramMovie.setActive(true);
/* 499 */         return paramMovie;
/*     */       }
/*     */
/* 502 */       localMedia.disposeQTObject();
/* 503 */       localTrack.disposeQTObject();
/* 504 */       paramMovie.disposeQTObject(); } catch (QTException localQTException) {
/*     */     }
/* 506 */     return null;
/*     */   }
View Full Code Here

/*     */
/*     */   public void pickArrangement(String paramString1, Track paramTrack, String paramString2)
/*     */     throws StdQTException
/*     */   {
/* 114 */     String str1 = paramString1;
/* 115 */     Track localTrack = paramTrack;
/* 116 */     String str2 = paramString2;
/* 117 */     int i = _ID();
/*     */
/* 119 */     if (QTSession.isCurrentOS(4)) {
/* 120 */       this.res = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { private final int val$f_i;
View Full Code Here

/*     */   }
/*     */
/*     */   private static Movie checkMovie(Movie paramMovie) throws QTException {
/*     */     try {
/* 473 */       if (paramMovie.getTrackCount() > 1) return paramMovie;
/* 474 */       Track localTrack = paramMovie.getIndTrack(1);
/* 475 */       Media localMedia = Media.getTrackMedia(localTrack);
/* 476 */       if (localMedia.getSampleCount() > 1) {
/* 477 */         paramMovie.setActive(true);
/* 478 */         return paramMovie;
/*     */       }
/*     */
/* 481 */       localMedia.disposeQTObject();
/* 482 */       localTrack.disposeQTObject();
/* 483 */       paramMovie.disposeQTObject(); } catch (QTException localQTException) {
/*     */     }
/* 485 */     return null;
/*     */   }
View Full Code Here

/*     */     throws QTException
/*     */   {
/* 274 */     int i = 0;
/* 275 */     int j = 600;
/*     */
/* 277 */     Track localTrack = paramMovie.addTrack(this.imageDescription.getWidth(), this.imageDescription.getHeight(), i);
/*     */
/* 280 */     VideoMedia localVideoMedia = new VideoMedia(localTrack, j);
/*     */
/* 282 */     localVideoMedia.beginEdits();
/* 283 */     for (int k = 0; k < size(); k++) {
/* 284 */       EncodedImage localEncodedImage = getNth(k + 1);
/* 285 */       QTHandle localQTHandle = null;
/* 286 */       if ((localEncodedImage instanceof RawEncodedImage)) {
/* 287 */         localQTHandle = new QTHandle((RawEncodedImage)localEncodedImage, 0, localEncodedImage.getSize());
/*     */       }
/*     */       else
/*     */       {
/*     */         Object localObject;
/* 288 */         if ((localEncodedImage instanceof IntEncodedImage)) {
/* 289 */           localQTHandle = new QTHandle(localEncodedImage.getSize(), false);
/* 290 */           localObject = ((IntEncodedImage)localEncodedImage).getInts();
/* 291 */           localQTHandle.copyFromArray(0, (int[])localObject, 0, localObject.length);
/*     */         } else {
/* 293 */           localQTHandle = new QTHandle(localEncodedImage.getSize(), false);
/* 294 */           localObject = ((ByteEncodedImage)localEncodedImage).getBytes();
/* 295 */           localQTHandle.copyFromArray(0, (byte[])localObject, 0, localObject.length);
/*     */         }
/*     */       }
/* 297 */       localVideoMedia.addSample(localQTHandle, 0, localQTHandle.getSize(), (int)(600.0F / paramFloat), this.imageDescription, 1, 0);
/*     */
/* 304 */       if (k % 5 == 0)
/* 305 */         QTUtils.reclaimMemory();
/*     */     }
/* 307 */     localVideoMedia.endEdits();
/*     */
/* 309 */     k = 0;
/* 310 */     int m = 0;
/* 311 */     int n = 1;
/* 312 */     localTrack.insertMedia(k, m, localVideoMedia.getDuration(), n);
/* 313 */     QTUtils.reclaimMemory();
/*     */   }
View Full Code Here

TOP

Related Classes of quicktime.std.movies.Track

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.