Examples of QDDimension


Examples of quicktime.qd.QDDimension

      // create a new copy of the movie
      movie = cloneMovie(mov);
      Track video = movie.getIndTrackType(1,
        StdQTConstants.videoMediaType,
        StdQTConstants.movieTrackMediaType);
      QDDimension dim_size = video.getSize();

      // aspect ratio before resizing.
      float originalaspect = (dim_size.getWidthF() / dim_size.getHeightF());

      //  aspect with new dimensions
      float changedaspect = ((float) width / (float) height);

      // scaling factor to adjust aspect ratios
      float scale = changedaspect * (1 / originalaspect);

      // get track matrix to preserve other scaling changes
      Matrix stretch = video.getMatrix();
      QDRect oldsize = new QDRect(0, 0, dim_size.getWidthF(),
        dim_size.getHeightF());
      QDRect newsize;

      // determine whether the aspect ratio needs to be checked/maintained
      if (aspect)
      {
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */   /** @deprecated */
/*     */   public QDDimension getOriginalSize()
/*     */     throws QTException
/*     */   {
/* 138 */     QDRect localQDRect = this.mMovie.getNaturalBoundsRect();
/* 139 */     return new QDDimension(localQDRect.getWidth(), localQDRect.getHeight());
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */
/*     */   /** @deprecated */
/*     */   public Dimension getInitialSize()
/*     */     throws QTException
/*     */   {
/* 108 */     QDDimension localQDDimension = getOriginalSize();
/* 109 */     return new Dimension(localQDDimension.getWidth(), localQDDimension.getHeight());
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */
/*     */   /** @deprecated */
/*     */   public QDDimension getOriginalSize()
/*     */     throws QTException
/*     */   {
/* 119 */     QDDimension localQDDimension = this.controller.getRequiredSize();
/* 120 */     QDRect localQDRect = this.controller.getMovie().getNaturalBoundsRect();
/* 121 */     return new QDDimension(localQDRect.getWidth() + localQDDimension.getWidth(), localQDRect.getHeight() + localQDDimension.getHeight());
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void setDisplayBounds(QDRect paramQDRect)
/*     */     throws QTException
/*     */   {
/* 213 */     QDDimension localQDDimension = this.controller.getRequiredSize();
/* 214 */     if ((paramQDRect.getHeight() < localQDDimension.getHeight()) || (paramQDRect.getWidth() < localQDDimension.getWidth())) {
/* 215 */       if (this.controller.getVisible()) {
/* 216 */         this.controller.setVisible(false);
/* 217 */         this.setControllerVisibleFlag = true;
/*     */       }
/* 219 */       paramQDRect.setHeight(paramQDRect.getHeight() + localQDDimension.getHeight());
/* 220 */       paramQDRect.setWidth(paramQDRect.getWidth() + localQDDimension.getWidth());
/*     */     } else {
/* 222 */       if (this.setControllerVisibleFlag) {
/* 223 */         this.controller.setVisible(true);
/* 224 */         this.setControllerVisibleFlag = false;
/*     */       }
/* 226 */       if ((!this.reserveSize) &&
/* 227 */         (!this.controller.getVisible())) {
/* 228 */         paramQDRect.setHeight(paramQDRect.getHeight() + localQDDimension.getHeight());
/* 229 */         paramQDRect.setWidth(paramQDRect.getWidth() + localQDDimension.getWidth());
/*     */       }
/*     */     }
/*     */
/* 233 */     this.controller.setBounds(paramQDRect);
/* 234 */     if (this.redrawRequired) {
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */   /** @deprecated */
/*     */   public QDDimension getOriginalSize()
/*     */     throws QTException
/*     */   {
/* 330 */     QDRect localQDRect = this.mSpriteGWorld.getPortRect();
/* 331 */     return new QDDimension(localQDRect.getWidth(), localQDRect.getHeight());
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*      */   {
/*  519 */     int[] arrayOfInt1 = new int[1];
/*  520 */     int[] arrayOfInt2 = new int[1];
/*  521 */     GetTrackDimensions(_ID(), arrayOfInt1, arrayOfInt2);
/*  522 */     StdQTException.checkError(GetMoviesError());
/*  523 */     return new QDDimension(QTUtils.Fix2X(arrayOfInt1[0]), QTUtils.Fix2X(arrayOfInt2[0]));
/*      */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */   {
/* 699 */     int[] arrayOfInt1 = { 0 };
/* 700 */     int[] arrayOfInt2 = { 0 };
/* 701 */     QTException.checkError(QTSPresGetDimensions(_ID(), QTObject.ID(paramStream), arrayOfInt1, arrayOfInt2));
/*     */
/* 703 */     return new QDDimension(QTUtils.Fix2X(arrayOfInt1[0]), QTUtils.Fix2X(arrayOfInt2[0]));
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/* 191 */     int[] arrayOfInt = { 0 };
/* 192 */     synchronized (QTNative.globalsLock) {
/* 193 */       int i = GetSpriteProperty(_ID(), 2, arrayOfInt);
/* 194 */       StdQTException.checkError(i);
/*     */     }
/* 196 */     return new QDDimension(getShortFromHandle(arrayOfInt[0], 32), getShortFromHandle(arrayOfInt[0], 34));
/*     */   }
View Full Code Here

Examples of quicktime.qd.QDDimension

/*     */   private boolean completeTransformation()
/*     */     throws QTException
/*     */   {
/* 324 */     boolean bool = false;
/* 325 */     if (this.constrained != 0) {
/* 326 */       QDDimension localQDDimension = this.target.getOriginalSize();
/* 327 */       int i = localQDDimension.getWidth();
/* 328 */       int j = localQDDimension.getHeight();
/*     */
/* 330 */       float f1 = this.deltaMatrix.getTx();
/* 331 */       float f2 = this.deltaMatrix.getTy();
/* 332 */       this.setXLeft = this.spaceRect.getX();
/* 333 */       this.setXRight = (this.spaceRect.getWidth() - i);
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.