/* */ package quicktime.std.image;
/* */
/* */ import com.apple.mrj.macos.carbon.CarbonAccess;
/* */ import com.apple.mrj.macos.carbon.CarbonEventClient;
/* */ import quicktime.Errors;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.io.QTFile;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.Pict;
/* */ import quicktime.qd.PixMap;
/* */ import quicktime.qd.QDDimension;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDRect;
/* */ 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.QTHandle;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.QTPointer;
/* */ import quicktime.util.QTPointerRef;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class GraphicsExporter extends Component
/* */ implements Errors
/* */ {
/* 51 */ private static boolean apriori = QTSession.apriori();
/* */
/* 252 */ private static final int[] savedPort = { 0 };
/* 253 */ private static final int[] savedDevice = { 0 };
/* */
/* */ public GraphicsExporter(int paramInt)
/* */ throws QTException
/* */ {
/* 60 */ super(1735550328, paramInt);
/* */ }
/* */
/* */ public int doExport()
/* */ throws StdQTException
/* */ {
/* 72 */ int[] arrayOfInt = { 0 };
/* 73 */ int i = GraphicsExportDoExport(_ID(), arrayOfInt);
/* 74 */ StdQTException.checkError(i);
/* 75 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void doStandaloneExport()
/* */ throws QTException
/* */ {
/* 84 */ int i = GraphicsExportDoStandaloneExport(_ID());
/* 85 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setInputDataReference(DataRef paramDataRef, ImageDescription paramImageDescription)
/* */ throws QTException
/* */ {
/* 95 */ int i = paramDataRef.getType();
/* 96 */ int j = GraphicsExportSetInputDataReference(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType(), QTObject.ID(paramImageDescription));
/* 97 */ StdQTException.checkError(j);
/* */ }
/* */
/* */ public DataRef getInputDataReference()
/* */ throws QTException
/* */ {
/* 107 */ return DataRef.fromGraphicsExporterInputDataRef(this);
/* */ }
/* */
/* */ public void setInputFile(QTFile paramQTFile, ImageDescription paramImageDescription)
/* */ throws QTException
/* */ {
/* 117 */ int i = GraphicsExportSetInputFile(_ID(), paramQTFile.getFSSpec(true, 256), QTObject.ID(paramImageDescription));
/* 118 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTFile getInputFile()
/* */ throws QTException
/* */ {
/* 128 */ return QTFile.fromGraphicsExporterInput(this);
/* */ }
/* */
/* */ public void setInputHandle(QTHandle paramQTHandle, ImageDescription paramImageDescription)
/* */ throws QTException
/* */ {
/* 138 */ int i = GraphicsExportSetInputHandle(_ID(), QTObject.ID(paramQTHandle), QTObject.ID(paramImageDescription));
/* 139 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTHandle getInputHandle()
/* */ throws QTException
/* */ {
/* 149 */ return QTHandle.fromGraphicsExporterInput(this);
/* */ }
/* */
/* */ public void setInputPtr(QTPointerRef paramQTPointerRef, ImageDescription paramImageDescription)
/* */ throws QTException
/* */ {
/* 159 */ int i = GraphicsExportSetInputPtr(_ID(), QTObject.ID(paramQTPointerRef), paramImageDescription.getDataSize(), QTObject.ID(paramImageDescription));
/* 160 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTPointerRef getInputPtr()
/* */ throws QTException
/* */ {
/* 169 */ return QTPointer.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setInputGraphicsImporter(GraphicsImporter paramGraphicsImporter)
/* */ throws QTException
/* */ {
/* 178 */ int i = GraphicsExportSetInputGraphicsImporter(_ID(), QTObject.ID(paramGraphicsImporter));
/* 179 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public GraphicsImporter getInputGraphicsImporter()
/* */ throws QTException
/* */ {
/* 188 */ return GraphicsImporter.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setInputPicture(Pict paramPict)
/* */ throws QTException
/* */ {
/* 197 */ int i = GraphicsExportSetInputPicture(_ID(), QTObject.ID(paramPict));
/* 198 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public Pict getInputPicture()
/* */ throws QTException
/* */ {
/* 208 */ return Pict.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setInputGWorld(QDGraphics paramQDGraphics)
/* */ throws QTException
/* */ {
/* 217 */ int i = GraphicsExportSetInputGWorld(_ID(), QTObject.ID(paramQDGraphics));
/* 218 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QDGraphics getInputGWorld()
/* */ throws QTException
/* */ {
/* 228 */ return QDGraphics.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setInputPixmap(QDGraphics paramQDGraphics)
/* */ throws StdQTException
/* */ {
/* 237 */ if (paramQDGraphics == null)
/* 238 */ throw new StdQTException(-50);
/* 239 */ int i = 0;
/* */
/* 241 */ synchronized (QTNative.globalsLock) {
/* 242 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 243 */ GetGWorld(savedPort, savedDevice);
/* 244 */ SetGWorld(QTObject.ID(paramQDGraphics), 0);
/* 245 */ i = GraphicsExportSetInputPixmap(_ID(), QTObject.ID(paramQDGraphics.getPixMap()));
/* 246 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 247 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 249 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public PixMap getInputPixmap()
/* */ throws QTException
/* */ {
/* 262 */ return PixMap.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setOutputDataReference(DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 272 */ int i = paramDataRef.getType();
/* 273 */ int j = GraphicsExportSetOutputDataReference(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType());
/* 274 */ StdQTException.checkError(j);
/* */ }
/* */
/* */ public DataRef getOutputDataReference()
/* */ throws QTException
/* */ {
/* 285 */ return DataRef.fromGraphicsExporterOutputDataRef(this);
/* */ }
/* */
/* */ public void setOutputFile(QTFile paramQTFile)
/* */ throws QTException
/* */ {
/* 294 */ int i = GraphicsExportSetOutputFile(_ID(), paramQTFile.getFSSpec(false, 512));
/* 295 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTFile getOutputFile()
/* */ throws QTException
/* */ {
/* 305 */ return QTFile.fromGraphicsExporterOutput(this);
/* */ }
/* */
/* */ public void setOutputHandle(QTHandleRef paramQTHandleRef)
/* */ throws QTException
/* */ {
/* 314 */ int i = GraphicsExportSetOutputHandle(_ID(), QTObject.ID(paramQTHandleRef));
/* 315 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTHandle getOutputHandle()
/* */ throws QTException
/* */ {
/* 325 */ return QTHandle.fromGraphicsExporterOutput(this);
/* */ }
/* */
/* */ public void setOutputOffsetAndMaxSize(int paramInt1, int paramInt2, boolean paramBoolean)
/* */ throws QTException
/* */ {
/* 335 */ int i = GraphicsExportSetOutputOffsetAndMaxSize(_ID(), paramInt1, paramInt2, (byte)(!paramBoolean ? 0 : 1));
/* 336 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getOutputOffset()
/* */ throws StdQTException
/* */ {
/* 344 */ int[] arrayOfInt = { 0 };
/* */
/* 346 */ int i = GraphicsExportGetOutputOffsetAndMaxSize(_ID(), arrayOfInt, null, null);
/* 347 */ StdQTException.checkError(i);
/* 348 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int getOutputMaxSize()
/* */ throws StdQTException
/* */ {
/* 356 */ int[] arrayOfInt = { 0 };
/* */
/* 358 */ int i = GraphicsExportGetOutputOffsetAndMaxSize(_ID(), null, arrayOfInt, null);
/* 359 */ StdQTException.checkError(i);
/* 360 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public boolean getOutputTruncateFile()
/* */ throws StdQTException
/* */ {
/* 368 */ byte[] arrayOfByte = { 0 };
/* */
/* 370 */ int i = GraphicsExportGetOutputOffsetAndMaxSize(_ID(), null, null, arrayOfByte);
/* 371 */ StdQTException.checkError(i);
/* 372 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public void setOutputFileTypeAndCreator(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 383 */ int i = GraphicsExportSetOutputFileTypeAndCreator(_ID(), paramInt1, paramInt2);
/* 384 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getOutputFileType()
/* */ throws QTException
/* */ {
/* 392 */ int[] arrayOfInt1 = { 0 };
/* 393 */ int[] arrayOfInt2 = { 0 };
/* */
/* 395 */ int i = GraphicsExportGetOutputFileTypeAndCreator(_ID(), arrayOfInt1, arrayOfInt2);
/* 396 */ StdQTException.checkError(i);
/* 397 */ return arrayOfInt1[0];
/* */ }
/* */
/* */ public int getOutputFileCreator()
/* */ throws QTException
/* */ {
/* 405 */ int[] arrayOfInt1 = { 0 };
/* 406 */ int[] arrayOfInt2 = { 0 };
/* */
/* 408 */ int i = GraphicsExportGetOutputFileTypeAndCreator(_ID(), arrayOfInt1, arrayOfInt2);
/* 409 */ StdQTException.checkError(i);
/* 410 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public boolean mayExporterReadInputData()
/* */ throws QTException
/* */ {
/* 419 */ byte[] arrayOfByte = { 0 };
/* 420 */ int i = GraphicsExportMayExporterReadInputData(_ID(), arrayOfByte);
/* 421 */ StdQTException.checkError(i);
/* 422 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public int getInputDataSize()
/* */ throws QTException
/* */ {
/* 431 */ int[] arrayOfInt = { 0 };
/* 432 */ int i = GraphicsExportGetInputDataSize(_ID(), arrayOfInt);
/* 433 */ StdQTException.checkError(i);
/* 434 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public byte[] readInputData(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 447 */ byte[] arrayOfByte = new byte[paramInt2];
/* 448 */ int i = GraphicsExportReadInputData(_ID(), arrayOfByte, paramInt1, paramInt2);
/* 449 */ StdQTException.checkError(i);
/* 450 */ return arrayOfByte;
/* */ }
/* */
/* */ public ImageDescription getInputImageDescription()
/* */ throws QTException
/* */ {
/* 459 */ return ImageDescription.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public QDRect getInputImageDimensions()
/* */ throws QTException
/* */ {
/* 468 */ QDRect localQDRect = new QDRect();
/* 469 */ int i = GraphicsExportGetInputImageDimensions(_ID(), localQDRect.getRect());
/* 470 */ StdQTException.checkError(i);
/* 471 */ return localQDRect;
/* */ }
/* */
/* */ public int getInputImageDepth()
/* */ throws QTException
/* */ {
/* 480 */ int[] arrayOfInt = { 0 };
/* 481 */ int i = GraphicsExportGetInputImageDepth(_ID(), arrayOfInt);
/* 482 */ StdQTException.checkError(i);
/* 483 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void drawInputImage(QDGraphics paramQDGraphics, QDRect paramQDRect1, QDRect paramQDRect2)
/* */ throws QTException
/* */ {
/* 494 */ int i = GraphicsExportDrawInputImage(_ID(), QTObject.ID(paramQDGraphics), 0, paramQDRect1.getRect(), paramQDRect2.getRect());
/* 495 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setInputOffsetAndLimit(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 507 */ int i = GraphicsExportSetInputOffsetAndLimit(_ID(), paramInt1, paramInt2);
/* 508 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getInputOffset()
/* */ throws QTException
/* */ {
/* 519 */ int[] arrayOfInt1 = { 0 };
/* 520 */ int[] arrayOfInt2 = { 0 };
/* 521 */ int i = GraphicsExportGetInputOffsetAndLimit(_ID(), arrayOfInt1, arrayOfInt2);
/* 522 */ StdQTException.checkError(i);
/* 523 */ return arrayOfInt1[0];
/* */ }
/* */
/* */ public int getInputLimit()
/* */ throws QTException
/* */ {
/* 534 */ int[] arrayOfInt1 = { 0 };
/* 535 */ int[] arrayOfInt2 = { 0 };
/* 536 */ int i = GraphicsExportGetInputOffsetAndLimit(_ID(), arrayOfInt1, arrayOfInt2);
/* 537 */ StdQTException.checkError(i);
/* 538 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public void requestSettings()
/* */ throws QTException
/* */ {
/* 549 */ int i = _ID();
/* */ int j;
/* 552 */ if (QTSession.isCurrentOS(4)) {
/* 553 */ j = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { private final int val$i;
/* */
/* 555 */ public Object invoke() { int i = 0;
/* 556 */ synchronized (QTNative.globalsLock) {
/* 557 */ i = GraphicsExporter.GraphicsExportRequestSettings(this.val$i, 0, 0);
/* */ }
/* 559 */ return new Integer(i);
/* */ }
/* */ })).intValue();
/* */
/* 562 */ StdQTException.checkError(j);
/* */ }
/* */ else {
/* 565 */ synchronized (QTNative.globalsLock) {
/* 566 */ j = GraphicsExportRequestSettings(_ID(), 0, 0);
/* 567 */ if (j == 1) throw new StdQTException(-128);
/* 568 */ StdQTException.checkError(j);
/* */ }
/* */ }
/* */ }
/* */
/* */ public void setSettingsFromAtomContainer(AtomContainer paramAtomContainer)
/* */ throws QTException
/* */ {
/* 581 */ int i = GraphicsExportSetSettingsFromAtomContainer(_ID(), paramAtomContainer.getBytes());
/* 582 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public AtomContainer getSettingsAsAtomContainer()
/* */ throws QTException
/* */ {
/* 592 */ return AtomContainer.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public QTHandle getSettingsAsText()
/* */ throws QTException
/* */ {
/* 602 */ return QTHandle.fromGraphicsExporterText(this);
/* */ }
/* */
/* */ public String getDefaultFileNameExtension()
/* */ throws QTException
/* */ {
/* 611 */ int[] arrayOfInt = { 0 };
/* 612 */ int i = GraphicsExportGetDefaultFileNameExtension(_ID(), arrayOfInt);
/* 613 */ StdQTException.checkError(i);
/* 614 */ return QTUtils.fromOSType(arrayOfInt[0]);
/* */ }
/* */
/* */ public AtomContainer getMIMETypeList()
/* */ throws QTException
/* */ {
/* 625 */ return AtomContainer.fromGraphicsExporterMIME(this);
/* */ }
/* */
/* */ public String getDefaultFileType()
/* */ throws QTException
/* */ {
/* 634 */ int[] arrayOfInt1 = { 0 };
/* 635 */ int[] arrayOfInt2 = { 0 };
/* 636 */ int i = GraphicsExportGetDefaultFileTypeAndCreator(_ID(), arrayOfInt1, arrayOfInt2);
/* 637 */ StdQTException.checkError(i);
/* 638 */ return QTUtils.fromOSType(arrayOfInt1[0]);
/* */ }
/* */
/* */ public String getDefaultFileCreator()
/* */ throws QTException
/* */ {
/* 647 */ int[] arrayOfInt1 = { 0 };
/* 648 */ int[] arrayOfInt2 = { 0 };
/* 649 */ int i = GraphicsExportGetDefaultFileTypeAndCreator(_ID(), arrayOfInt1, arrayOfInt2);
/* 650 */ StdQTException.checkError(i);
/* 651 */ return QTUtils.fromOSType(arrayOfInt2[0]);
/* */ }
/* */
/* */ public boolean canTranscode()
/* */ throws QTException
/* */ {
/* 661 */ byte[] arrayOfByte = { 0 };
/* 662 */ int i = GraphicsExportCanTranscode(_ID(), arrayOfByte);
/* 663 */ StdQTException.checkError(i);
/* 664 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public void doTranscode()
/* */ throws QTException
/* */ {
/* 673 */ int i = GraphicsExportDoTranscode(_ID());
/* 674 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public GECompressorInfo canUseCompressor()
/* */ throws QTException
/* */ {
/* 686 */ return AtomContainer.fromGraphicsExporterCompressor(this);
/* */ }
/* */
/* */ public ImageDescription doUseCompressor(AtomContainer paramAtomContainer)
/* */ throws QTException
/* */ {
/* 697 */ return ImageDescription.fromGraphicsExporterCompressor(this, paramAtomContainer);
/* */ }
/* */
/* */ public void setDontRecompress(boolean paramBoolean)
/* */ throws QTException
/* */ {
/* 707 */ int i = GraphicsExportSetDontRecompress(_ID(), (byte)(paramBoolean ? 1 : 0));
/* 708 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public boolean getDontRecompress()
/* */ throws QTException
/* */ {
/* 718 */ byte[] arrayOfByte = { 0 };
/* 719 */ int i = GraphicsExportGetDontRecompress(_ID(), arrayOfByte);
/* 720 */ StdQTException.checkError(i);
/* 721 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public void setInterlaceStyle(int paramInt)
/* */ throws QTException
/* */ {
/* 752 */ int i = GraphicsExportSetInterlaceStyle(_ID(), paramInt);
/* 753 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getInterlaceStyle()
/* */ throws QTException
/* */ {
/* 762 */ int[] arrayOfInt = { 0 };
/* 763 */ int i = GraphicsExportGetInterlaceStyle(_ID(), arrayOfInt);
/* 764 */ StdQTException.checkError(i);
/* 765 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setMetaData(UserData paramUserData)
/* */ throws QTException
/* */ {
/* 775 */ int i = GraphicsExportSetMetaData(_ID(), QTObject.ID(paramUserData));
/* 776 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public UserData getMetaData()
/* */ throws QTException
/* */ {
/* 787 */ return UserData.fromGraphicsExporter(this);
/* */ }
/* */
/* */ public void setTargetDataSize(int paramInt)
/* */ throws QTException
/* */ {
/* 796 */ int i = GraphicsExportSetTargetDataSize(_ID(), paramInt);
/* 797 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getTargetDataSize()
/* */ throws QTException
/* */ {
/* 806 */ int[] arrayOfInt = { 0 };
/* 807 */ int i = GraphicsExportGetTargetDataSize(_ID(), arrayOfInt);
/* 808 */ StdQTException.checkError(i);
/* 809 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setCompressionMethod(int paramInt)
/* */ throws QTException
/* */ {
/* 818 */ int i = GraphicsExportSetCompressionMethod(_ID(), paramInt);
/* 819 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getCompressionMethod()
/* */ throws QTException
/* */ {
/* 828 */ int[] arrayOfInt = { 0 };
/* 829 */ int i = GraphicsExportGetCompressionMethod(_ID(), arrayOfInt);
/* 830 */ StdQTException.checkError(i);
/* 831 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setCompressionQuality(int paramInt)
/* */ throws QTException
/* */ {
/* 840 */ int i = GraphicsExportSetCompressionQuality(_ID(), paramInt);
/* 841 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getCompressionQuality()
/* */ throws QTException
/* */ {
/* 850 */ int[] arrayOfInt = { 0 };
/* 851 */ int i = GraphicsExportGetCompressionQuality(_ID(), arrayOfInt);
/* 852 */ StdQTException.checkError(i);
/* 853 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setResolution(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 862 */ int i = GraphicsExportSetResolution(_ID(), paramInt1, paramInt2);
/* 863 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getHorizontalResolution()
/* */ throws QTException
/* */ {
/* 872 */ int[] arrayOfInt1 = { 0 };
/* 873 */ int[] arrayOfInt2 = { 0 };
/* */
/* 875 */ int i = GraphicsExportGetResolution(_ID(), arrayOfInt1, arrayOfInt2);
/* 876 */ StdQTException.checkError(i);
/* 877 */ return arrayOfInt1[0];
/* */ }
/* */
/* */ public int getVerticalResolution()
/* */ throws QTException
/* */ {
/* 885 */ int[] arrayOfInt1 = { 0 };
/* 886 */ int[] arrayOfInt2 = { 0 };
/* */
/* 888 */ int i = GraphicsExportGetResolution(_ID(), arrayOfInt1, arrayOfInt2);
/* 889 */ StdQTException.checkError(i);
/* 890 */ return arrayOfInt2[0];
/* */ }
/* */
/* */ public void setDepth(int paramInt)
/* */ throws QTException
/* */ {
/* 899 */ int i = GraphicsExportSetDepth(_ID(), paramInt);
/* 900 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getDepth()
/* */ throws QTException
/* */ {
/* 909 */ int[] arrayOfInt = { 0 };
/* 910 */ int i = GraphicsExportGetDepth(_ID(), arrayOfInt);
/* 911 */ StdQTException.checkError(i);
/* 912 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void GraphicsExportWriteOutputData(byte[] paramArrayOfByte, int paramInt)
/* */ throws StdQTException
/* */ {
/* 922 */ int i = GraphicsExportWriteOutputData(_ID(), paramArrayOfByte, paramInt);
/* 923 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public byte[] GraphicsExportReadOutputData(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 933 */ byte[] arrayOfByte = new byte[paramInt2];
/* 934 */ int i = GraphicsExportReadOutputData(_ID(), arrayOfByte, paramInt1, paramInt2);
/* 935 */ StdQTException.checkError(i);
/* 936 */ return arrayOfByte;
/* */ }
/* */
/* */ public void setExifEnabled(boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 946 */ int i = GraphicsExportSetExifEnabled(_ID(), (byte)(paramBoolean ? 0 : 1));
/* 947 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public boolean getExifEnabled()
/* */ throws StdQTException
/* */ {
/* 957 */ byte[] arrayOfByte = { 0 };
/* 958 */ int i = GraphicsExportGetExifEnabled(_ID(), arrayOfByte);
/* 959 */ StdQTException.checkError(i);
/* */
/* 961 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public void setThumbnailEnabled(boolean paramBoolean, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 976 */ int i = GraphicsExportSetThumbnailEnabled(_ID(), (byte)(paramBoolean ? 1 : 0), paramInt1, paramInt2);
/* */
/* 978 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public boolean getThumbnailEnabled()
/* */ throws StdQTException
/* */ {
/* 988 */ byte[] arrayOfByte = { 0 };
/* 989 */ int[] arrayOfInt1 = { 0 }; int[] arrayOfInt2 = { 0 };
/* */
/* 991 */ int i = GraphicsExportGetThumbnailEnabled(_ID(), arrayOfByte, arrayOfInt1, arrayOfInt2);
/* */
/* 993 */ StdQTException.checkError(i);
/* */
/* 995 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public QDDimension getThumbnailDimension()
/* */ throws StdQTException
/* */ {
/* 1005 */ byte[] arrayOfByte = { 0 };
/* 1006 */ int[] arrayOfInt1 = { 0 }; int[] arrayOfInt2 = { 0 };
/* */
/* 1008 */ int i = GraphicsExportGetThumbnailEnabled(_ID(), arrayOfByte, arrayOfInt1, arrayOfInt2);
/* */
/* 1010 */ StdQTException.checkError(i);
/* */
/* 1012 */ return new QDDimension(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ private static native int GraphicsExportSetExifEnabled(int paramInt, byte paramByte);
/* */
/* */ private static native int GraphicsExportGetExifEnabled(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportSetThumbnailEnabled(int paramInt1, byte paramByte, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportGetThumbnailEnabled(int paramInt, byte[] paramArrayOfByte, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsExportDoExport(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetInputDataReference(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int GraphicsExportSetInputFile(int paramInt1, byte[] paramArrayOfByte, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetInputHandle(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportSetInputPtr(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int GraphicsExportSetInputGraphicsImporter(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetInputPicture(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetInputGWorld(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetInputPixmap(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetOutputDataReference(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportSetOutputFile(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportSetOutputHandle(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportSetOutputOffsetAndMaxSize(int paramInt1, int paramInt2, int paramInt3, byte paramByte);
/* */
/* */ private static native int GraphicsExportGetOutputOffsetAndMaxSize(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportSetOutputFileTypeAndCreator(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportGetOutputFileTypeAndCreator(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsExportMayExporterReadInputData(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportGetInputDataSize(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportReadInputData(int paramInt1, byte[] paramArrayOfByte, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportGetInputImageDimensions(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportGetInputImageDepth(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportDrawInputImage(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2);
/* */
/* */ private static native int GraphicsExportSetInputOffsetAndLimit(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportGetInputOffsetAndLimit(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsExportRequestSettings(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportSetSettingsFromAtomContainer(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportGetDefaultFileTypeAndCreator(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsExportGetDefaultFileNameExtension(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportGetMIMETypeList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportCanTranscode(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportDoTranscode(int paramInt);
/* */
/* */ private static native int GraphicsExportCanUseCompressor(int paramInt, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportDoStandaloneExport(int paramInt);
/* */
/* */ private static native int GraphicsExportSetDontRecompress(int paramInt, byte paramByte);
/* */
/* */ private static native int GraphicsExportGetDontRecompress(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GraphicsExportSetInterlaceStyle(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetInterlaceStyle(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetMetaData(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetMetaData(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetTargetDataSize(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetTargetDataSize(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetCompressionMethod(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetCompressionMethod(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetCompressionQuality(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetCompressionQuality(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportSetResolution(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GraphicsExportGetResolution(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GraphicsExportSetDepth(int paramInt1, int paramInt2);
/* */
/* */ private static native int GraphicsExportGetDepth(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportWriteOutputData(int paramInt1, byte[] paramArrayOfByte, int paramInt2);
/* */
/* */ private static native int GraphicsExportReadOutputData(int paramInt1, byte[] paramArrayOfByte, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetGWorld(int paramInt1, int paramInt2);
/* */
/* */ private static native void GetGWorld(int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.image.GraphicsExporter
* JD-Core Version: 0.6.2
*/