/* */ package quicktime.std.movies;
/* */
/* */ import com.apple.mrj.macos.carbon.CarbonAccess;
/* */ import com.apple.mrj.macos.carbon.CarbonEventClient;
/* */ import java.io.IOException;
/* */ import java.util.Hashtable;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.io.OpenFile;
/* */ import quicktime.io.OpenMovieFile;
/* */ import quicktime.io.QTFile;
/* */ import quicktime.io.QTIOException;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.ColorTable;
/* */ import quicktime.qd.GDevice;
/* */ import quicktime.qd.Pict;
/* */ import quicktime.qd.QDException;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDPoint;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.qd.Region;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.clocks.Clock;
/* */ import quicktime.std.clocks.TimeBase;
/* */ import quicktime.std.clocks.TimeRecord;
/* */ import quicktime.std.image.Matrix;
/* */ import quicktime.std.movies.media.DataRef;
/* */ import quicktime.std.movies.media.UserData;
/* */ import quicktime.std.qtcomponents.MovieExporter;
/* */ import quicktime.std.qtcomponents.MovieImporter;
/* */ import quicktime.std.sg.SequenceGrabber;
/* */ import quicktime.util.QTHandle;
/* */ import quicktime.util.QTPointer;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class Movie extends QTObject
/* */ {
/* 50 */ private static boolean apriori = QTSession.apriori();
/* */
/* 53 */ private static final int[] savedPort = { 0 };
/* 54 */ private static final int[] savedDevice = { 0 };
/* */
/* 398 */ private Object dataRef = null;
/* */ private MoviesDispatcher drawingUPP;
/* */ private MoviesDispatcher preUPP;
/* */ private MoviesDispatcher progUPP;
/* */ private MoviesDispatcher wiredUPP;
/* 2455 */ private static Hashtable dispatchers = new Hashtable();
/* */
/* */ public static void taskAll(int paramInt)
/* */ throws QTException
/* */ {
/* 63 */ synchronized (QTNative.globalsLock) {
/* 64 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 65 */ GetGWorld(savedPort, savedDevice);
/* 66 */ if (QTSession.isInitialized())
/* 67 */ MoviesTask(0, paramInt);
/* */ else
/* 69 */ throw new QTException("QuickTime is NOT initialized");
/* 70 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 71 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* */
/* */ public static Movie createMovieFile(QTFile paramQTFile, int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 85 */ if ((paramInt2 & 0x80000000) != 0) {
/* */ try {
/* 87 */ QTFile.checkSecurity(paramQTFile.getCanonicalPath(), 1024);
/* */ } catch (IOException localIOException) {
/* 89 */ throw new QTIOException(localIOException.getMessage());
/* */ }
/* */ }
/* */
/* 93 */ int[] arrayOfInt = { 0 };
/* */
/* 95 */ if ((paramInt2 & 0x40000000) != 0) {
/* 96 */ paramInt2 ^= 1073741824;
/* */ }
/* 98 */ int i = 0;
/* */
/* 100 */ synchronized (QTNative.globalsLock) {
/* 101 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 102 */ GetGWorld(savedPort, savedDevice);
/* 103 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* */
/* 105 */ i = CreateMovieFile(paramQTFile.getFSSpec(false, 512), paramInt1, (short)-1, paramInt2 | 0x20000000, null, arrayOfInt);
/* */
/* 111 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 112 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 115 */ StdQTException.checkError(i);
/* 116 */ return new Movie(arrayOfInt[0], null);
/* */ }
/* */
/* */ public static Movie fromSequenceGrabber(SequenceGrabber paramSequenceGrabber)
/* */ {
/* 127 */ int i = SGGetMovie(QTObject.ID(paramSequenceGrabber));
/* 128 */ return new Movie(i, paramSequenceGrabber);
/* */ }
/* */
/* */ public static Movie fromScrap(int paramInt)
/* */ throws QTException
/* */ {
/* 137 */ int i = 0;
/* */
/* 139 */ synchronized (QTNative.globalsLock) {
/* 140 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 141 */ GetGWorld(savedPort, savedDevice);
/* 142 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 143 */ i = NewMovieFromScrap(paramInt);
/* 144 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 145 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 147 */ StdQTException.checkError(GetMoviesError());
/* 148 */ if (i == 0) throw new StdQTException(-2010);
/* */
/* 150 */ ??? = new Movie(i, null);
/* 151 */ ((Movie)???).init();
/* 152 */ return ???;
/* */ }
/* */
/* */ public static Movie fromFile(OpenMovieFile paramOpenMovieFile)
/* */ throws QTException
/* */ {
/* 165 */ return fromFile(paramOpenMovieFile, 1, null);
/* */ }
/* */
/* */ public static Movie fromFile(OpenMovieFile paramOpenMovieFile, int paramInt, MovieInfo paramMovieInfo)
/* */ throws QTException
/* */ {
/* 180 */ int[] arrayOfInt = new int[1];
/* 181 */ short s = (short)QTObject.ID(paramOpenMovieFile);
/* 182 */ short[] arrayOfShort = new short[1];
/* 183 */ byte[] arrayOfByte1 = new byte['ÿ'];
/* */
/* 185 */ byte[] arrayOfByte2 = new byte[1];
/* */
/* 187 */ int i = 0;
/* */
/* 189 */ synchronized (QTNative.globalsLock) {
/* 190 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 191 */ GetGWorld(savedPort, savedDevice);
/* 192 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 193 */ i = NewMovieFromFile(arrayOfInt, s, arrayOfShort, arrayOfByte1, (short)paramInt, arrayOfByte2);
/* */
/* 199 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 200 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 202 */ StdQTException.checkError(i);
/* 203 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2010);
/* */
/* 205 */ if (paramMovieInfo != null) {
/* 206 */ paramMovieInfo.setMovieInfo(arrayOfShort[0], arrayOfByte2[0] == 1, new String(arrayOfByte1, 1, arrayOfByte1.length - 1));
/* */ }
/* */
/* 210 */ ??? = new Movie(arrayOfInt[0], null);
/* 211 */ ((Movie)???).init();
/* 212 */ return ???;
/* */ }
/* */
/* */ public static Movie fromHandle(QTHandle paramQTHandle)
/* */ throws QTException
/* */ {
/* 222 */ return fromHandle(paramQTHandle, 1, null);
/* */ }
/* */
/* */ public static Movie fromHandle(QTHandle paramQTHandle, int paramInt, MovieInfo paramMovieInfo)
/* */ throws QTException
/* */ {
/* 234 */ int[] arrayOfInt = new int[1];
/* 235 */ int i = QTObject.ID(paramQTHandle);
/* 236 */ byte[] arrayOfByte = new byte[1];
/* */
/* 238 */ int j = 0;
/* */
/* 240 */ synchronized (QTNative.globalsLock) {
/* 241 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 242 */ GetGWorld(savedPort, savedDevice);
/* 243 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 244 */ j = NewMovieFromHandle(arrayOfInt, i, (short)paramInt, arrayOfByte);
/* */
/* 248 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 249 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 252 */ StdQTException.checkError(j);
/* 253 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2010);
/* */
/* 255 */ if (paramMovieInfo != null) {
/* 256 */ paramMovieInfo.setMovieInfo(0, arrayOfByte[0] == 1, null);
/* */ }
/* */
/* 260 */ ??? = new Movie(arrayOfInt[0], null);
/* 261 */ ((Movie)???).init();
/* 262 */ ((Movie)???).dataRef = paramQTHandle;
/* 263 */ return ???;
/* */ }
/* */
/* */ public static Movie fromDataFork(OpenFile paramOpenFile, int paramInt1, int paramInt2, MovieInfo paramMovieInfo)
/* */ throws QTException, QDException
/* */ {
/* 277 */ int[] arrayOfInt = { 0 };
/* 278 */ short s = (short)QTObject.ID(paramOpenFile);
/* 279 */ byte[] arrayOfByte = new byte[1];
/* */
/* 281 */ int i = 0;
/* */
/* 283 */ synchronized (QTNative.globalsLock) {
/* 284 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 285 */ GetGWorld(savedPort, savedDevice);
/* 286 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 287 */ i = NewMovieFromDataFork(arrayOfInt, s, paramInt1, (short)paramInt2, arrayOfByte);
/* */
/* 292 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 293 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 296 */ StdQTException.checkError(i);
/* 297 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2010);
/* */
/* 299 */ if (paramMovieInfo != null) {
/* 300 */ paramMovieInfo.setMovieInfo(0, arrayOfByte[0] == 1, "");
/* */ }
/* */
/* 304 */ ??? = new Movie(arrayOfInt[0], null);
/* 305 */ ((Movie)???).init();
/* 306 */ return ???;
/* */ }
/* */
/* */ public static Movie fromDataRef(DataRef paramDataRef, int paramInt)
/* */ throws QTException
/* */ {
/* 319 */ int[] arrayOfInt = { 0 };
/* 320 */ short[] arrayOfShort = { 0 };
/* */
/* 322 */ int i = 0;
/* */
/* 324 */ synchronized (QTNative.globalsLock) {
/* 325 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 326 */ GetGWorld(savedPort, savedDevice);
/* 327 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 328 */ i = NewMovieFromDataRef(arrayOfInt, (short)paramInt, arrayOfShort, QTObject.ID(paramDataRef), paramDataRef == null ? 0 : paramDataRef.getType());
/* */
/* 333 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 334 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 337 */ StdQTException.checkError(i);
/* */
/* 339 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2012);
/* */
/* 341 */ ??? = new Movie(arrayOfInt[0], null);
/* 342 */ ((Movie)???).init();
/* 343 */ ((Movie)???).dataRef = paramDataRef;
/* 344 */ return ???;
/* */ }
/* */
/* */ Movie(int paramInt, Object paramObject)
/* */ {
/* 353 */ super(paramInt, paramObject);
/* */ }
/* */
/* */ public Movie()
/* */ throws QTException
/* */ {
/* 364 */ this(1);
/* */ }
/* */
/* */ public Movie(int paramInt)
/* */ throws QTException
/* */ {
/* 376 */ super(allocate(paramInt));
/* 377 */ init();
/* */ }
/* */
/* */ private static int allocate(int paramInt) throws StdQTException, QDException {
/* 381 */ int i = 0;
/* */
/* 383 */ synchronized (QTNative.globalsLock) {
/* 384 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 385 */ GetGWorld(savedPort, savedDevice);
/* 386 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 387 */ i = NewMovie(paramInt);
/* 388 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 389 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 392 */ StdQTException.checkError(GetMoviesError());
/* 393 */ if (i == 0) throw new StdQTException(-2010);
/* 394 */ return i;
/* */ }
/* */
/* */ private void init()
/* */ throws StdQTException
/* */ {
/* 404 */ QDRect localQDRect = getBounds();
/* 405 */ localQDRect.setX(0);
/* 406 */ localQDRect.setY(0);
/* 407 */ setBounds(localQDRect);
/* */ }
/* */
/* */ public int addResource(OpenMovieFile paramOpenMovieFile, int paramInt, String paramString)
/* */ throws StdQTException
/* */ {
/* 422 */ short[] arrayOfShort = { (short)paramInt };
/* 423 */ byte[] arrayOfByte = paramString != null ? QTUtils.String2PString(paramString, 255) : null;
/* 424 */ int i = AddMovieResource(_ID(), (short)QTObject.ID(paramOpenMovieFile), arrayOfShort, arrayOfByte);
/* 425 */ StdQTException.checkError(i);
/* 426 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public void updateResource(OpenMovieFile paramOpenMovieFile, int paramInt, String paramString)
/* */ throws StdQTException
/* */ {
/* 438 */ byte[] arrayOfByte = paramString != null ? QTUtils.String2PString(paramString, 255) : null;
/* 439 */ int i = UpdateMovieResource(_ID(), (short)QTObject.ID(paramOpenMovieFile), (short)paramInt, arrayOfByte);
/* 440 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void removeResource(OpenMovieFile paramOpenMovieFile, int paramInt)
/* */ throws StdQTException
/* */ {
/* 450 */ int i = RemoveMovieResource((short)QTObject.ID(paramOpenMovieFile), (short)paramInt);
/* 451 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void task(int paramInt)
/* */ throws QTException
/* */ {
/* 461 */ synchronized (QTNative.globalsLock) {
/* 462 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 463 */ GetGWorld(savedPort, savedDevice);
/* 464 */ MoviesTask(_ID(), paramInt);
/* 465 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 466 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* */
/* */ public void setDrawingCompleteProc(int paramInt, MovieDrawingComplete paramMovieDrawingComplete)
/* */ throws StdQTException
/* */ {
/* 479 */ if (paramMovieDrawingComplete == null) {
/* 480 */ removeDrawingCompleteProc();
/* 481 */ return;
/* */ }
/* */
/* 484 */ if (this.drawingUPP != null)
/* 485 */ removeDrawingCompleteProc();
/* 486 */ this.drawingUPP = new MoviesDispatcher(this, paramMovieDrawingComplete);
/* 487 */ SetMovieDrawingCompleteProc(_ID(), paramInt, this.drawingUPP.ID(), 0);
/* 488 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void removeDrawingCompleteProc()
/* */ throws StdQTException
/* */ {
/* 496 */ SetMovieDrawingCompleteProc(_ID(), 0, 0, 0);
/* 497 */ if (this.drawingUPP != null)
/* 498 */ this.drawingUPP.cleanupMethodClosure();
/* 499 */ this.drawingUPP = null;
/* 500 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void preroll(int paramInt, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 512 */ if (QTSession.isCurrentOS(4)) {
/* 513 */ synchronized (QTNative.globalsLock) {
/* 514 */ int j = PrerollMovie(_ID(), paramInt, QTUtils.X2Fix(paramFloat));
/* 515 */ StdQTException.checkError(j);
/* */ }
/* */ } else {
/* 518 */ int i = PrerollMovie(_ID(), paramInt, QTUtils.X2Fix(paramFloat));
/* 519 */ StdQTException.checkError(i);
/* */ }
/* */ }
/* */
/* */ public void prePreroll(int paramInt, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 532 */ this.preUPP = null;
/* 533 */ prePreroll(paramInt, paramFloat, null);
/* */ }
/* */
/* */ public void prePreroll(int paramInt, float paramFloat, MoviePrePreroll paramMoviePrePreroll)
/* */ throws StdQTException
/* */ {
/* 547 */ if (QTSession.getQTMajorVersion() == 3) {
/* 548 */ if (paramMoviePrePreroll != null)
/* 549 */ paramMoviePrePreroll.execute(this, 0);
/* 550 */ return;
/* */ }
/* */
/* 553 */ if (paramMoviePrePreroll == null)
/* 554 */ paramMoviePrePreroll = new MoviePrePreroll()
/* */ {
/* */ public void execute(Movie paramAnonymousMovie, int paramAnonymousInt) {
/* */ }
/* */ };
/* 559 */ this.preUPP = new MoviesDispatcher(this, paramMoviePrePreroll);
/* */
/* 561 */ synchronized (QTNative.globalsLock) {
/* 562 */ int i = PrePrerollMovie(_ID(), paramInt, QTUtils.X2Fix(paramFloat), this.preUPP.ID(), 0);
/* 563 */ StdQTException.checkError(i);
/* */ }
/* */ }
/* */
/* */ public void abortPrePreroll(int paramInt)
/* */ throws StdQTException
/* */ {
/* 579 */ if (QTSession.getQTMajorVersion() == 3) return;
/* 580 */ AbortPrePrerollMovie(_ID(), (short)paramInt);
/* 581 */ if (this.preUPP != null) {
/* 582 */ this.preUPP.cleanupMethodClosure();
/* 583 */ this.preUPP = null;
/* */ }
/* */ }
/* */
/* */ public void loadIntoRam(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 595 */ int i = LoadMovieIntoRam(_ID(), paramInt1, paramInt2, paramInt3);
/* 596 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setActive(boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 607 */ if (QTSession.isCurrentOS(4)) {
/* 608 */ synchronized (QTNative.globalsLock)
/* */ {
/* 610 */ byte b2 = (byte)(paramBoolean ? 1 : 0);
/* 611 */ SetMovieActive(_ID(), b2);
/* 612 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ } else {
/* 615 */ byte b1 = (byte)(paramBoolean ? 1 : 0);
/* 616 */ SetMovieActive(_ID(), b1);
/* 617 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */
/* */ public boolean getActive()
/* */ throws StdQTException
/* */ {
/* 626 */ int i = GetMovieActive(_ID());
/* 627 */ StdQTException.checkError(GetMoviesError());
/* */
/* 629 */ return i == 1;
/* */ }
/* */
/* */ public void start()
/* */ throws StdQTException
/* */ {
/* 640 */ synchronized (QTNative.globalsLock) {
/* 641 */ StartMovie(_ID());
/* */ }
/* 643 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void stop()
/* */ throws StdQTException
/* */ {
/* 651 */ synchronized (QTNative.globalsLock) {
/* 652 */ StopMovie(_ID());
/* */ }
/* 654 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void goToBeginning()
/* */ throws StdQTException
/* */ {
/* 662 */ GoToBeginningOfMovie(_ID());
/* 663 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void goToEnd()
/* */ throws StdQTException
/* */ {
/* 671 */ GoToEndOfMovie(_ID());
/* 672 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public boolean isDone()
/* */ throws StdQTException
/* */ {
/* 680 */ int i = IsMovieDone(_ID());
/* 681 */ StdQTException.checkError(GetMoviesError());
/* */
/* 683 */ return i == 1;
/* */ }
/* */
/* */ public boolean getPreviewMode()
/* */ throws StdQTException
/* */ {
/* 692 */ int i = GetMoviePreviewMode(_ID());
/* 693 */ StdQTException.checkError(GetMoviesError());
/* */
/* 695 */ return i == 1;
/* */ }
/* */
/* */ public void setPreviewMode(boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 706 */ byte b = (byte)(paramBoolean ? 1 : 0);
/* 707 */ SetMoviePreviewMode(_ID(), b);
/* 708 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void showPoster()
/* */ throws StdQTException
/* */ {
/* 717 */ ShowMoviePoster(_ID());
/* 718 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void playPreview()
/* */ throws StdQTException
/* */ {
/* 726 */ PlayMoviePreview(_ID(), 0, 0);
/* 727 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public QDGraphics getGWorld()
/* */ throws StdQTException
/* */ {
/* 736 */ return QDGraphics.fromMovie(this);
/* */ }
/* */
/* */ public void setGWorld(QDGraphics paramQDGraphics, GDevice paramGDevice)
/* */ throws StdQTException
/* */ {
/* 747 */ synchronized (QTNative.globalsLock) {
/* 748 */ SetMovieGWorld(_ID(), QTObject.ID(paramQDGraphics), QTObject.ID(paramGDevice));
/* */
/* 751 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */
/* */ public QDRect getNaturalBoundsRect()
/* */ throws StdQTException
/* */ {
/* 760 */ QDRect localQDRect = new QDRect();
/* 761 */ GetMovieNaturalBoundsRect(_ID(), localQDRect.getRect());
/* 762 */ StdQTException.checkError(GetMoviesError());
/* 763 */ return localQDRect;
/* */ }
/* */
/* */ public Track getNextTrackForCompositing(Track paramTrack)
/* */ throws QTException
/* */ {
/* 771 */ int i = GetNextTrackForCompositing(_ID(), QTObject.ID(paramTrack));
/* 772 */ StdQTException.checkError(GetMoviesError());
/* 773 */ return new Track(i, this);
/* */ }
/* */
/* */ public Track getPrevTrackForCompositing(Track paramTrack)
/* */ throws QTException
/* */ {
/* 782 */ int i = GetPrevTrackForCompositing(_ID(), QTObject.ID(paramTrack));
/* 783 */ StdQTException.checkError(GetMoviesError());
/* 784 */ return new Track(i, this);
/* */ }
/* */
/* */ public Pict getPict(int paramInt)
/* */ throws QTException
/* */ {
/* 796 */ return Pict.fromMovie(this, paramInt);
/* */ }
/* */
/* */ public Pict getPosterPict()
/* */ throws QTException
/* */ {
/* 806 */ return Pict.fromMovie(this);
/* */ }
/* */
/* */ public void update()
/* */ throws StdQTException
/* */ {
/* 815 */ int i = UpdateMovie(_ID());
/* 816 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void invalidateRegion(Region paramRegion)
/* */ throws StdQTException
/* */ {
/* 826 */ int i = InvalidateMovieRegion(_ID(), QTObject.ID(paramRegion));
/* 827 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QDRect getBounds()
/* */ throws StdQTException
/* */ {
/* 840 */ if (QTSession.isCurrentOS(4)) {
/* 841 */ synchronized (QTNative.globalsLock) {
/* 842 */ QDRect localQDRect = new QDRect();
/* 843 */ GetMovieBox(_ID(), localQDRect.getRect());
/* 844 */ StdQTException.checkError(GetMoviesError());
/* 845 */ return localQDRect;
/* */ }
/* */ }
/* 848 */ ??? = new QDRect();
/* 849 */ GetMovieBox(_ID(), ((QDRect)???).getRect());
/* 850 */ StdQTException.checkError(GetMoviesError());
/* 851 */ return ???;
/* */ }
/* */
/* */ public QDRect getBox()
/* */ throws StdQTException
/* */ {
/* 865 */ return getBounds();
/* */ }
/* */
/* */ public void setBounds(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 876 */ if (QTSession.isCurrentOS(4)) {
/* 877 */ synchronized (QTNative.globalsLock) {
/* 878 */ SetMovieBox(_ID(), paramQDRect.getRect());
/* 879 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ } else {
/* 882 */ SetMovieBox(_ID(), paramQDRect.getRect());
/* 883 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */
/* */ public void setBox(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 895 */ setBounds(paramQDRect);
/* */ }
/* */
/* */ public Region getDisplayClipRgn()
/* */ throws QTException
/* */ {
/* 904 */ return Region.fromMovieDisplayClip(this);
/* */ }
/* */
/* */ public void setDisplayClipRgn(Region paramRegion)
/* */ throws StdQTException
/* */ {
/* 913 */ SetMovieDisplayClipRgn(_ID(), QTObject.ID(paramRegion));
/* 914 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Region getClipRgn()
/* */ throws QTException
/* */ {
/* 923 */ return Region.fromMovieClip(this);
/* */ }
/* */
/* */ public void setClipRgn(Region paramRegion)
/* */ throws StdQTException
/* */ {
/* 932 */ SetMovieClipRgn(_ID(), QTObject.ID(paramRegion));
/* 933 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Region getDisplayBoundsRgn()
/* */ throws QTException
/* */ {
/* 946 */ return Region.fromMovieDisplayBounds(this);
/* */ }
/* */
/* */ public Region getBoundsRgn()
/* */ throws QTException
/* */ {
/* 959 */ return Region.fromMovieBounds(this);
/* */ }
/* */
/* */ public void putIntoHandle(QTHandle paramQTHandle)
/* */ throws StdQTException
/* */ {
/* 969 */ int i = PutMovieIntoHandle(_ID(), QTObject.ID(paramQTHandle));
/* 970 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void putIntoDataFork(OpenMovieFile paramOpenMovieFile, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 981 */ short s = (short)QTObject.ID(paramOpenMovieFile);
/* 982 */ int i = PutMovieIntoDataFork(_ID(), s, paramInt1, paramInt2);
/* 983 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getCreationTime()
/* */ throws StdQTException
/* */ {
/* 992 */ int i = GetMovieCreationTime(_ID());
/* 993 */ StdQTException.checkError(GetMoviesError());
/* 994 */ return i;
/* */ }
/* */
/* */ public int getModificationTime()
/* */ throws StdQTException
/* */ {
/* 1003 */ int i = GetMovieModificationTime(_ID());
/* 1004 */ StdQTException.checkError(GetMoviesError());
/* 1005 */ return i;
/* */ }
/* */
/* */ public int getTimeScale()
/* */ throws StdQTException
/* */ {
/* 1014 */ int i = GetMovieTimeScale(_ID());
/* 1015 */ StdQTException.checkError(GetMoviesError());
/* 1016 */ return i;
/* */ }
/* */
/* */ public void setTimeScale(int paramInt)
/* */ throws StdQTException
/* */ {
/* 1025 */ SetMovieTimeScale(_ID(), paramInt);
/* 1026 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int getDuration()
/* */ throws StdQTException
/* */ {
/* 1035 */ int i = GetMovieDuration(_ID());
/* 1036 */ StdQTException.checkError(GetMoviesError());
/* 1037 */ return i;
/* */ }
/* */
/* */ public float getRate()
/* */ throws StdQTException
/* */ {
/* 1046 */ int i = GetMovieRate(_ID());
/* 1047 */ StdQTException.checkError(GetMoviesError());
/* 1048 */ return QTUtils.Fix2X(i);
/* */ }
/* */
/* */ public void setRate(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 1058 */ if (QTSession.isCurrentOS(4)) {
/* 1059 */ synchronized (QTNative.globalsLock)
/* */ {
/* 1061 */ SetMovieRate(_ID(), QTUtils.X2Fix(paramFloat));
/* */
/* 1063 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ } else {
/* 1066 */ SetMovieRate(_ID(), QTUtils.X2Fix(paramFloat));
/* 1067 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */
/* */ public float getPreferredRate()
/* */ throws StdQTException
/* */ {
/* 1077 */ int i = GetMoviePreferredRate(_ID());
/* 1078 */ StdQTException.checkError(GetMoviesError());
/* 1079 */ return QTUtils.Fix2X(i);
/* */ }
/* */
/* */ public void setPreferredRate(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 1088 */ SetMoviePreferredRate(_ID(), QTUtils.X2Fix(paramFloat));
/* 1089 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public float getPreferredVolume()
/* */ throws StdQTException
/* */ {
/* 1098 */ short s = GetMoviePreferredVolume(_ID());
/* 1099 */ StdQTException.checkError(GetMoviesError());
/* 1100 */ return QTUtils.ShortFix2X(s);
/* */ }
/* */
/* */ public void setPreferredVolume(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 1109 */ SetMoviePreferredVolume(_ID(), QTUtils.X2ShortFix(paramFloat));
/* 1110 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public float getVolume()
/* */ throws StdQTException
/* */ {
/* 1119 */ short s = GetMovieVolume(_ID());
/* 1120 */ StdQTException.checkError(GetMoviesError());
/* 1121 */ return QTUtils.ShortFix2X(s);
/* */ }
/* */
/* */ public void setVolume(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 1131 */ SetMovieVolume(_ID(), QTUtils.X2ShortFix(paramFloat));
/* 1132 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Matrix getMatrix()
/* */ throws StdQTException
/* */ {
/* 1142 */ Matrix localMatrix = new Matrix();
/* 1143 */ GetMovieMatrix(_ID(), localMatrix.getBytes());
/* 1144 */ StdQTException.checkError(GetMoviesError());
/* 1145 */ return localMatrix;
/* */ }
/* */
/* */ public void setMatrix(Matrix paramMatrix)
/* */ throws StdQTException
/* */ {
/* 1156 */ SetMovieMatrix(_ID(), paramMatrix.getBytes());
/* 1157 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public TimeInfo getPreviewTime()
/* */ throws StdQTException
/* */ {
/* 1166 */ int[] arrayOfInt1 = new int[1];
/* 1167 */ int[] arrayOfInt2 = new int[1];
/* 1168 */ GetMoviePreviewTime(_ID(), arrayOfInt1, arrayOfInt2);
/* 1169 */ StdQTException.checkError(GetMoviesError());
/* 1170 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public void setPreviewTime(TimeInfo paramTimeInfo)
/* */ throws StdQTException
/* */ {
/* 1179 */ SetMoviePreviewTime(_ID(), paramTimeInfo.time, paramTimeInfo.duration);
/* 1180 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setPreviewTime(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 1188 */ SetMoviePreviewTime(_ID(), paramInt1, paramInt2);
/* 1189 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int getPosterTime()
/* */ throws StdQTException
/* */ {
/* 1198 */ int i = GetMoviePosterTime(_ID());
/* 1199 */ StdQTException.checkError(GetMoviesError());
/* 1200 */ return i;
/* */ }
/* */
/* */ public void setPosterTime(int paramInt)
/* */ throws StdQTException
/* */ {
/* 1209 */ SetMoviePosterTime(_ID(), paramInt);
/* 1210 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public TimeInfo getSelection()
/* */ throws StdQTException
/* */ {
/* 1219 */ int[] arrayOfInt1 = new int[1];
/* 1220 */ int[] arrayOfInt2 = new int[1];
/* 1221 */ GetMovieSelection(_ID(), arrayOfInt1, arrayOfInt2);
/* 1222 */ StdQTException.checkError(GetMoviesError());
/* 1223 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public void setSelection(TimeInfo paramTimeInfo)
/* */ throws StdQTException
/* */ {
/* 1232 */ SetMovieSelection(_ID(), paramTimeInfo.time, paramTimeInfo.duration);
/* 1233 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setSelection(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 1243 */ SetMovieSelection(_ID(), paramInt1, paramInt2);
/* 1244 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setActiveSegment(TimeInfo paramTimeInfo)
/* */ throws StdQTException
/* */ {
/* 1253 */ SetMovieActiveSegment(_ID(), paramTimeInfo.time, paramTimeInfo.duration);
/* 1254 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public TimeInfo getActiveSegment()
/* */ throws StdQTException
/* */ {
/* 1263 */ int[] arrayOfInt1 = new int[1];
/* 1264 */ int[] arrayOfInt2 = new int[1];
/* 1265 */ GetMovieActiveSegment(_ID(), arrayOfInt1, arrayOfInt2);
/* 1266 */ StdQTException.checkError(GetMoviesError());
/* 1267 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public int getTime()
/* */ throws StdQTException
/* */ {
/* 1276 */ int i = GetMovieTime(_ID(), 0);
/* 1277 */ StdQTException.checkError(GetMoviesError());
/* 1278 */ return i;
/* */ }
/* */
/* */ public TimeRecord getTRTime()
/* */ throws QTException
/* */ {
/* 1287 */ TimeRecord localTimeRecord = new TimeRecord();
/* 1288 */ int i = GetMovieTime(_ID(), QTObject.ID(localTimeRecord));
/* 1289 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1291 */ return localTimeRecord;
/* */ }
/* */
/* */ public void setTime(TimeRecord paramTimeRecord)
/* */ throws StdQTException
/* */ {
/* 1300 */ synchronized (QTNative.globalsLock) {
/* 1301 */ SetMovieTime(_ID(), QTObject.ID(paramTimeRecord));
/* */ }
/* 1303 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setTimeValue(int paramInt)
/* */ throws StdQTException
/* */ {
/* 1312 */ synchronized (QTNative.globalsLock) {
/* 1313 */ SetMovieTimeValue(_ID(), paramInt);
/* */ }
/* 1315 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public UserData getUserData()
/* */ throws StdQTException
/* */ {
/* 1324 */ return UserData.fromMovie(this);
/* */ }
/* */
/* */ public int getTrackCount()
/* */ throws StdQTException
/* */ {
/* 1333 */ int i = GetMovieTrackCount(_ID());
/* 1334 */ StdQTException.checkError(GetMoviesError());
/* 1335 */ return i;
/* */ }
/* */
/* */ public Track getTrack(int paramInt)
/* */ throws QTException
/* */ {
/* 1345 */ int i = GetMovieTrack(_ID(), paramInt);
/* 1346 */ StdQTException.checkError(GetMoviesError());
/* 1347 */ return i == 0 ? null : new Track(i, this);
/* */ }
/* */
/* */ public Track getIndTrack(int paramInt)
/* */ throws QTException
/* */ {
/* 1357 */ int i = GetMovieIndTrack(_ID(), paramInt);
/* 1358 */ StdQTException.checkError(GetMoviesError());
/* 1359 */ return i == 0 ? null : new Track(i, this);
/* */ }
/* */
/* */ public Track getIndTrackType(int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 1371 */ int i = GetMovieIndTrackType(_ID(), paramInt1, paramInt2, paramInt3);
/* 1372 */ StdQTException.checkError(GetMoviesError());
/* 1373 */ return i == 0 ? null : new Track(i, this);
/* */ }
/* */
/* */ public void removeTrack(Track paramTrack)
/* */ throws StdQTException
/* */ {
/* 1382 */ if (QTObject.ID(paramTrack) == 0) {
/* 1383 */ throw new StdQTException(-2009);
/* */ }
/* 1385 */ int i = GetTrackMovie(QTObject.ID(paramTrack));
/* 1386 */ StdQTException.checkError(GetMoviesError());
/* 1387 */ if (i != _ID()) {
/* 1388 */ throw new StdQTException(-2010);
/* */ }
/* 1390 */ DisposeMovieTrack(QTObject.ID(paramTrack));
/* 1391 */ StdQTException.checkError(GetMoviesError());
/* 1392 */ paramTrack.owner = null;
/* */ }
/* */
/* */ public void setAutoTrackAlternatesEnabled(boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 1401 */ byte b = (byte)(paramBoolean ? 1 : 0);
/* 1402 */ SetAutoTrackAlternatesEnabled(_ID(), b);
/* 1403 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void selectAlternates()
/* */ throws StdQTException
/* */ {
/* 1411 */ SelectMovieAlternates(_ID());
/* 1412 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public TimeInfo getNextInterestingTime(int paramInt1, int[] paramArrayOfInt, int paramInt2, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 1425 */ int[] arrayOfInt1 = new int[1];
/* 1426 */ int[] arrayOfInt2 = new int[1];
/* 1427 */ short s = 0;
/* */
/* 1429 */ if (paramArrayOfInt != null) {
/* 1430 */ s = (short)paramArrayOfInt.length;
/* */ }
/* 1432 */ GetMovieNextInterestingTime(_ID(), (short)paramInt1, s, paramArrayOfInt, paramInt2, QTUtils.X2Fix(paramFloat), arrayOfInt1, arrayOfInt2);
/* 1433 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1435 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public void insertEmptySegment(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 1443 */ int i = InsertEmptyMovieSegment(_ID(), paramInt1, paramInt2);
/* 1444 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void insertSegment(Movie paramMovie, int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 1456 */ int i = InsertMovieSegment(_ID(), QTObject.ID(paramMovie), paramInt1, paramInt2, paramInt3);
/* 1457 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void deleteSegment(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 1467 */ int i = DeleteMovieSegment(_ID(), paramInt1, paramInt2);
/* 1468 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void scaleSegment(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 1479 */ int i = ScaleMovieSegment(_ID(), paramInt1, paramInt2, paramInt3);
/* 1480 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public Movie cutSelection()
/* */ throws QTException
/* */ {
/* 1489 */ int i = CutMovieSelection(_ID());
/* 1490 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1492 */ return new Movie(i, null);
/* */ }
/* */
/* */ public Movie copySelection()
/* */ throws QTException
/* */ {
/* 1501 */ int i = CopyMovieSelection(_ID());
/* 1502 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1504 */ return new Movie(i, null);
/* */ }
/* */
/* */ public void pasteSelection(Movie paramMovie)
/* */ throws StdQTException
/* */ {
/* 1513 */ PasteMovieSelection(_ID(), QTObject.ID(paramMovie));
/* 1514 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void addSelection(Movie paramMovie)
/* */ throws StdQTException
/* */ {
/* 1523 */ AddMovieSelection(_ID(), QTObject.ID(paramMovie));
/* 1524 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void clearSelection()
/* */ throws StdQTException
/* */ {
/* 1532 */ ClearMovieSelection(_ID());
/* 1533 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void pasteHandle(QTHandle paramQTHandle, int paramInt1, int paramInt2, MovieImporter paramMovieImporter)
/* */ throws StdQTException
/* */ {
/* 1545 */ int i = PasteHandleIntoMovie(QTObject.ID(paramQTHandle), paramInt1, _ID(), paramInt2, QTObject.ID(paramMovieImporter));
/* 1546 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QTHandle putIntoTypedHandle(Track paramTrack, int paramInt1, int paramInt2, int paramInt3, int paramInt4, MovieExporter paramMovieExporter)
/* */ throws QTException
/* */ {
/* 1563 */ int i = 0;
/* 1564 */ if (paramTrack != null) {
/* 1565 */ i = QTObject.ID(paramTrack);
/* */ }
/* 1567 */ QTHandle localQTHandle = new QTHandle(0, true);
/* 1568 */ int j = PutMovieIntoTypedHandle(_ID(), i, paramInt1, QTObject.ID(localQTHandle), paramInt2, paramInt3, paramInt4, QTObject.ID(paramMovieExporter));
/* */
/* 1576 */ StdQTException.checkError(j);
/* */
/* 1578 */ return localQTHandle;
/* */ }
/* */
/* */ public void copySettings(Movie paramMovie)
/* */ throws StdQTException
/* */ {
/* 1587 */ int i = CopyMovieSettings(_ID(), QTObject.ID(paramMovie));
/* 1588 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public Track addEmptyTrack(Track paramTrack, DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 1600 */ int[] arrayOfInt = new int[1];
/* 1601 */ int i = AddEmptyTrackToMovie(QTObject.ID(paramTrack), _ID(), QTObject.ID(paramDataRef), paramDataRef.getType(), arrayOfInt);
/* */
/* 1606 */ StdQTException.checkError(i);
/* */
/* 1608 */ return new Track(arrayOfInt[0], this);
/* */ }
/* */
/* */ public Track newTrack(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws QTException
/* */ {
/* 1619 */ return addTrack(paramFloat1, paramFloat2, paramFloat3);
/* */ }
/* */
/* */ public Track addTrack(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws QTException
/* */ {
/* 1630 */ return new Track(this, paramFloat1, paramFloat2, paramFloat3);
/* */ }
/* */
/* */ public MovieEditState newEditState()
/* */ throws QTException
/* */ {
/* 1639 */ int i = NewMovieEditState(_ID());
/* 1640 */ StdQTException.checkError(GetMoviesError());
/* 1641 */ return new MovieEditState(this, i);
/* */ }
/* */
/* */ public void useEditState(MovieEditState paramMovieEditState)
/* */ throws StdQTException
/* */ {
/* 1651 */ int i = UseMovieEditState(_ID(), QTObject.ID(paramMovieEditState));
/* 1652 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getDataSize(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 1663 */ int i = GetMovieDataSize(_ID(), paramInt1, paramInt2);
/* 1664 */ StdQTException.checkError(GetMoviesError());
/* 1665 */ return i;
/* */ }
/* */
/* */ public boolean pointInMovie(QDPoint paramQDPoint)
/* */ throws StdQTException
/* */ {
/* 1677 */ int i = PtInMovie(_ID(), paramQDPoint.getPoint());
/* 1678 */ StdQTException.checkError(GetMoviesError());
/* 1679 */ return i == 1;
/* */ }
/* */
/* */ public void setLanguage(int paramInt)
/* */ throws StdQTException
/* */ {
/* 1688 */ SetMovieLanguage(_ID(), paramInt);
/* 1689 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public boolean hasChanged()
/* */ throws StdQTException
/* */ {
/* 1698 */ int i = HasMovieChanged(_ID());
/* 1699 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1701 */ return i == 1;
/* */ }
/* */
/* */ public void clearChanged()
/* */ throws StdQTException
/* */ {
/* 1709 */ ClearMovieChanged(_ID());
/* 1710 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setDefaultDataRef(DataRef paramDataRef)
/* */ throws StdQTException
/* */ {
/* 1719 */ int i = SetMovieDefaultDataRef(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType());
/* 1720 */ StdQTException.checkError(i);
/* 1721 */ this.dataRef = paramDataRef;
/* */ }
/* */
/* */ public DataRef getDefaultDataRef()
/* */ throws QTException
/* */ {
/* 1730 */ return DataRef.fromMovie(this);
/* */ }
/* */
/* */ public void setColorTable(ColorTable paramColorTable)
/* */ throws StdQTException
/* */ {
/* 1739 */ int i = SetMovieColorTable(_ID(), QTObject.ID(paramColorTable));
/* 1740 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public ColorTable getColorTable()
/* */ throws QTException
/* */ {
/* 1749 */ return ColorTable.fromMovie(this);
/* */ }
/* */
/* */ public int flatten(int paramInt1, QTFile paramQTFile, int paramInt2, int paramInt3, int paramInt4, int paramInt5, String paramString)
/* */ throws QTException
/* */ {
/* 1766 */ short[] arrayOfShort = new short[1];
/* 1767 */ arrayOfShort[0] = ((short)paramInt5);
/* 1768 */ byte[] arrayOfByte = null;
/* */
/* 1770 */ if (paramString != null) {
/* 1771 */ arrayOfByte = QTUtils.String2PString(paramString, 255);
/* */ }
/* 1773 */ FlattenMovie(_ID(), paramInt1, paramQTFile.getFSSpec(false, 512), paramInt2, (short)paramInt3, paramInt4, arrayOfShort, arrayOfByte);
/* */
/* 1782 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1784 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public Movie flattenData(int paramInt1, QTFile paramQTFile, int paramInt2, int paramInt3, int paramInt4)
/* */ throws QTException
/* */ {
/* 1798 */ int i = 0;
/* */
/* 1800 */ synchronized (QTNative.globalsLock) {
/* 1801 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 1802 */ GetGWorld(savedPort, savedDevice);
/* 1803 */ int[] arrayOfInt1 = { 0 };
/* 1804 */ int[] arrayOfInt2 = { 0 };
/* 1805 */ GetMovieGWorld(_ID(), arrayOfInt1, arrayOfInt2);
/* */
/* 1807 */ SetGWorld(arrayOfInt1[0], arrayOfInt2[0]);
/* 1808 */ i = FlattenMovieData(_ID(), paramInt1, paramQTFile.getFSSpec(false, 512), paramInt2, (short)paramInt3, paramInt4);
/* */
/* 1814 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 1815 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 1817 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1819 */ return i != 0 ? new Movie(i, null) : null;
/* */ }
/* */
/* */ public Movie flattenData(int paramInt, QTHandle paramQTHandle)
/* */ throws QTException
/* */ {
/* 1831 */ byte[] arrayOfByte = new byte[8];
/* 1832 */ setIntInArray(arrayOfByte, 0, 1752065132);
/* 1833 */ setIntInArray(arrayOfByte, 4, QTObject.ID(paramQTHandle));
/* 1834 */ int i = 0;
/* */
/* 1836 */ synchronized (QTNative.globalsLock) {
/* 1837 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 1838 */ GetGWorld(savedPort, savedDevice);
/* 1839 */ int[] arrayOfInt1 = { 0 };
/* 1840 */ int[] arrayOfInt2 = { 0 };
/* 1841 */ GetMovieGWorld(_ID(), arrayOfInt1, arrayOfInt2);
/* 1842 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 1843 */ i = FlattenMovieData(_ID(), paramInt | 0x10, arrayOfByte, 0, (short)-1, 0);
/* */
/* 1849 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 1850 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 1853 */ StdQTException.checkError(GetMoviesError());
/* */
/* 1855 */ ??? = null;
/* 1856 */ if (i != 0) {
/* 1857 */ ??? = new Movie(i, null);
/* 1858 */ ((Movie)???).dataRef = paramQTHandle;
/* 1859 */ ((Movie)???).setActive(true);
/* */ }
/* 1861 */ return ???;
/* */ }
/* */
/* */ public void setProgressProc()
/* */ throws StdQTException
/* */ {
/* 1870 */ int i = 0;
/* 1871 */ if (QTSession.isCurrentOS(4))
/* */ {
/* 1873 */ i = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient()
/* */ {
/* 1875 */ int res1 = 0;
/* */
/* 1877 */ public Object invoke() { synchronized (QTNative.globalsLock) {
/* 1878 */ Movie.SetMovieProgressProc(Movie.access$000(Movie.this), -1, 0);
/* */ }
/* 1880 */ return new Integer(this.res1);
/* */ }
/* */ })).intValue();
/* */
/* 1883 */ StdQTException.checkError(i);
/* */ }
/* */ else
/* */ {
/* 1887 */ synchronized (QTNative.globalsLock) {
/* 1888 */ SetMovieProgressProc(_ID(), -1, 0);
/* */ }
/* */ }
/* 1891 */ if (this.progUPP != null) {
/* 1892 */ this.progUPP.cleanupMethodClosure();
/* 1893 */ this.progUPP = null;
/* */ }
/* 1895 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setProgressProc(MovieProgress paramMovieProgress)
/* */ throws StdQTException
/* */ {
/* 1904 */ int i = 0;
/* 1905 */ if (paramMovieProgress == null)
/* */ {
/* 1907 */ setProgressProc();
/* 1908 */ return;
/* */ }
/* */
/* 1911 */ if (this.progUPP != null)
/* 1912 */ this.progUPP.cleanupMethodClosure();
/* 1913 */ this.progUPP = new MoviesDispatcher(this, paramMovieProgress);
/* 1914 */ synchronized (QTNative.globalsLock) {
/* 1915 */ SetMovieProgressProc(_ID(), this.progUPP.ID(), 0);
/* */ }
/* 1917 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void addExecuteWiredActionsProc(ExecutingWiredAction paramExecutingWiredAction)
/* */ throws StdQTException
/* */ {
/* 1927 */ if (paramExecutingWiredAction == null) {
/* 1928 */ throw new StdQTException(-50);
/* */ }
/* */
/* 1931 */ if (this.wiredUPP != null) {
/* 1932 */ RemoveMovieExecuteWiredActionsProc(_ID(), this.wiredUPP.ID(), 0);
/* 1933 */ this.wiredUPP.cleanupMethodClosure();
/* */ }
/* */
/* 1936 */ this.wiredUPP = new MoviesDispatcher(this, paramExecutingWiredAction);
/* 1937 */ StdQTException.checkError(AddMovieExecuteWiredActionsProc(_ID(), this.wiredUPP.ID(), 0));
/* */ }
/* */
/* */ public void removeExecuteWiredActionsProc()
/* */ throws StdQTException
/* */ {
/* 1948 */ if (this.wiredUPP != null) {
/* 1949 */ int i = RemoveMovieExecuteWiredActionsProc(_ID(), this.wiredUPP.ID(), 0);
/* 1950 */ this.wiredUPP.cleanupMethodClosure();
/* 1951 */ this.wiredUPP = null;
/* 1952 */ StdQTException.checkError(i);
/* */ }
/* */ }
/* */
/* */ public void executeWiredActions(int paramInt, AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 1963 */ StdQTException.checkError(MovieExecuteWiredActions(_ID(), paramInt, QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ public SearchResult searchText(QTPointer paramQTPointer, int paramInt1, Track paramTrack, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 1977 */ int[] arrayOfInt1 = new int[1];
/* 1978 */ int[] arrayOfInt2 = new int[1];
/* 1979 */ int[] arrayOfInt3 = new int[1];
/* */
/* 1981 */ arrayOfInt1[0] = QTObject.ID(paramTrack);
/* */
/* 1983 */ arrayOfInt2[0] = paramInt2;
/* 1984 */ arrayOfInt3[0] = paramInt3;
/* */
/* 1986 */ int i = MovieSearchText(_ID(), QTObject.ID(paramQTPointer), paramQTPointer.getSize(), paramInt1, arrayOfInt1, arrayOfInt2, arrayOfInt3);
/* */
/* 1993 */ StdQTException.checkError(i);
/* 1994 */ return new SearchResult(new Track(arrayOfInt1[0], this), arrayOfInt2[0], arrayOfInt3[0]);
/* */ }
/* */
/* */ public SearchResult searchText(QTPointer paramQTPointer, int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 2008 */ int[] arrayOfInt1 = new int[1];
/* 2009 */ int[] arrayOfInt2 = new int[1];
/* 2010 */ int[] arrayOfInt3 = new int[1];
/* */
/* 2012 */ arrayOfInt1[0] = 0;
/* 2013 */ arrayOfInt2[0] = paramInt2;
/* 2014 */ arrayOfInt3[0] = paramInt3;
/* */
/* 2016 */ int i = MovieSearchText(_ID(), QTObject.ID(paramQTPointer), paramQTPointer.getSize(), paramInt1, arrayOfInt1, arrayOfInt2, arrayOfInt3);
/* */
/* 2023 */ StdQTException.checkError(i);
/* 2024 */ return new SearchResult(new Track(arrayOfInt1[0], this), arrayOfInt2[0], arrayOfInt3[0]);
/* */ }
/* */
/* */ public QDRect getPosterBox()
/* */ throws StdQTException
/* */ {
/* 2033 */ QDRect localQDRect = new QDRect();
/* 2034 */ GetPosterBox(_ID(), localQDRect.getRect());
/* 2035 */ StdQTException.checkError(GetMoviesError());
/* 2036 */ return localQDRect;
/* */ }
/* */
/* */ public void setPosterBox(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 2045 */ SetPosterBox(_ID(), paramQDRect.getRect());
/* 2046 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Region getSegmentDisplayBoundsRgn(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 2057 */ return Region.fromMovieSegment(this, paramInt1, paramInt2);
/* */ }
/* */
/* */ public StatusInfo getStatus()
/* */ throws QTException
/* */ {
/* 2067 */ int[] arrayOfInt = new int[1];
/* 2068 */ int i = GetMovieStatus(_ID(), arrayOfInt);
/* 2069 */ if (i != 0) {
/* 2070 */ return new StatusInfo(i, new Track(arrayOfInt[0], this));
/* */ }
/* 2072 */ return null;
/* */ }
/* */
/* */ public void showInformation()
/* */ throws StdQTException
/* */ {
/* 2080 */ int i = _ID();
/* */
/* 2082 */ if (QTSession.isCurrentOS(4)) {
/* 2083 */ CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { private final int val$i;
/* */
/* 2085 */ public Object invoke() { synchronized (QTNative.globalsLock) {
/* 2086 */ Movie.ShowMovieInformation(this.val$i, 0, 0);
/* */ }
/* 2088 */ return null;
/* */ }
/* */ });
/* 2091 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ else {
/* 2094 */ synchronized (QTNative.globalsLock) {
/* 2095 */ ShowMovieInformation(_ID(), 0, 0);
/* 2096 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */ }
/* */
/* */ public void putOnScrap(int paramInt)
/* */ throws StdQTException
/* */ {
/* 2107 */ int i = PutMovieOnScrap(_ID(), paramInt);
/* 2108 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setPlayHints(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 2118 */ SetMoviePlayHints(_ID(), paramInt1, paramInt2);
/* 2119 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public TimeBase getTimeBase()
/* */ throws StdQTException
/* */ {
/* 2128 */ return TimeBase.fromMovie(this);
/* */ }
/* */
/* */ public void setMasterTimeBase(TimeBase paramTimeBase, TimeRecord paramTimeRecord)
/* */ throws StdQTException
/* */ {
/* 2138 */ SetMovieMasterTimeBase(_ID(), QTObject.ID(paramTimeBase), QTObject.ID(paramTimeRecord));
/* 2139 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setMasterClock(Clock paramClock, TimeRecord paramTimeRecord)
/* */ throws StdQTException
/* */ {
/* 2149 */ SetMovieMasterClock(_ID(), QTObject.ID(paramClock), QTObject.ID(paramTimeRecord));
/* 2150 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int convertToFile(Track paramTrack, QTFile paramQTFile, int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 2164 */ return convertToFile(paramTrack, paramQTFile, paramInt1, paramInt2, paramInt3, 0, null);
/* */ }
/* */
/* */ public int convertToFile(QTFile paramQTFile, int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 2177 */ return convertToFile(null, paramQTFile, paramInt1, paramInt2, paramInt3, 0, null);
/* */ }
/* */
/* */ public int convertToFile(QTFile paramQTFile, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
/* */ throws QTException
/* */ {
/* 2191 */ return convertToFile(null, paramQTFile, paramInt1, paramInt2, paramInt3, paramInt4, null);
/* */ }
/* */
/* */ public int convertToFile(Track paramTrack, QTFile paramQTFile, int paramInt1, int paramInt2, int paramInt3, int paramInt4, MovieExporter paramMovieExporter)
/* */ throws QTException, StdQTException
/* */ {
/* 2207 */ short[] arrayOfShort = new short[1];
/* 2208 */ Track localTrack = paramTrack;
/* 2209 */ int i = paramInt1;
/* 2210 */ int j = paramInt2;
/* 2211 */ int k = paramInt3;
/* 2212 */ int m = paramInt4;
/* 2213 */ MovieExporter localMovieExporter = paramMovieExporter;
/* 2214 */ int n = _ID();
/* 2215 */ byte[] arrayOfByte = paramQTFile.getFSSpec(false, 512);
/* */ int i1;
/* 2218 */ if (QTSession.isCurrentOS(4))
/* */ {
/* 2220 */ i1 = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { int res1;
/* */ private final int val$f_i;
/* */ private final Track val$f_onlyTrack;
/* */ private final byte[] val$f_fsspec;
/* */ private final int val$f_fileType;
/* */ private final int val$f_creator;
/* */ private final int val$f_scriptTag;
/* */ private final short[] val$resID_native;
/* */ private final int val$f_flags;
/* */ private final MovieExporter val$f_userComp;
/* */
/* 2224 */ public Object invoke() { synchronized (QTNative.globalsLock) {
/* 2225 */ this.res1 = Movie.ConvertMovieToFile(this.val$f_i, QTObject.ID(this.val$f_onlyTrack), this.val$f_fsspec, this.val$f_fileType, this.val$f_creator, (short)this.val$f_scriptTag, this.val$resID_native, this.val$f_flags, QTObject.ID(this.val$f_userComp));
/* */ }
/* */
/* 2235 */ return new Integer(this.res1);
/* */ }
/* */ })).intValue();
/* */
/* 2238 */ StdQTException.checkError(i1);
/* 2239 */ return arrayOfShort[0];
/* */ }
/* 2241 */ synchronized (QTNative.globalsLock) {
/* 2242 */ i1 = ConvertMovieToFile(_ID(), QTObject.ID(paramTrack), paramQTFile.getFSSpec(false, 512), paramInt1, paramInt2, (short)paramInt3, arrayOfShort, paramInt4, QTObject.ID(paramMovieExporter));
/* */ }
/* */
/* 2252 */ StdQTException.checkError(i1);
/* 2253 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public Track getQTVRTrack(int paramInt)
/* */ throws QTException
/* */ {
/* 2266 */ int i = QTVRGetQTVRTrack(_ID(), paramInt);
/* 2267 */ return i == 0 ? null : new Track(i, this);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* */ try
/* */ {
/* 2276 */ return super.toString() + "[bounds=" + getBounds() + "]"; } catch (StdQTException localStdQTException) {
/* */ }
/* 2278 */ return super.toString() + "[Error getting movie information.]";
/* */ }
/* */
/* */ public final boolean needsTimeTable()
/* */ throws StdQTException
/* */ {
/* 2288 */ byte[] arrayOfByte = new byte[1];
/* 2289 */ int i = QTMovieNeedsTimeTable(_ID(), arrayOfByte);
/* 2290 */ StdQTException.checkError(i);
/* 2291 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public final int maxLoadedTimeInMovie()
/* */ throws StdQTException
/* */ {
/* 2300 */ int[] arrayOfInt = new int[1];
/* 2301 */ int i = GetMaxLoadedTimeInMovie(_ID(), arrayOfInt);
/* 2302 */ StdQTException.checkError(i);
/* 2303 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void copyUserDataToMovie(Movie paramMovie, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 2313 */ StdQTException.checkError(CopyMovieUserData(_ID(), QTObject.ID(paramMovie), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public void copyUserDataFromMovie(Movie paramMovie, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 2325 */ StdQTException.checkError(CopyMovieUserData(QTObject.ID(paramMovie), _ID(), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public static void copyUserData(Movie paramMovie1, Movie paramMovie2, int paramInt)
/* */ throws StdQTException
/* */ {
/* 2339 */ StdQTException.checkError(CopyMovieUserData(QTObject.ID(paramMovie1), QTObject.ID(paramMovie2), paramInt));
/* */ }
/* */
/* */ public void chooseClock(int paramInt)
/* */ {
/* 2353 */ ChooseMovieClock(_ID(), paramInt);
/* */ }
/* */
/* */ public void putDataRefIntoHandle(DataRef paramDataRef, QTHandle paramQTHandle)
/* */ throws StdQTException
/* */ {
/* 2365 */ StdQTException.checkError(PutMovieForDataRefIntoHandle(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType(), QTObject.ID(paramQTHandle)));
/* */ }
/* */
/* */ public Movie forDataRefFromHandle(DataRef paramDataRef, QTHandle paramQTHandle, int paramInt, MovieInfo paramMovieInfo)
/* */ throws StdQTException
/* */ {
/* 2380 */ int[] arrayOfInt = new int[1];
/* 2381 */ byte[] arrayOfByte = new byte[1];
/* */
/* 2383 */ int i = 0;
/* */
/* 2385 */ synchronized (QTNative.globalsLock) {
/* 2386 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 2387 */ GetGWorld(savedPort, savedDevice);
/* 2388 */ SetGWorld(QTObject.ID(QDGraphics.scratch), 0);
/* 2389 */ i = NewMovieForDataRefFromHandle(arrayOfInt, QTObject.ID(paramQTHandle), (short)paramInt, arrayOfByte, QTObject.ID(paramDataRef), paramDataRef.getType());
/* */
/* 2391 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 2392 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* */ }
/* 2395 */ StdQTException.checkError(i);
/* 2396 */ if (arrayOfInt[0] == 0) throw new StdQTException(-2010);
/* */
/* 2398 */ if (paramMovieInfo != null) {
/* 2399 */ paramMovieInfo.setMovieInfo(0, arrayOfByte[0] == 1, null);
/* */ }
/* */
/* 2403 */ ??? = new Movie(arrayOfInt[0], null);
/* 2404 */ ((Movie)???).init();
/* 2405 */ ((Movie)???).dataRef = paramDataRef;
/* 2406 */ return ???;
/* */ }
/* */
/* */ public static int getTimeUntilNextTask(int paramInt)
/* */ throws StdQTException
/* */ {
/* 2418 */ int[] arrayOfInt = { 0 };
/* 2419 */ StdQTException.checkError(QTGetTimeUntilNextTask(arrayOfInt, paramInt));
/* */
/* 2421 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public static void setNextTaskNeededSoonerCallback(NextTaskNeededSooner paramNextTaskNeededSooner, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 2430 */ if (paramNextTaskNeededSooner == null) {
/* 2431 */ return;
/* */ }
/* 2433 */ IdleDispatcher localIdleDispatcher = new IdleDispatcher(paramNextTaskNeededSooner);
/* */
/* 2435 */ Object localObject = dispatchers.put(paramNextTaskNeededSooner, localIdleDispatcher);
/* 2436 */ StdQTException.checkError(QTInstallNextTaskNeededSoonerCallback(localIdleDispatcher.ID(), paramInt1, paramInt2, 0));
/* */ }
/* */
/* */ public static void removeNextTaskNeededSoonerCallback(NextTaskNeededSooner paramNextTaskNeededSooner)
/* */ throws StdQTException
/* */ {
/* 2446 */ if (paramNextTaskNeededSooner == null) {
/* 2447 */ return;
/* */ }
/* 2449 */ IdleDispatcher localIdleDispatcher = (IdleDispatcher)dispatchers.get(paramNextTaskNeededSooner);
/* 2450 */ localIdleDispatcher.cleanupMethodClosure();
/* 2451 */ StdQTException.checkError(QTUninstallNextTaskNeededSoonerCallback(localIdleDispatcher.ID(), 0));
/* */ }
/* */
/* */ public Movie flattenDataToDataRef(DataRef paramDataRef, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
/* */ throws QTException
/* */ {
/* 2470 */ int i = 0;
/* 2471 */ Movie localMovie = null;
/* */
/* 2473 */ synchronized (QTNative.globalsLock) {
/* 2474 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 2475 */ GetGWorld(savedPort, savedDevice);
/* */ }
/* 2477 */ int[] arrayOfInt1 = { 0 };
/* 2478 */ int[] arrayOfInt2 = { 0 };
/* 2479 */ GetMovieGWorld(_ID(), arrayOfInt1, arrayOfInt2);
/* */
/* 2481 */ SetGWorld(arrayOfInt1[0], arrayOfInt2[0]);
/* 2482 */ i = FlattenMovieDataToDataRef(_ID(), paramInt1, QTObject.ID(paramDataRef), paramDataRef.getType(), paramInt2, (short)paramInt3, paramInt4);
/* */
/* 2485 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4)))
/* 2486 */ SetGWorld(savedPort[0], savedDevice[0]);
/* */ }
/* 2488 */ StdQTException.checkError(GetMoviesError());
/* 2489 */ if (i != 0) {
/* 2490 */ localMovie = new Movie(i, null);
/* 2491 */ localMovie.init();
/* 2492 */ localMovie.dataRef = paramDataRef;
/* */ }
/* 2494 */ return localMovie;
/* */ }
/* */
/* */ public void setMovieAnchorDataRef(DataRef paramDataRef)
/* */ throws StdQTException
/* */ {
/* 2504 */ int i = 0;
/* 2505 */ i = SetMovieAnchorDataRef(_ID(), QTObject.ID(paramDataRef), paramDataRef.getType());
/* 2506 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ private boolean isMovieProgressProc() {
/* 2510 */ int[] arrayOfInt1 = { 0 };
/* 2511 */ int[] arrayOfInt2 = { 0 };
/* 2512 */ GetMovieProgressProc(_ID(), arrayOfInt1, arrayOfInt2);
/* */
/* 2514 */ return arrayOfInt1[0] != 0;
/* */ }
/* */
/* */ public boolean isAnchorDefaultDataRef()
/* */ throws StdQTException
/* */ {
/* 2522 */ int i = 0;
/* 2523 */ int[] arrayOfInt1 = { 0 }; int[] arrayOfInt2 = { 0 }; int[] arrayOfInt3 = { 0 };
/* 2524 */ i = GetMovieAnchorDataRef(_ID(), arrayOfInt1, arrayOfInt2, arrayOfInt3);
/* 2525 */ StdQTException.checkError(i);
/* 2526 */ return arrayOfInt3[0] == 1;
/* */ }
/* */
/* */ private static native void MoviesTask(int paramInt1, int paramInt2);
/* */
/* */ private static native short GetMoviesError();
/* */
/* */ private static native short CreateMovieFile(byte[] paramArrayOfByte, int paramInt1, short paramShort, int paramInt2, short[] paramArrayOfShort, int[] paramArrayOfInt);
/* */
/* */ private static native int SGGetMovie(int paramInt);
/* */
/* */ private static native int NewMovieFromScrap(int paramInt);
/* */
/* */ private static native short NewMovieFromFile(int[] paramArrayOfInt, short paramShort1, short[] paramArrayOfShort, byte[] paramArrayOfByte1, short paramShort2, byte[] paramArrayOfByte2);
/* */
/* */ private static native short NewMovieFromHandle(int[] paramArrayOfInt, int paramInt, short paramShort, byte[] paramArrayOfByte);
/* */
/* */ private static native short NewMovieFromDataFork(int[] paramArrayOfInt, short paramShort1, int paramInt, short paramShort2, byte[] paramArrayOfByte);
/* */
/* */ private static native short NewMovieFromDataRef(int[] paramArrayOfInt, short paramShort, short[] paramArrayOfShort, int paramInt1, int paramInt2);
/* */
/* */ private static native int NewMovie(int paramInt);
/* */
/* */ private static native short AddMovieResource(int paramInt, short paramShort, short[] paramArrayOfShort, byte[] paramArrayOfByte);
/* */
/* */ private static native short UpdateMovieResource(int paramInt, short paramShort1, short paramShort2, byte[] paramArrayOfByte);
/* */
/* */ private static native short RemoveMovieResource(short paramShort1, short paramShort2);
/* */
/* */ private static native short PrerollMovie(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short LoadMovieIntoRam(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native void SetMovieActive(int paramInt, byte paramByte);
/* */
/* */ private static native byte GetMovieActive(int paramInt);
/* */
/* */ private static native void StartMovie(int paramInt);
/* */
/* */ private static native void StopMovie(int paramInt);
/* */
/* */ private static native void GoToBeginningOfMovie(int paramInt);
/* */
/* */ private static native void GoToEndOfMovie(int paramInt);
/* */
/* */ private static native byte IsMovieDone(int paramInt);
/* */
/* */ private static native byte GetMoviePreviewMode(int paramInt);
/* */
/* */ private static native void SetMoviePreviewMode(int paramInt, byte paramByte);
/* */
/* */ private static native void ShowMoviePoster(int paramInt);
/* */
/* */ private static native void PlayMoviePreview(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetMovieGWorld(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void GetMovieNaturalBoundsRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GetNextTrackForCompositing(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetPrevTrackForCompositing(int paramInt1, int paramInt2);
/* */
/* */ private static native short UpdateMovie(int paramInt);
/* */
/* */ private static native short InvalidateMovieRegion(int paramInt1, int paramInt2);
/* */
/* */ private static native void GetMovieBox(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void SetMovieBox(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void SetMovieDisplayClipRgn(int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMovieClipRgn(int paramInt1, int paramInt2);
/* */
/* */ private static native short PutMovieIntoHandle(int paramInt1, int paramInt2);
/* */
/* */ private static native short PutMovieIntoDataFork(int paramInt1, short paramShort, int paramInt2, int paramInt3);
/* */
/* */ private static native int GetMovieCreationTime(int paramInt);
/* */
/* */ private static native int GetMovieModificationTime(int paramInt);
/* */
/* */ private static native int GetMovieTimeScale(int paramInt);
/* */
/* */ private static native void SetMovieTimeScale(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMovieDuration(int paramInt);
/* */
/* */ private static native int GetMovieRate(int paramInt);
/* */
/* */ private static native void SetMovieRate(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMoviePreferredRate(int paramInt);
/* */
/* */ private static native void SetMoviePreferredRate(int paramInt1, int paramInt2);
/* */
/* */ private static native short GetMoviePreferredVolume(int paramInt);
/* */
/* */ private static native void SetMoviePreferredVolume(int paramInt, short paramShort);
/* */
/* */ private static native short GetMovieVolume(int paramInt);
/* */
/* */ private static native void SetMovieVolume(int paramInt, short paramShort);
/* */
/* */ private static native void GetMovieMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void SetMovieMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void GetMoviePreviewTime(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native void SetMoviePreviewTime(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GetMoviePosterTime(int paramInt);
/* */
/* */ private static native void SetMoviePosterTime(int paramInt1, int paramInt2);
/* */
/* */ private static native void GetMovieSelection(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native void SetMovieSelection(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetMovieActiveSegment(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void GetMovieActiveSegment(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GetMovieTime(int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMovieTime(int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMovieTimeValue(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMovieTrackCount(int paramInt);
/* */
/* */ private static native int GetMovieTrack(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMovieIndTrack(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMovieIndTrackType(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int GetTrackMovie(int paramInt);
/* */
/* */ private static native void DisposeMovieTrack(int paramInt);
/* */
/* */ private static native void SetAutoTrackAlternatesEnabled(int paramInt, byte paramByte);
/* */
/* */ private static native void SelectMovieAlternates(int paramInt);
/* */
/* */ private static native void GetMovieNextInterestingTime(int paramInt1, short paramShort1, short paramShort2, int[] paramArrayOfInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt2, int[] paramArrayOfInt3);
/* */
/* */ private static native short InsertEmptyMovieSegment(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short InsertMovieSegment(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short DeleteMovieSegment(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short ScaleMovieSegment(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int CutMovieSelection(int paramInt);
/* */
/* */ private static native int CopyMovieSelection(int paramInt);
/* */
/* */ private static native void PasteMovieSelection(int paramInt1, int paramInt2);
/* */
/* */ private static native void AddMovieSelection(int paramInt1, int paramInt2);
/* */
/* */ private static native void ClearMovieSelection(int paramInt);
/* */
/* */ private static native short PasteHandleIntoMovie(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short PutMovieIntoTypedHandle(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8);
/* */
/* */ private static native short CopyMovieSettings(int paramInt1, int paramInt2);
/* */
/* */ private static native short AddEmptyTrackToMovie(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int[] paramArrayOfInt);
/* */
/* */ private static native int NewMovieEditState(int paramInt);
/* */
/* */ private static native short UseMovieEditState(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMovieDataSize(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native byte PtInMovie(int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMovieLanguage(int paramInt1, int paramInt2);
/* */
/* */ private static native byte HasMovieChanged(int paramInt);
/* */
/* */ private static native void ClearMovieChanged(int paramInt);
/* */
/* */ private static native short SetMovieDefaultDataRef(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short SetMovieColorTable(int paramInt1, int paramInt2);
/* */
/* */ private static native void FlattenMovie(int paramInt1, int paramInt2, byte[] paramArrayOfByte1, int paramInt3, short paramShort, int paramInt4, short[] paramArrayOfShort, byte[] paramArrayOfByte2);
/* */
/* */ private static native int FlattenMovieData(int paramInt1, int paramInt2, byte[] paramArrayOfByte, int paramInt3, short paramShort, int paramInt4);
/* */
/* */ private static native void setIntInArray(byte[] paramArrayOfByte, int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMovieProgressProc(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void GetMovieProgressProc(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native short MovieSearchText(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3);
/* */
/* */ private static native void GetPosterBox(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void SetPosterBox(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int GetMovieStatus(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native void ShowMovieInformation(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short PutMovieOnScrap(int paramInt1, int paramInt2);
/* */
/* */ private static native void SetMoviePlayHints(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetMovieMasterTimeBase(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetMovieMasterClock(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short ConvertMovieToFile(int paramInt1, int paramInt2, byte[] paramArrayOfByte, int paramInt3, int paramInt4, short paramShort, short[] paramArrayOfShort, int paramInt5, int paramInt6);
/* */
/* */ private static native int QTVRGetQTVRTrack(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTMovieNeedsTimeTable(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native short GetMaxLoadedTimeInMovie(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short PrePrerollMovie(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native void AbortPrePrerollMovie(int paramInt, short paramShort);
/* */
/* */ private static native void SetMovieDrawingCompleteProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short AddMovieExecuteWiredActionsProc(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short RemoveMovieExecuteWiredActionsProc(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short MovieExecuteWiredActions(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void SetGWorld(int paramInt1, int paramInt2);
/* */
/* */ private static native void GetGWorld(int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native void GetMovieGWorld(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native short CopyMovieUserData(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void ChooseMovieClock(int paramInt1, int paramInt2);
/* */
/* */ private static native short NewMovieForDataRefFromHandle(int[] paramArrayOfInt, int paramInt1, short paramShort, byte[] paramArrayOfByte, int paramInt2, int paramInt3);
/* */
/* */ private static native short PutMovieForDataRefIntoHandle(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int FlattenMovieDataToDataRef(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, short paramShort, int paramInt6);
/* */
/* */ private static native short QTGetTimeUntilNextTask(int[] paramArrayOfInt, int paramInt);
/* */
/* */ private static native short QTInstallNextTaskNeededSoonerCallback(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTUninstallNextTaskNeededSoonerCallback(int paramInt1, int paramInt2);
/* */
/* */ private static native short SetMovieAnchorDataRef(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short GetMovieAnchorDataRef(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.Movie
* JD-Core Version: 0.6.2
*/