/* */ package quicktime.std.qtcomponents;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.image.ImageDescription;
/* */ import quicktime.util.QTHandleRef;
/* */
/* */ public final class SCSequence
/* */ {
/* 25 */ private static boolean apriori = QTSession.apriori();
/* */ private ImageDescription desc;
/* */ private ImageCompressionDialog dialog;
/* 62 */ private boolean ended = false;
/* */
/* */ SCSequence(ImageCompressionDialog paramImageCompressionDialog, QDGraphics paramQDGraphics, QDRect paramQDRect)
/* */ throws QTException
/* */ {
/* 29 */ if (paramQDGraphics == null) {
/* 30 */ throw new StdQTException(-50);
/* */ }
/* 32 */ int[] arrayOfInt1 = { 0 };
/* 33 */ int[] arrayOfInt2 = { 0 };
/* 34 */ int[] arrayOfInt3 = { 0 };
/* 35 */ int i = 0;
/* */
/* 37 */ synchronized (QTNative.globalsLock) {
/* 38 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 39 */ GetGWorld(arrayOfInt1, arrayOfInt2);
/* 40 */ SetGWorld(QTObject.ID(paramQDGraphics), 0);
/* 41 */ i = SCCompressSequenceBegin(QTObject.ID(paramImageCompressionDialog), QTObject.ID(paramQDGraphics.getPixMap()), paramQDRect != null ? paramQDRect.getRect() : null, arrayOfInt3);
/* */
/* 45 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 46 */ SetGWorld(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* 48 */ StdQTException.checkError(i);
/* */
/* 55 */ this.dialog = paramImageCompressionDialog;
/* 56 */ this.desc = new ImageDescription(arrayOfInt3[0], this)
/* */ {
/* */ };
/* */ }
/* */
/* */ public ImageDescription getDescription()
/* */ {
/* 66 */ return this.desc;
/* */ }
/* */ public ImageCompressionDialog getDialog() {
/* 69 */ return this.dialog;
/* */ }
/* */
/* */ public SCInfo compressFrame(QDGraphics paramQDGraphics, QDRect paramQDRect)
/* */ throws QTException
/* */ {
/* 81 */ return QTHandleRef.fromSCSequence(this, paramQDGraphics, paramQDRect);
/* */ }
/* */
/* */ protected final void finalize() throws Throwable {
/* 85 */ SCCompressSequenceEnd(QTObject.ID(this.dialog));
/* 86 */ super.finalize();
/* */ }
/* */
/* */ private static native int SCCompressSequenceBegin(int paramInt1, int paramInt2, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native int SCCompressSequenceEnd(int paramInt);
/* */
/* */ 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.qtcomponents.SCSequence
* JD-Core Version: 0.6.2
*/