Package quicktime.qd

Examples of quicktime.qd.QDGraphics


/*     */   void doSetGWorld(boolean paramBoolean)
/*     */     throws QTException
/*     */   {
/* 118 */     if ((this.mClient instanceof QTDrawable)) {
/* 119 */       QTDrawable localQTDrawable = (QTDrawable)this.mClient;
/*     */       QDGraphics localQDGraphics1;
/* 121 */       if ((paramBoolean) && (this.canvas.getPeer() != null))
/* 122 */         localQDGraphics1 = this.canvas.getPort();
/*     */       else {
/* 124 */         localQDGraphics1 = QDGraphics.scratch;
/*     */       }
/* 126 */       QDGraphics localQDGraphics2 = localQTDrawable.getGWorld();
/* 127 */       if (!localQDGraphics1.equals(localQDGraphics2))
/*     */       {
/* 132 */         localQTDrawable.setGWorld(localQDGraphics1);
/* 133 */         if (paramBoolean) {
/* 134 */           QTUtils.checkFreeMemory();
View Full Code Here


/*     */
/*     */   /** @deprecated */
/*     */   public static ImageDataSequence makeTransparent(ImageSpec paramImageSpec, QDColor paramQDColor)
/*     */     throws QTException
/*     */   {
/*  59 */     return makeTransparent(paramImageSpec, paramQDColor, new QDGraphics(16, paramImageSpec.getDescription().getBounds()), null, null);
/*     */   }
View Full Code Here

/* 162 */     localDSequenceFromMemory.setGWorld(paramQDGraphics);
/* 163 */     ImageDataSequence localImageDataSequence1 = new ImageDataSequence();
/*     */
/* 165 */     CSequenceToMemory localCSequenceToMemory = new CSequenceToMemory(2);
/*     */
/* 167 */     QDGraphics localQDGraphics1 = null;
/* 168 */     QDGraphics localQDGraphics2 = null;
/* 169 */     PixMap localPixMap2 = null;
/* 170 */     ImageDescription localImageDescription = null;
/* 171 */     ImageSequenceDataSource localImageSequenceDataSource = null;
/* 172 */     if (j != 0) {
/* 173 */       localQDGraphics1 = new QDGraphics(localQDRect);
/* 174 */       localQDGraphics2 = new QDGraphics(8, localQDRect);
/* 175 */       localPixMap2 = localQDGraphics2.getPixMap();
/* 176 */       localImageDescription = new ImageDescription(localPixMap2);
/* 177 */       localImageDescription.lock();
/*     */     }
/*     */
/* 180 */     if ((paramImageSpec instanceof ImageDataSequence)) {
/* 181 */       ImageDataSequence localImageDataSequence2 = (ImageDataSequence)paramImageSpec;
/* 182 */       for (int k = 1; k <= localImageDataSequence2.size(); k++)
/*     */       {
/* 184 */         if (j != 0) {
/* 185 */           localCSequenceToMemory.begin(localQDGraphics1, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/*     */
/* 196 */           localImageSequenceDataSource = new ImageSequenceDataSource(localCSequenceToMemory.getSequence(), 1768776048, 1, localImageDescription);
/* 197 */           localImageSequenceDataSource.setSourceData(RawEncodedImage.fromPixMap(localPixMap2));
/*     */
/* 199 */           localQDGraphics1.setBackColor(paramQDColor);
/* 200 */           localQDGraphics1.eraseRect(null);
/* 201 */           localQDGraphics2.setBackColor(QDColor.white);
/* 202 */           localQDGraphics2.eraseRect(null);
/* 203 */           localQDGraphics2.setForeColor(QDColor.black);
/* 204 */           localQDGraphics2.paintRgn(paramRegion != null ? paramRegion : paramArrayOfRegion[(k - 1)]);
/*     */
/* 207 */           localCSequenceToMemory.compressFrame(localQDGraphics1, localQDRect, 0);
/*     */
/* 209 */           localCSequenceToMemory.getSequence().setPrev(localQDGraphics1, null);
/*     */
/* 211 */           paramQDGraphics.setBackColor(paramQDColor);
/* 212 */           paramQDGraphics.eraseRect(null);
/*     */         } else {
/* 214 */           localCSequenceToMemory.begin(paramQDGraphics, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/*     */
/* 225 */           paramQDGraphics.setBackColor(paramQDColor);
/* 226 */           paramQDGraphics.eraseRect(null);
/*     */
/* 228 */           localCSequenceToMemory.compressFrame(paramQDGraphics, localQDRect, 4);
/*     */         }
/*     */
/* 232 */         localDSequenceFromMemory.redraw(null);
/*     */
/* 234 */         localCSequenceToMemory.compressFrame(paramQDGraphics, localQDRect, j != 0 ? 0 : 4);
/*     */
/* 237 */         if (k == 1) {
/* 238 */           localImageDataSequence1.setDescription(localCSequenceToMemory.getDescription());
/* 239 */           localImageDataSequence1.getDescription().setFrameCount(localImageDataSequence2.size());
/*     */         }
/*     */
/* 243 */         localImageDataSequence1.append((EncodedImage)localCSequenceToMemory.getFrames().elementAt(1));
/*     */
/* 245 */         localDSequenceFromMemory.setFrameNext();
/*     */
/* 247 */         if (k % 3 == 0) QTUtils.reclaimMemory();
/*     */       }
/*     */     }
/* 250 */     else { if (j != 0) {
/* 251 */         localCSequenceToMemory.begin(localQDGraphics1, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/*     */
/* 261 */         localImageSequenceDataSource = new ImageSequenceDataSource(localCSequenceToMemory.getSequence(), 1768776048, 1, localImageDescription);
/* 262 */         localImageSequenceDataSource.setSourceData(RawEncodedImage.fromPixMap(localPixMap2));
/*     */
/* 264 */         localQDGraphics1.setBackColor(paramQDColor);
/* 265 */         localQDGraphics1.eraseRect(null);
/* 266 */         localQDGraphics2.setBackColor(QDColor.white);
/* 267 */         localQDGraphics2.eraseRect(null);
/* 268 */         localQDGraphics2.setForeColor(QDColor.black);
/* 269 */         localQDGraphics2.paintRgn(paramRegion != null ? paramRegion : paramArrayOfRegion[0]);
/*     */
/* 272 */         localCSequenceToMemory.compressFrame(localQDGraphics1, localQDRect, 0);
/*     */
/* 274 */         localCSequenceToMemory.getSequence().setPrev(localQDGraphics1, null);
/*     */
View Full Code Here

/*     */
/* 351 */     Matrix localMatrix = paramQTDrawable.getMatrix().copy();
/* 352 */     QDRect localQDRect = new QDRect(paramQTDrawable.getOriginalSize());
/* 353 */     localMatrix.transformRect(localQDRect);
/*     */
/* 355 */     QDGraphics localQDGraphics = new QDGraphics(1, localQDRect);
/* 356 */     localQDGraphics.setBackColor(QDColor.white);
/* 357 */     localQDGraphics.eraseRect(localQDRect);
/* 358 */     paramQTDrawable.setGWorld(localQDGraphics);
/* 359 */     paramQTDrawable.redraw(null);
/* 360 */     paramQTDrawable.setGWorld(getGWorld());
/*     */     try
/*     */     {
/* 363 */       return new Region(localQDGraphics.getPixMap());
/*     */     } catch (QTException localQTException1) {
/* 365 */       if ((localQTException1.errorCode() == -108) || (localQTException1.errorCode() == -500))
/*     */       {
/* 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

/*  210 */         if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/*  211 */           GetGWorld(savedPort, savedDevice);
/*      */         }
/*  213 */         SetGWorld(this.currentPort, 0);
/*      */
/*  215 */         QDGraphics localQDGraphics = getPort();
/*  216 */         Region localRegion = localQDGraphics.getVisClipRgn();
/*      */
/*  218 */         i = MCIdle(_ID());
/*      */
/*  220 */         if ((QTSession.getJavaVersion() == 65539) && (QTSession.isCurrentOS(4))) {
/*  221 */           long l = System.currentTimeMillis();
View Full Code Here

/*     */   }
/*     */
/*     */   public QDGraphics newGWorld(QDRect paramQDRect, int paramInt)
/*     */     throws QTException
/*     */   {
/* 289 */     return new QDGraphics(this, paramQDRect, paramInt);
/*     */   }
View Full Code Here

/* 270 */         SWCompositor localSWCompositor = (SWCompositor)paramQTDrawable;
/*     */
/* 272 */         this.gwBounds = localSWCompositor.getDisplayBounds();
/* 273 */         this.gw = localSWCompositor.getGWorld();
/* 274 */         if (this.gw == null) {
/* 275 */           this.gw = new QDGraphics(this.gwBounds);
/* 276 */           localSWCompositor.setGWorld(this.gw);
/*     */         }
/*     */
/* 279 */         if ((QTSession.isCurrentOS(4)) && (useMacOSXAcceleration)) {
/* 280 */           boolean bool = false;
View Full Code Here

/* 305 */       boolean bool = false;
/*     */
/* 307 */       QTImageProducer localQTImageProducer = (QTImageProducer)paramImageProducer;
/*     */
/* 309 */       Dimension localDimension = localQTImageProducer.getSize();
/* 310 */       QDGraphics localQDGraphics = localQTImageProducer.getGWorld();
/* 311 */       this.gw = localQDGraphics;
/*     */
/* 313 */       BufferedImage localBufferedImage = MacDirectColorModel.GetWrappedGWorldImage(QTObject.ID(localQDGraphics), 32, localDimension.width, localDimension.height, bool);
/*     */
/* 315 */       return localBufferedImage;
View Full Code Here

/*     */       {
/* 343 */         if (((this.client instanceof SWCompositor)) || ((this.client instanceof Compositor))) {
/* 344 */           SWCompositor localSWCompositor = (SWCompositor)this.client;
/*     */
/* 346 */           this.gwBounds = new QDRect(getX(), getY(), paramInt3, paramInt4);
/* 347 */           this.gw = new QDGraphics(this.gwBounds);
/* 348 */           localSWCompositor.setGWorld(this.gw);
/*     */
/* 350 */           if ((QTSession.isCurrentOS(4)) && (useMacOSXAcceleration)) {
/* 351 */             boolean bool = false;
/* 352 */             this.image = MacDirectColorModel.GetWrappedGWorldImage(QTObject.ID(this.gw), 32, this.gwBounds.getWidth(), this.gwBounds.getHeight(), bool);
View Full Code Here

/*  82 */       paramQTDrawable = new MoviePlayer(((QTPlayer)paramQTDrawable).getMovieController().getMovie());
/*  83 */     this.qtSource = paramQTDrawable;
/*  84 */     setRedrawing(requiresRedrawing(paramQTDrawable));
/*  85 */     this.singleFrame = (!isRedrawing());
/*  86 */     this.size = paramDimension;
/*  87 */     this.gw = new QDGraphics(new QDRect(this.size));
/*  88 */     paramQTDrawable.setDisplayBounds(new QDRect(this.size));
/*  89 */     paramQTDrawable.setGWorld(this.gw);
/*  90 */     this.pm = this.gw.getPixMap();
/*  91 */     this.rowInts = (this.pm.getRowBytes() / 4);
/*  92 */     this.pixels = new int[this.rowInts * this.size.height];
 
View Full Code Here

TOP

Related Classes of quicktime.qd.QDGraphics

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.