/* */ package quicktime.std.image;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.io.QTFile;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.GDevice;
/* */ import quicktime.qd.Pict;
/* */ import quicktime.qd.QDColor;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.qd.Region;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.comp.Component;
/* */ import quicktime.std.movies.AtomContainer;
/* */ import quicktime.std.movies.media.DataRef;
/* */ import quicktime.std.movies.media.UserData;
/* */ import quicktime.util.ByteEncodedImage;
/* */ import quicktime.util.EncodedImage;
/* */ import quicktime.util.IntEncodedImage;
/* */ import quicktime.util.QTHandle;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.RawEncodedImage;
/* */
/* */ public final class GraphicsImporter extends Component
/* */ {
/* 37 */ private static boolean apriori = QTSession.apriori();
/* */
/* 44 */ private static final int[] savedPort = { 0 };
/* 45 */ private static final int[] savedDevice = { 0 };
/* */
/* 201 */ private Object ref = null;
/* */
/* */ public static final GraphicsImporter fromGraphicsExporter(GraphicsExporter paramGraphicsExporter)
/* */ throws QTException
/* */ {
/* 54 */ return new GraphicsImporter(paramGraphicsExporter);
/* */ }
/* */
/* */ private GraphicsImporter(GraphicsExporter paramGraphicsExporter)
/* */ throws QTException
/* */ {
/* 67 */ super(allocate(paramGraphicsExporter), null);
/* */ }
/* */
/* */ public GraphicsImporter(int paramInt)
/* */ throws QTException
/* */ {
/* 76 */ super(1735551344, paramInt);
/* */ }
/* */
/* */ public GraphicsImporter(QTFile paramQTFile)
/* */ throws QTException
/* */ {
/* 85 */ super(allocate(paramQTFile), null);
/* */ }
/* */
/* */ public GraphicsImporter(QTFile paramQTFile, int paramInt)
/* */ throws QTException
/* */ {
/* 95 */ super(allocate(paramQTFile, paramInt), null);
/* */ }
/* */
/* */ public GraphicsImporter(DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 103 */ super(allocate(paramDataRef), null);
/* 104 */ this.ref = paramDataRef;
/* */ }
/* */
/* */ public GraphicsImporter(DataRef paramDataRef, int paramInt)
/* */ throws QTException
/* */ {
/* 114 */ super(allocate(paramDataRef, paramInt), null);
/* 115 */ this.ref = paramDataRef;
/* */ }
/* */
/* */ private static int allocate(QTFile paramQTFile) throws QTException {
/* 119 */ int[] arrayOfInt = { 0 };
/* 120 */ int i = 0;
/* */
/* 122 */ synchronized (QTNative.globalsLock) {
/* 123 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 124 */ GetGWorld(savedPort, savedDevice);
/* 125 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 126 */ i = GetGraphicsImporterForFile(paramQTFile.getFSSpec(true, 256), arrayOfInt);
/* 127 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 128 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 130 */ StdQTException.checkError(i);
/* 131 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static int allocate(GraphicsExporter paramGraphicsExporter) throws QTException {
/* 135 */ int[] arrayOfInt = { 0 };
/* 136 */ int i = GraphicsExportGetInputGraphicsImporter(QTObject.ID(paramGraphicsExporter), arrayOfInt);
/* */
/* 138 */ StdQTException.checkError(i);
/* 139 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static int allocate(QTFile paramQTFile, int paramInt) throws QTException {
/* 143 */ int[] arrayOfInt = { 0 };
/* 144 */ int i = 0;
/* */
/* 146 */ synchronized (QTNative.globalsLock) {
/* 147 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 148 */ GetGWorld(savedPort, savedDevice);
/* 149 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* */
/* 151 */ i = GetGraphicsImporterForFileWithFlags(paramQTFile.getFSSpec(true, 256), arrayOfInt, paramInt);
/* */
/* 154 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 155 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 157 */ StdQTException.checkError(i);
/* 158 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static int allocate(DataRef paramDataRef) throws QTException {
/* 162 */ int[] arrayOfInt = { 0 };
/* 163 */ int i = 0;
/* */
/* 165 */ synchronized (QTNative.globalsLock) {
/* 166 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 167 */ GetGWorld(savedPort, savedDevice);
/* 168 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 169 */ i = GetGraphicsImporterForDataRef(QTObject.ID(paramDataRef), paramDataRef.getType(), arrayOfInt);
/* */
/* 172 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 173 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 175 */ StdQTException.checkError(i);
/* 176 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2012);
/* 177 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static int allocate(DataRef paramDataRef, int paramInt) throws QTException {
/* 181 */ int[] arrayOfInt = { 0 };
/* 182 */ int i = 0;
/* */
/* 184 */ synchronized (QTNative.globalsLock) {
/* 185 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 186 */ GetGWorld(savedPort, savedDevice);
/* 187 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 188 */ i = GetGraphicsImporterForDataRefWithFlags(QTObject.ID(paramDataRef), paramDataRef.getType(), arrayOfInt, paramInt);
/* */
/* 192 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 193 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 195 */ StdQTException.checkError(i);
/* 196 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2012);
/* 197 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final void setDataReference(DataRef paramDataRef)
/* */ throws StdQTException
/* */ {
/* 210 */ int i = GraphicsImportSetDataReference(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType());
/* 211 */ StdQTException.checkError(i);
/* 212 */ this.ref = paramDataRef;
/* */ }
/* */
/* */ public final int getDataReferenceType()
/* */ throws StdQTException
/* */ {
/* 221 */ int[] arrayOfInt1 = new int[1];
/* 222 */ int[] arrayOfInt2 = new int[1];
/* 223 */ int i = GraphicsImportGetDataReference(_ID(), arrayOfInt1, arrayOfInt2);
/* 224 */ StdQTException.checkError(i);
/* 225 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public final void setDataFile(QTFile paramQTFile)
/* */ throws QTException
/* */ {
/* 234 */ int i = GraphicsImportSetDataFile(_ID(), paramQTFile.getFSSpec(true, 256));
/* 235 */ StdQTException.checkError(i);
/* 236 */ this.ref = null;
/* */ }
/* */
/* */ public final QTFile getDataFile()
/* */ throws QTException
/* */ {
/* 245 */ return QTFile.fromGraphicsImporter(this);
/* */ }
/* */
/* */ public final void setDataHandle(QTHandleRef paramQTHandleRef)
/* */ throws StdQTException
/* */ {
/* 254 */ int i = GraphicsImportSetDataHandle(_ID(), QTObject.ID(paramQTHandleRef));
/* 255 */ StdQTException.checkError(i);
/* 256 */ this.ref = paramQTHandleRef;
/* */ }
/* */
/* */ public final QTHandle getDataHandle()
/* */ throws QTException
/* */ {
/* 265 */ return QTHandle.fromGraphicsImporterData(this);
/* */ }
/* */
/* */ public final ImageDescription getImageDescription()
/* */ throws StdQTException
/* */ {
/* 273 */ return ImageDescription.fromGraphicsImporter(this);
/* */ }
/* */
/* */ public final int getDataOffset()
/* */ throws StdQTException
/* */ {
/* 282 */ int[] arrayOfInt1 = new int[1];
/* 283 */ int[] arrayOfInt2 = new int[1];
/* 284 */ int i = GraphicsImportGetDataOffsetAndSize(_ID(), arrayOfInt1, arrayOfInt2);
/* 285 */ StdQTException.checkError(i);
/* 286 */ return arrayOfInt1[0];
/* */ }
/* */
/* */ public final int getDataSize()
/* */ throws StdQTException
/* */ {
/* 295 */ int[] arrayOfInt1 = new int[1];
/* 296 */ int[] arrayOfInt2 = new int[1];
/* 297 */ int i = GraphicsImportGetDataOffsetAndSize(_ID(), arrayOfInt1, arrayOfInt2);
/* 298 */ StdQTException.checkError(i);
/* 299 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public final void readData(EncodedImage paramEncodedImage, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 310 */ int i = -50;
/* 311 */ if ((paramEncodedImage instanceof ByteEncodedImage))
/* 312 */ i = GraphicsImportReadData(_ID(), ((ByteEncodedImage)paramEncodedImage).getBytes(), paramInt1, paramInt2);
/* 313 */ else if ((paramEncodedImage instanceof IntEncodedImage))
/* 314 */ i = GraphicsImportReadData(_ID(), ((IntEncodedImage)paramEncodedImage).getInts(), paramInt1, paramInt2);
/* 315 */ else if ((paramEncodedImage instanceof RawEncodedImage))
/* 316 */ i = GraphicsImportReadData(_ID(), QTObject.ID((RawEncodedImage)paramEncodedImage), paramInt1, paramInt2);
/* 317 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final void setClip(Region paramRegion)
/* */ throws StdQTException
/* */ {
/* 326 */ int i = GraphicsImportSetClip(_ID(), QTObject.ID(paramRegion));
/* 327 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final Region getClip()
/* */ throws QTException
/* */ {
/* 336 */ return Region.fromGraphicsImporter(this);
/* */ }
/* */
/* */ public final void setSourceRect(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 345 */ int i = GraphicsImportSetSourceRect(_ID(), paramQDRect.getRect());
/* 346 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final QDRect getSourceRect()
/* */ throws StdQTException
/* */ {
/* 355 */ QDRect localQDRect = new QDRect();
/* 356 */ int i = GraphicsImportGetSourceRect(_ID(), localQDRect.getRect());
/* 357 */ StdQTException.checkError(i);
/* 358 */ return localQDRect;
/* */ }
/* */
/* */ public final QDRect getNaturalBounds()
/* */ throws StdQTException
/* */ {
/* 367 */ QDRect localQDRect = new QDRect();
/* 368 */ int i = GraphicsImportGetNaturalBounds(_ID(), localQDRect.getRect());
/* 369 */ StdQTException.checkError(i);
/* 370 */ return localQDRect;
/* */ }
/* */
/* */ public final void draw()
/* */ throws StdQTException
/* */ {
/* 378 */ int i = GraphicsImportDraw(_ID());
/* 379 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final void setMatrix(Matrix paramMatrix)
/* */ throws StdQTException
/* */ {
/* 388 */ int i = GraphicsImportSetMatrix(_ID(), paramMatrix.getBytes());
/* 389 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final Matrix getMatrix()
/* */ throws StdQTException
/* */ {
/* 398 */ Matrix localMatrix = new Matrix();
/* */
/* 400 */ int i = GraphicsImportGetMatrix(_ID(), localMatrix.getBytes());
/* 401 */ StdQTException.checkError(i);
/* 402 */ return localMatrix;
/* */ }
/* */
/* */ public final void setBoundsRect(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 411 */ int i = GraphicsImportSetBoundsRect(_ID(), paramQDRect.getRect());
/* 412 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final QDRect getBoundsRect()
/* */ throws StdQTException
/* */ {
/* 421 */ QDRect localQDRect = new QDRect();
/* 422 */ int i = GraphicsImportGetBoundsRect(_ID(), localQDRect.getRect());
/* 423 */ StdQTException.checkError(i);
/* 424 */ return localQDRect;
/* */ }
/* */
/* */ public final void saveAsPicture(QTFile paramQTFile, int paramInt)
/* */ throws QTException
/* */ {
/* 434 */ int i = GraphicsImportSaveAsPicture(_ID(), paramQTFile.getFSSpec(false, 512), paramInt);
/* 435 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final void saveAsQuickTimeImageFile(QTFile paramQTFile, int paramInt)
/* */ throws QTException
/* */ {
/* 445 */ int i = GraphicsImportSaveAsQuickTimeImageFile(_ID(), paramQTFile.getFSSpec(false, 512), paramInt);
/* 446 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final void setGraphicsMode(GraphicsMode paramGraphicsMode)
/* */ throws StdQTException
/* */ {
/* 455 */ int i = GraphicsImportSetGraphicsMode(_ID(), paramGraphicsMode.getGraphicsMode(), paramGraphicsMode.getColor().getRGBColor());
/* */
/* 458 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final GraphicsMode getGraphicsMode()
/* */ throws StdQTException
/* */ {
/* 467 */ int[] arrayOfInt = new int[1];
/* 468 */ byte[] arrayOfByte = new byte[6];
/* */
/* 470 */ int i = GraphicsImportGetGraphicsMode(_ID(), arrayOfInt, arrayOfByte);
/* */
/* 473 */ StdQTException.checkError(i);
/* 474 */ return new GraphicsMode(arrayOfInt[0], QDColor.fromArray(arrayOfByte, 6));
/* */ }
/* */
/* */ public final void setQuality(int paramInt)
/* */ throws StdQTException
/* */ {
/* 484 */ int i = GraphicsImportSetQuality(_ID(), paramInt);
/* 485 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final int getQuality()
/* */ throws StdQTException
/* */ {
/* 494 */ int[] arrayOfInt = new int[1];
/* */
/* 496 */ int i = GraphicsImportGetQuality(_ID(), arrayOfInt);
/* 497 */ StdQTException.checkError(i);
/* 498 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final QTHandle getAliasedDataReference()
/* */ throws QTException
/* */ {
/* 507 */ return QTHandle.fromGraphicsImporterAlias(this);
/* */ }
/* */
/* */ public final int getAliasedDataType()
/* */ throws StdQTException
/* */ {
/* 516 */ int[] arrayOfInt1 = new int[1];
/* 517 */ int[] arrayOfInt2 = new int[1];
/* */
/* 519 */ int i = GraphicsImportGetAliasedDataReference(_ID(), arrayOfInt1, arrayOfInt2);
/* 520 */ StdQTException.checkError(i);
/* 521 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public final void setGWorld(QDGraphics paramQDGraphics, GDevice paramGDevice)
/* */ throws StdQTException
/* */ {
/* 532 */ int i = GraphicsImportSetGWorld(_ID(), QTObject.ID(paramQDGraphics), QTObject.ID(paramGDevice));
/* */
/* 535 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final QDGraphics getGWorld()
/* */ throws StdQTException
/* */ {
/* 544 */ return QDGraphics.fromGraphicsImporter(this);
/* */ }
/* */
/* */ public final boolean validate()
/* */ throws StdQTException
/* */ {
/* 554 */ int[] arrayOfInt = new int[1];
/* */
/* 556 */ int i = GraphicsImportValidate(_ID(), arrayOfInt);
/* 557 */ StdQTException.checkError(i);
/* */
/* 559 */ return arrayOfInt[0] != 0;
/* */ }
/* */
/* */ public final int doesDrawAllPixels()
/* */ throws StdQTException
/* */ {
/* 570 */ short[] arrayOfShort = { 0 };
/* 571 */ int i = GraphicsImportDoesDrawAllPixels(_ID(), arrayOfShort);
/* 572 */ if (i == -2147450878) return 0;
/* 573 */ StdQTException.checkError(i);
/* 574 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public Pict getAsPicture()
/* */ throws QTException
/* */ {
/* 583 */ return Pict.fromGraphicsImporter(this);
/* */ }
/* */
/* */ public UserData getMetaData(GraphicsImporter paramGraphicsImporter)
/* */ throws QTException
/* */ {
/* 592 */ UserData localUserData = new UserData();
/* 593 */ int i = GraphicsImportGetMetaData(QTObject.ID(paramGraphicsImporter), QTObject.ID(localUserData));
/* 594 */ StdQTException.checkError(i);
/* 595 */ return localUserData;
/* */ }
/* */
/* */ public AtomContainer getMIMETypeList()
/* */ throws StdQTException
/* */ {
/* 604 */ return AtomContainer.fromGraphicsImporterMIME(this);
/* */ }
/* */
/* */ public void exportImageFile(int paramInt1, int paramInt2, QTFile paramQTFile, int paramInt3)
/* */ throws QTException
/* */ {
/* 615 */ int i = GraphicsImportExportImageFile(_ID(), paramInt1, paramInt2, paramQTFile.getFSSpec(false, 512), (short)paramInt3);
/* 616 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final AtomContainer getExportImageTypeList()
/* */ throws StdQTException
/* */ {
/* 625 */ return AtomContainer.fromGraphicsImporterExportImage(this);
/* */ }
/* */
/* */ public final AtomContainer getExportSettingsAsAtomContainer()
/* */ throws StdQTException
/* */ {
/* 634 */ return AtomContainer.fromGraphicsImporterExportSettings(this);
/* */ }
/* */
/* */ public final void setExportSettingsFromAtomContainer(AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 644 */ int[] arrayOfInt = { 0 };
/* 645 */ arrayOfInt[0] = QTObject.ID(paramAtomContainer);
/* 646 */ int i = GraphicsImportSetExportSettingsFromAtomContainer(_ID(), arrayOfInt);
/* 647 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final GraphicsImporterInfo doExportImageFileDialog(QTFile paramQTFile, String paramString)
/* */ throws QTException
/* */ {
/* 657 */ return QTFile.fromGraphicsImporter(this, paramQTFile, paramString);
/* */ }
/* */
/* */ public final void setDataReferenceOffsetAndLimit(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 667 */ int i = GraphicsImportSetDataReferenceOffsetAndLimit(_ID(), paramInt1, paramInt2);
/* 668 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final int[] getDataReferenceOffsetAndLimit()
/* */ throws StdQTException
/* */ {
/* 677 */ int[] arrayOfInt1 = { 0 };
/* 678 */ int[] arrayOfInt2 = { 0 };
/* 679 */ int[] arrayOfInt3 = new int[2];
/* 680 */ int i = GraphicsImportGetDataReferenceOffsetAndLimit(_ID(), arrayOfInt1, arrayOfInt2);
/* 681 */ StdQTException.checkError(i);
/* 682 */ arrayOfInt3[0] = arrayOfInt1[0];
/* 683 */ arrayOfInt3[1] = arrayOfInt2[0];
/* 684 */ return arrayOfInt3;
/* */ }
/* */
/* */ public final int getImageCount()
/* */ throws StdQTException
/* */ {
/* 695 */ int[] arrayOfInt = { 0 };
/* 696 */ int i = GraphicsImportGetImageCount(_ID(), arrayOfInt);
/* 697 */ StdQTException.checkError(i);
/* 698 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final void setImageIndex(int paramInt)
/* */ throws StdQTException
/* */ {
/* 708 */ int i = GraphicsImportSetImageIndex(_ID(), paramInt);
/* 709 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public final int getImageIndex()
/* */ throws StdQTException
/* */ {
/* 718 */ int[] arrayOfInt = { 0 };
/* 719 */ int i = GraphicsImportGetImageIndex(_ID(), arrayOfInt);
/* 720 */ StdQTException.checkError(i);
/* 721 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final Matrix getDefaultMatrix()
/* */ throws StdQTException
/* */ {
/* 730 */ Matrix localMatrix = new Matrix();
/* 731 */ int i = GraphicsImportGetDefaultMatrix(_ID(), localMatrix.getBytes());
/* 732 */ StdQTException.checkError(i);
/* 733 */ return localMatrix;
/* */ }
/* */
/* */ public final Region getDefaultClip()
/* */ throws QTException
/* */ {
/* 742 */ return Region.fromGraphicsImporterDefault(this);
/* */ }
/* */
/* */ public final GraphicsMode getDefaultGraphicsMode()
/* */ throws QTException
/* */ {
/* 752 */ int[] arrayOfInt = { 0 };
/* 753 */ QDColor localQDColor = new QDColor();
/* 754 */ int i = GraphicsImportGetDefaultGraphicsMode(_ID(), arrayOfInt, localQDColor.getRGBColor());
/* 755 */ StdQTException.checkError(i);
/* 756 */ return new GraphicsMode(arrayOfInt[0], localQDColor);
/* */ }
/* */
/* */ public final QDRect getDefaultSourceRect()
/* */ throws QTException
/* */ {
/* 766 */ QDRect localQDRect = new QDRect();
/* 767 */ int i = GraphicsImportGetDefaultSourceRect(_ID(), localQDRect.getBytes());
/* 768 */ return localQDRect;
/* */ }
/* */
/* */ public final void setDestRect(QDRect paramQDRect)
/* */ throws QTException
/* */ {
/* 778 */ int i = GraphicsImportSetDestRect(_ID(), paramQDRect.getBytes());
/* */ }
/* */
/* */ public final QDRect getDestRect()
/* */ throws QTException
/* */ {
/* 787 */ QDRect localQDRect = new QDRect();
/* 788 */ int i = GraphicsImportGetDestRect(_ID(), localQDRect.getBytes());
/* 789 */ return localQDRect;
/* */ }
/* */
/* */ public final void setFlags(int paramInt)
/* */ throws QTException
/* */ {
/* 798 */ int i = GraphicsImportSetFlags(_ID(), paramInt);
/* */ }
/* */
/* */ public final int getFlags()
/* */ throws QTException
/* */ {
/* 807 */ int[] arrayOfInt = { 0 };
/* 808 */ int i = GraphicsImportGetFlags(_ID(), arrayOfInt);
/* 809 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static native int GraphicsExportGetInputGraphicsImporter(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short GetGraphicsImporterForFile(byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native short GetGraphicsImporterForFileWithFlags(byte[] paramArrayOfByte, int[] paramArrayOfInt, int paramInt);
/* */
/* */ private static native short GetGraphicsImporterForDataRef(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native short GetGraphicsImporterForDataRefWithFlags(int paramInt1, int paramInt2, int[] paramArrayOfInt, int paramInt3);
/* */
/* */ private static native int GraphicsImportSetDataReference(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsImportGetDataReference(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsImportSetDataFile(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSetDataHandle(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsImportGetDataOffsetAndSize(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsImportReadData(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int GraphicsImportReadData(int paramInt1, byte[] paramArrayOfByte, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsImportReadData(int paramInt1, int[] paramArrayOfInt, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsImportSetClip(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsImportSetSourceRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetSourceRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetNaturalBounds(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportDraw(int paramInt);
/* */
/* */ private static native int GraphicsImportSetMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSetBoundsRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetBoundsRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSaveAsPicture(int paramInt1, byte[] paramArrayOfByte, int paramInt2);
/* */
/* */ private static native int GraphicsImportSaveAsQuickTimeImageFile(int paramInt1, byte[] paramArrayOfByte, int paramInt2);
/* */
/* */ private static native int GraphicsImportSetGraphicsMode(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetGraphicsMode(int paramInt, int[] paramArrayOfInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSetQuality(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsImportGetQuality(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportGetAliasedDataReference(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsImportSetGWorld(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsImportValidate(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportDoesDrawAllPixels(int paramInt, short[] paramArrayOfShort);
/* */
/* */ private static native int GraphicsImportGetMetaData(int paramInt1, int paramInt2);
/* */
/* */ private static native short GraphicsImportExportImageFile(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte, short paramShort);
/* */
/* */ private static native int GraphicsImportSetExportSettingsFromAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native void SetGWorld(int paramInt1, int paramInt2);
/* */
/* */ private static native void GetGWorld(int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsImportSetDataReferenceOffsetAndLimit(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsImportGetDataReferenceOffsetAndLimit(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsImportGetImageCount(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportSetImageIndex(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsImportGetImageIndex(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportGetDefaultMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetDefaultGraphicsMode(int paramInt, int[] paramArrayOfInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetDefaultSourceRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSetDestRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportGetDestRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsImportSetFlags(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsImportGetFlags(int paramInt, int[] paramArrayOfInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.image.GraphicsImporter
* JD-Core Version: 0.6.2
*/