Examples of QTHandle


Examples of quicktime.util.QTHandle

/* 368 */         QTUtils.reclaimMemory();
/*     */         try {
/* 370 */           return new Region(localQDGraphics.getPixMap());
/*     */         } catch (QTException localQTException2) {
/* 372 */           if (localQTException2.errorCode() == -500) {
/* 373 */             new QTHandle(512000, false);
/* 374 */             return new Region(localQDGraphics.getPixMap());
/*     */           }
/*     */         }
/*     */       }
/* 378 */       throw localQTException1;
View Full Code Here

Examples of quicktime.util.QTHandle

/*     */
/*     */   private static QTHandle readBytesIntoHandle(InputStream paramInputStream) throws IOException, QTException {
/* 431 */     byte[] arrayOfByte = new byte[paramInputStream.available()];
/* 432 */     int i = paramInputStream.read(arrayOfByte);
/* 433 */     if ((i < 0) || (i != arrayOfByte.length)) throw new IOException("Problem in reading bytes from InputStream");
/* 434 */     return new QTHandle(arrayOfByte);
/*     */   }
View Full Code Here

Examples of quicktime.util.QTHandle

/*     */   private static Movie importMovie(QTHandle paramQTHandle, int paramInt) throws QTException {
/* 504 */     if (paramInt == 0) throw new QTException(-2003); try
/*     */     {
/* 506 */       MovieImporter localMovieImporter = new MovieImporter(paramInt);
/* 507 */       Movie localMovie = new Movie(1);
/* 508 */       localMovie.setDefaultDataRef(new DataRef(new QTHandle()));
/* 509 */       localMovieImporter.fromHandle(paramQTHandle, localMovie, null, 0, 1);
/* 510 */       return localMovie; } catch (QTException localQTException) {
/*     */     }
/* 512 */     return null;
/*     */   }
View Full Code Here

Examples of quicktime.util.QTHandle

/* 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();
View Full Code Here
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.