Package quicktime.std.qtcomponents

Source Code of quicktime.std.qtcomponents.ImageCompressionDialog

/*     */ package quicktime.std.qtcomponents;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.io.OpenFile;
/*     */ import quicktime.jdirect.QTNative;
/*     */ import quicktime.qd.ColorTable;
/*     */ import quicktime.qd.Pict;
/*     */ import quicktime.qd.PixMap;
/*     */ import quicktime.qd.QDGraphics;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.std.StdQTException;
/*     */ import quicktime.std.image.ImageDescription;
/*     */ import quicktime.std.image.QTImage;
/*     */ import quicktime.util.QTHandle;
/*     */
/*     */ public final class ImageCompressionDialog extends CompressionDialog
/*     */ {
/*  28 */   private static boolean apriori = QTSession.apriori();
/*     */
/*     */   public ImageCompressionDialog()
/*     */     throws QTException
/*     */   {
/*  35 */     super(1768776039);
/*     */   }
/*     */
/*     */   public void defaultPixMapSettings(PixMap paramPixMap, boolean paramBoolean)
/*     */     throws StdQTException
/*     */   {
/*  46 */     StdQTException.checkError(SCDefaultPixMapSettings(_ID(), QTObject.ID(paramPixMap), (short)(paramBoolean ? 1 : 0)));
/*     */   }
/*     */
/*     */   public void defaultPictSettings(Pict paramPict, boolean paramBoolean)
/*     */     throws StdQTException
/*     */   {
/*  58 */     StdQTException.checkError(SCDefaultPictHandleSettings(_ID(), QTObject.ID(paramPict), (short)(paramBoolean ? 1 : 0)));
/*     */   }
/*     */
/*     */   public void defaultPictFileSettings(OpenFile paramOpenFile, boolean paramBoolean)
/*     */     throws StdQTException
/*     */   {
/*  70 */     StdQTException.checkError(SCDefaultPictFileSettings(_ID(), (short)QTObject.ID(paramOpenFile), (short)(paramBoolean ? 1 : 0)));
/*     */   }
/*     */
/*     */   public void requestImageSettings()
/*     */     throws StdQTException
/*     */   {
/*  80 */     requestSettings();
/*     */   }
/*     */
/*     */   public void requestSequenceSettings()
/*     */     throws StdQTException
/*     */   {
/*  88 */     synchronized (QTNative.globalsLock) {
/*  89 */       int i = SCRequestSequenceSettings(_ID());
/*  90 */       if (i == 1) throw new StdQTException(-128);
/*  91 */       StdQTException.checkError(i);
/*     */     }
/*     */   }
/*     */
/*     */   public QTImage compressImage(QDGraphics paramQDGraphics, QDRect paramQDRect)
/*     */     throws QTException
/*     */   {
/* 105 */     return ImageDescription.fromImageCompressionDialog(this, paramQDGraphics, paramQDRect);
/*     */   }
/*     */
/*     */   public Pict compressPicture(Pict paramPict)
/*     */     throws QTException
/*     */   {
/* 115 */     return Pict.fromImageCompressionDialog(this, paramPict);
/*     */   }
/*     */
/*     */   public void compressPictureFile(OpenFile paramOpenFile1, OpenFile paramOpenFile2)
/*     */     throws QTException
/*     */   {
/* 125 */     int i = SCCompressPictureFile(_ID(), (short)QTObject.ID(paramOpenFile1), (short)QTObject.ID(paramOpenFile2));
/* 126 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public SCSequence compressSequenceBegin(QDGraphics paramQDGraphics, QDRect paramQDRect)
/*     */     throws QTException
/*     */   {
/* 137 */     return new SCSequence(this, paramQDGraphics, paramQDRect);
/*     */   }
/*     */
/*     */   public void setInfoSpatialSettings(SpatialSettings paramSpatialSettings)
/*     */     throws StdQTException
/*     */   {
/* 146 */     StdQTException.checkError(SCSetInfo(_ID(), 1936749676, paramSpatialSettings.getBytes()));
/*     */   }
/*     */
/*     */   public SpatialSettings getInfoSpatialSettings()
/*     */     throws StdQTException
/*     */   {
/* 157 */     SpatialSettings localSpatialSettings = new SpatialSettings();
/* 158 */     StdQTException.checkError(SCGetInfo(_ID(), 1936749676, localSpatialSettings.getBytes()));
/*     */
/* 161 */     return localSpatialSettings;
/*     */   }
/*     */
/*     */   public void setInfoTemporalSettings(TemporalSettings paramTemporalSettings)
/*     */     throws StdQTException
/*     */   {
/* 170 */     StdQTException.checkError(SCSetInfo(_ID(), 1953526380, paramTemporalSettings.getBytes()));
/*     */   }
/*     */
/*     */   public TemporalSettings getInfoTemporalSettings()
/*     */     throws StdQTException
/*     */   {
/* 181 */     TemporalSettings localTemporalSettings = new TemporalSettings();
/* 182 */     StdQTException.checkError(SCGetInfo(_ID(), 1953526380, localTemporalSettings.getBytes()));
/*     */
/* 185 */     return localTemporalSettings;
/*     */   }
/*     */
/*     */   public void setInfoDataRateSettings(DataRateSettings paramDataRateSettings)
/*     */     throws StdQTException
/*     */   {
/* 194 */     StdQTException.checkError(SCSetInfo(_ID(), 1685217652, paramDataRateSettings.getBytes()));
/*     */   }
/*     */
/*     */   public DataRateSettings getInfoDataRateSettings()
/*     */     throws StdQTException
/*     */   {
/* 205 */     DataRateSettings localDataRateSettings = new DataRateSettings();
/* 206 */     StdQTException.checkError(SCGetInfo(_ID(), 1685217652, localDataRateSettings.getBytes()));
/*     */
/* 209 */     return localDataRateSettings;
/*     */   }
/*     */
/*     */   public void setInfoColorTable(ColorTable paramColorTable)
/*     */     throws StdQTException
/*     */   {
/* 218 */     int[] arrayOfInt = { QTObject.ID(paramColorTable) };
/* 219 */     StdQTException.checkError(SCSetInfo(_ID(), 1668052340, arrayOfInt));
/*     */   }
/*     */
/*     */   public ColorTable getInfoColorTable()
/*     */     throws QTException
/*     */   {
/* 230 */     return ColorTable.fromCompressionDialog(this);
/*     */   }
/*     */
/*     */   public void setTestImagePict(Pict paramPict, QDRect paramQDRect, int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 241 */     StdQTException.checkError(SCSetTestImagePictHandle(_ID(), QTObject.ID(paramPict), paramQDRect != null ? paramQDRect.getRect() : null, (short)paramInt));
/*     */   }
/*     */
/*     */   public void setTestImagePictFile(OpenFile paramOpenFile, QDRect paramQDRect, int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 257 */     StdQTException.checkError(SCSetTestImagePictFile(_ID(), (short)QTObject.ID(paramOpenFile), paramQDRect != null ? paramQDRect.getRect() : null, (short)paramInt));
/*     */   }
/*     */
/*     */   public void setTestImagePixMap(PixMap paramPixMap, QDRect paramQDRect, int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 273 */     StdQTException.checkError(SCSetTestImagePixMap(_ID(), QTObject.ID(paramPixMap), paramQDRect != null ? paramQDRect.getRect() : null, (short)paramInt));
/*     */   }
/*     */
/*     */   public QDGraphics newGWorld(QDRect paramQDRect, int paramInt)
/*     */     throws QTException
/*     */   {
/* 289 */     return new QDGraphics(this, paramQDRect, paramInt);
/*     */   }
/*     */
/*     */   public void setCompressFlags(int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 298 */     StdQTException.checkError(SCSetCompressFlags(_ID(), paramInt));
/*     */   }
/*     */
/*     */   public int getCompressFlags()
/*     */     throws StdQTException
/*     */   {
/* 309 */     int[] arrayOfInt = { 0 };
/* 310 */     StdQTException.checkError(SCGetCompressFlags(_ID(), arrayOfInt));
/*     */
/* 313 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public int getSequenceIDType()
/*     */     throws StdQTException
/*     */   {
/* 323 */     int[] arrayOfInt = { 0 };
/* 324 */     StdQTException.checkError(SCGetInfo(_ID(), 1936028021, arrayOfInt));
/*     */
/* 327 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public short getCodecFlagsType()
/*     */     throws StdQTException
/*     */   {
/* 336 */     short[] arrayOfShort = { 0 };
/* 337 */     StdQTException.checkError(SCGetInfo(_ID(), 1667656807, arrayOfShort));
/*     */
/* 340 */     return arrayOfShort[0];
/*     */   }
/*     */
/*     */   public void setCodecFlagsType(int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 348 */     short[] arrayOfShort = { (short)paramInt };
/* 349 */     StdQTException.checkError(SCSetInfo(_ID(), 1667656807, arrayOfShort));
/*     */   }
/*     */
/*     */   public QTHandle getCodecSettingsType()
/*     */     throws StdQTException
/*     */   {
/* 360 */     return QTHandle.fromImageCompressionDialog(this);
/*     */   }
/*     */
/*     */   public int getCodecManufacturerType()
/*     */     throws StdQTException
/*     */   {
/* 369 */     int[] arrayOfInt = { 0 };
/* 370 */     StdQTException.checkError(SCGetInfo(_ID(), 1668114034, arrayOfInt));
/*     */
/* 373 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   private static native int SCDefaultPixMapSettings(int paramInt1, int paramInt2, short paramShort);
/*     */
/*     */   private static native int SCDefaultPictHandleSettings(int paramInt1, int paramInt2, short paramShort);
/*     */
/*     */   private static native int SCDefaultPictFileSettings(int paramInt, short paramShort1, short paramShort2);
/*     */
/*     */   private static native int SCRequestSequenceSettings(int paramInt);
/*     */
/*     */   private static native int SCCompressPictureFile(int paramInt, short paramShort1, short paramShort2);
/*     */
/*     */   private static native int SCGetInfo(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native int SCSetInfo(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native int SCSetInfo(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native int SCGetInfo(int paramInt1, int paramInt2, short[] paramArrayOfShort);
/*     */
/*     */   private static native int SCSetInfo(int paramInt1, int paramInt2, short[] paramArrayOfShort);
/*     */
/*     */   private static native int SCGetInfo(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int SCSetInfo(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int SCSetTestImagePictHandle(int paramInt1, int paramInt2, byte[] paramArrayOfByte, short paramShort);
/*     */
/*     */   private static native int SCSetTestImagePictFile(int paramInt, short paramShort1, byte[] paramArrayOfByte, short paramShort2);
/*     */
/*     */   private static native int SCSetTestImagePixMap(int paramInt1, int paramInt2, byte[] paramArrayOfByte, short paramShort);
/*     */
/*     */   private static native int SCSetCompressFlags(int paramInt1, int paramInt2);
/*     */
/*     */   private static native int SCGetCompressFlags(int paramInt, int[] paramArrayOfInt);
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.std.qtcomponents.ImageCompressionDialog
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.std.qtcomponents.ImageCompressionDialog

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.