/* */ package quicktime.std.movies;
/* */
/* */ import java.awt.Dimension;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.io.QTFile;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.GDevice;
/* */ import quicktime.qd.Pict;
/* */ import quicktime.qd.PixMap;
/* */ import quicktime.qd.QDDimension;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDPoint;
/* */ import quicktime.qd.Region;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.image.Matrix;
/* */ import quicktime.std.movies.media.DataRef;
/* */ import quicktime.std.movies.media.Media;
/* */ import quicktime.std.movies.media.UserData;
/* */ import quicktime.std.qtcomponents.MovieImportInfo;
/* */ import quicktime.std.qtcomponents.MovieImporter;
/* */ import quicktime.util.QTHandle;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class Track extends QTObject
/* */ {
/* 37 */ private static boolean apriori = QTSession.apriori();
/* */ Object owner;
/* */
/* */ public static Track fromMedia(Media paramMedia)
/* */ throws QTException
/* */ {
/* 47 */ int i = GetMediaTrack(QTObject.ID(paramMedia));
/* 48 */ StdQTException.checkError(GetMoviesError());
/* 49 */ return new Track(i, paramMedia);
/* */ }
/* */
/* */ public static MovieImportInfo fromMovieImporterFile(MovieImporter paramMovieImporter, QTFile paramQTFile, Movie paramMovie, Track paramTrack, int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 64 */ int[] arrayOfInt1 = paramTrack == null ? null : new int[1];
/* 65 */ int[] arrayOfInt2 = new int[1];
/* 66 */ int[] arrayOfInt3 = new int[1];
/* 67 */ int i = MovieImportFile(QTObject.ID(paramMovieImporter), paramQTFile.getFSSpec(true, 256), QTObject.ID(paramMovie), QTObject.ID(paramTrack), arrayOfInt1, paramInt1, arrayOfInt2, paramInt2, arrayOfInt3);
/* */
/* 76 */ StdQTException.checkError(i);
/* */
/* 78 */ int j = 0;
/* 79 */ if ((paramInt2 & 0x4) != 0)
/* 80 */ if (paramTrack != null) j = QTObject.ID(paramTrack);
/* */ else
/* 82 */ j = arrayOfInt1[0];
/* 83 */ Track localTrack = j == 0 ? null : new Track(j, paramMovie);
/* */
/* 85 */ return new MovieImportInfo(localTrack, arrayOfInt2[0], arrayOfInt3[0]);
/* */ }
/* */
/* */ public static MovieImportInfo fromMovieImporterHandle(MovieImporter paramMovieImporter, QTHandleRef paramQTHandleRef, Movie paramMovie, Track paramTrack, int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 100 */ int[] arrayOfInt1 = paramTrack == null ? null : new int[1];
/* 101 */ int[] arrayOfInt2 = new int[1];
/* 102 */ int[] arrayOfInt3 = new int[1];
/* 103 */ int i = MovieImportHandle(QTObject.ID(paramMovieImporter), QTObject.ID(paramQTHandleRef), QTObject.ID(paramMovie), QTObject.ID(paramTrack), arrayOfInt1, paramInt1, arrayOfInt2, paramInt2, arrayOfInt3);
/* */
/* 112 */ StdQTException.checkError(i);
/* */
/* 114 */ int j = 0;
/* 115 */ if ((paramInt2 & 0x4) != 0)
/* 116 */ if (paramTrack != null) j = QTObject.ID(paramTrack);
/* */ else
/* 118 */ j = arrayOfInt1[0];
/* 119 */ Track localTrack = j == 0 ? null : new Track(j, paramMovie);
/* */
/* 121 */ return new MovieImportInfo(localTrack, arrayOfInt2[0], arrayOfInt3[0]);
/* */ }
/* */
/* */ public static MovieImportInfo fromMovieImporterDataRef(MovieImporter paramMovieImporter, DataRef paramDataRef, Movie paramMovie, Track paramTrack, int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 137 */ int[] arrayOfInt1 = paramTrack == null ? null : new int[1];
/* 138 */ int[] arrayOfInt2 = new int[1];
/* 139 */ int[] arrayOfInt3 = new int[1];
/* 140 */ int i = MovieImportDataRef(QTObject.ID(paramMovieImporter), QTObject.ID(paramDataRef), paramDataRef.getType(), QTObject.ID(paramMovie), QTObject.ID(paramTrack), arrayOfInt1, paramInt1, arrayOfInt2, paramInt2, arrayOfInt3);
/* */
/* 150 */ StdQTException.checkError(i);
/* */
/* 152 */ int j = 0;
/* 153 */ if ((paramInt2 & 0x4) != 0)
/* 154 */ if (paramTrack != null) j = QTObject.ID(paramTrack);
/* */ else
/* 156 */ j = arrayOfInt1[0];
/* 157 */ Track localTrack = j == 0 ? null : new Track(j, paramMovie);
/* */
/* 159 */ return new MovieImportInfo(localTrack, arrayOfInt2[0], arrayOfInt3[0]);
/* */ }
/* */
/* */ Track(Movie paramMovie, float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws QTException
/* */ {
/* 171 */ this(NewMovieTrack(QTObject.ID(paramMovie), QTUtils.X2Fix(paramFloat1), QTUtils.X2Fix(paramFloat2), QTUtils.X2ShortFix(paramFloat3)), paramMovie);
/* 172 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ Track(int paramInt, Object paramObject)
/* */ throws QTException
/* */ {
/* 181 */ super(paramInt, paramObject);
/* 182 */ if (paramInt == 0)
/* 183 */ throw new StdQTException(-2009);
/* 184 */ this.owner = paramObject;
/* */ }
/* */
/* */ public Media getMedia()
/* */ throws QTException
/* */ {
/* 200 */ return Media.getTrackMedia(this);
/* */ }
/* */
/* */ public void removeMedia()
/* */ throws StdQTException
/* */ {
/* 208 */ int i = GetTrackMedia(_ID());
/* 209 */ StdQTException.checkError(GetMoviesError());
/* */
/* 211 */ DisposeTrackMedia(i);
/* 212 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public void setGWorld(QDGraphics paramQDGraphics, GDevice paramGDevice)
/* */ throws StdQTException
/* */ {
/* 222 */ SetTrackGWorld(_ID(), QTObject.ID(paramQDGraphics), QTObject.ID(paramGDevice), 0, 0);
/* */
/* 227 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Pict getPict(int paramInt)
/* */ throws QTException
/* */ {
/* 237 */ return Pict.fromTrack(this, paramInt);
/* */ }
/* */
/* */ public Region getClipRgn()
/* */ throws QTException
/* */ {
/* 246 */ return Region.fromTrackClip(this);
/* */ }
/* */
/* */ public void setClipRgn(Region paramRegion)
/* */ throws StdQTException
/* */ {
/* 255 */ SetTrackClipRgn(_ID(), QTObject.ID(paramRegion));
/* 256 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Region getDisplayBoundsRgn()
/* */ throws QTException
/* */ {
/* 265 */ return Region.fromTrackDisplay(this);
/* */ }
/* */
/* */ public Region getMovieBoundsRgn()
/* */ throws QTException
/* */ {
/* 274 */ return Region.fromTrackMovieBounds(this);
/* */ }
/* */
/* */ public Region getBoundsRgn()
/* */ throws QTException
/* */ {
/* 284 */ return Region.fromTrackBounds(this);
/* */ }
/* */
/* */ public int getID()
/* */ throws StdQTException
/* */ {
/* 293 */ int i = GetTrackID(_ID());
/* 294 */ StdQTException.checkError(GetMoviesError());
/* 295 */ return i;
/* */ }
/* */
/* */ public int getCreationTime()
/* */ throws StdQTException
/* */ {
/* 304 */ int i = GetTrackCreationTime(_ID());
/* 305 */ StdQTException.checkError(GetMoviesError());
/* 306 */ return i;
/* */ }
/* */
/* */ public int getModificationTime()
/* */ throws StdQTException
/* */ {
/* 315 */ int i = GetTrackModificationTime(_ID());
/* 316 */ StdQTException.checkError(GetMoviesError());
/* 317 */ return i;
/* */ }
/* */
/* */ public boolean getEnabled()
/* */ throws StdQTException
/* */ {
/* 326 */ int i = GetTrackEnabled(_ID());
/* 327 */ StdQTException.checkError(GetMoviesError());
/* 328 */ return i == 1;
/* */ }
/* */
/* */ public void setEnabled(boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 338 */ byte b = (byte)(paramBoolean ? 1 : 0);
/* 339 */ SetTrackEnabled(_ID(), b);
/* 340 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int getUsage()
/* */ throws StdQTException
/* */ {
/* 350 */ int i = GetTrackUsage(_ID());
/* 351 */ StdQTException.checkError(GetMoviesError());
/* 352 */ return i;
/* */ }
/* */
/* */ public void setUsage(int paramInt)
/* */ throws StdQTException
/* */ {
/* 362 */ SetTrackUsage(_ID(), paramInt);
/* 363 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int getDuration()
/* */ throws StdQTException
/* */ {
/* 372 */ int i = GetTrackDuration(_ID());
/* 373 */ StdQTException.checkError(GetMoviesError());
/* 374 */ return i;
/* */ }
/* */
/* */ public int getOffset()
/* */ throws StdQTException
/* */ {
/* 384 */ int i = GetTrackOffset(_ID());
/* 385 */ StdQTException.checkError(GetMoviesError());
/* 386 */ return i;
/* */ }
/* */
/* */ public void setOffset(int paramInt)
/* */ throws StdQTException
/* */ {
/* 397 */ SetTrackOffset(_ID(), paramInt);
/* 398 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public int getLayer()
/* */ throws StdQTException
/* */ {
/* 407 */ int i = GetTrackLayer(_ID());
/* 408 */ StdQTException.checkError(GetMoviesError());
/* 409 */ return i;
/* */ }
/* */
/* */ public void setLayer(int paramInt)
/* */ throws StdQTException
/* */ {
/* 418 */ SetTrackLayer(_ID(), (short)paramInt);
/* 419 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Track getAlternate()
/* */ throws QTException
/* */ {
/* 428 */ int i = GetTrackAlternate(_ID());
/* 429 */ StdQTException.checkError(GetMoviesError());
/* 430 */ return new Track(i, this.owner);
/* */ }
/* */
/* */ public void setAlternate(Track paramTrack)
/* */ throws StdQTException
/* */ {
/* 439 */ SetTrackAlternate(_ID(), QTObject.ID(paramTrack));
/* 440 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public float getVolume()
/* */ throws StdQTException
/* */ {
/* 449 */ short s = GetTrackVolume(_ID());
/* 450 */ StdQTException.checkError(GetMoviesError());
/* 451 */ return QTUtils.ShortFix2X(s);
/* */ }
/* */
/* */ public void setVolume(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 460 */ SetTrackVolume(_ID(), QTUtils.X2ShortFix(paramFloat));
/* 461 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public Matrix getMatrix()
/* */ throws StdQTException
/* */ {
/* 470 */ Matrix localMatrix = new Matrix();
/* 471 */ GetTrackMatrix(_ID(), localMatrix.getBytes());
/* 472 */ StdQTException.checkError(GetMoviesError());
/* 473 */ return localMatrix;
/* */ }
/* */
/* */ public void setMatrix(Matrix paramMatrix)
/* */ throws StdQTException
/* */ {
/* 482 */ SetTrackMatrix(_ID(), paramMatrix.getBytes());
/* 483 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ /** @deprecated */
/* */ public Dimension getDimensions()
/* */ throws StdQTException
/* */ {
/* 493 */ int[] arrayOfInt1 = new int[1];
/* 494 */ int[] arrayOfInt2 = new int[1];
/* 495 */ GetTrackDimensions(_ID(), arrayOfInt1, arrayOfInt2);
/* 496 */ StdQTException.checkError(GetMoviesError());
/* 497 */ return new Dimension((int)QTUtils.Fix2X(arrayOfInt1[0]), (int)QTUtils.Fix2X(arrayOfInt2[0]));
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setDimensions(Dimension paramDimension)
/* */ throws StdQTException
/* */ {
/* 507 */ SetTrackDimensions(_ID(), QTUtils.X2Fix(paramDimension.width), QTUtils.X2Fix(paramDimension.height));
/* */
/* 510 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public QDDimension getSize()
/* */ throws StdQTException
/* */ {
/* 519 */ int[] arrayOfInt1 = new int[1];
/* 520 */ int[] arrayOfInt2 = new int[1];
/* 521 */ GetTrackDimensions(_ID(), arrayOfInt1, arrayOfInt2);
/* 522 */ StdQTException.checkError(GetMoviesError());
/* 523 */ return new QDDimension(QTUtils.Fix2X(arrayOfInt1[0]), QTUtils.Fix2X(arrayOfInt2[0]));
/* */ }
/* */
/* */ public void setSize(QDDimension paramQDDimension)
/* */ throws StdQTException
/* */ {
/* 532 */ SetTrackDimensions(_ID(), QTUtils.X2Fix(paramQDDimension.getWidthF()), QTUtils.X2Fix(paramQDDimension.getHeightF()));
/* */
/* 535 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public UserData getUserData()
/* */ throws StdQTException
/* */ {
/* 544 */ return UserData.fromTrack(this);
/* */ }
/* */
/* */ public String getName()
/* */ throws StdQTException
/* */ {
/* 553 */ UserData localUserData = UserData.fromTrack(this);
/* */ try {
/* 555 */ QTHandle localQTHandle = localUserData.getData(1851878757, 1);
/* 556 */ i = localQTHandle.getSize();
/* 557 */ byte[] arrayOfByte = new byte[i];
/* 558 */ localQTHandle.copyToArray(0, arrayOfByte, 0, i);
/* 559 */ return new String(arrayOfByte);
/* */ } catch (QTException localQTException) {
/* 561 */ int i = localQTException.errorCode();
/* 562 */ if (i != -2026)
/* 563 */ throw new StdQTException(i);
/* */ }
/* 565 */ return new String();
/* */ }
/* */
/* */ public void setName(String paramString)
/* */ throws QTException
/* */ {
/* 576 */ UserData localUserData = UserData.fromTrack(this);
/* 577 */ int i = 0;
/* 578 */ if (paramString != null) {
/* 579 */ i = paramString.length();
/* */ }
/* 581 */ if (i == 0) {
/* */ try {
/* 583 */ localUserData.removeData(1851878757, 1);
/* */ } catch (StdQTException localStdQTException) {
/* 585 */ int j = localStdQTException.errorCode();
/* 586 */ if (j != -2026)
/* 587 */ throw new StdQTException(j);
/* */ }
/* */ }
/* */ else
/* */ {
/* 592 */ QTHandle localQTHandle = new QTHandle(i, false);
/* 593 */ localQTHandle.copyFromArray(0, paramString.getBytes(), 0, i);
/* 594 */ localUserData.setDataItem(localQTHandle.toQTPointer(), 1851878757, 1);
/* */ }
/* */ }
/* */
/* */ public Matrix getDisplayMatrix()
/* */ throws StdQTException
/* */ {
/* 609 */ Matrix localMatrix = new Matrix();
/* 610 */ int i = GetTrackDisplayMatrix(_ID(), localMatrix.getBytes());
/* 611 */ StdQTException.checkError(i);
/* */
/* 613 */ return localMatrix;
/* */ }
/* */
/* */ public QTHandle getSoundLocalizationSettings()
/* */ throws QTException
/* */ {
/* 622 */ return QTHandle.fromTrack(this);
/* */ }
/* */
/* */ public void setSoundLocalizationSettings(QTHandle paramQTHandle)
/* */ throws StdQTException
/* */ {
/* 631 */ int i = SetTrackSoundLocalizationSettings(_ID(), QTObject.ID(paramQTHandle));
/* 632 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public Movie getMovie()
/* */ throws StdQTException
/* */ {
/* 641 */ int i = GetTrackMovie(_ID());
/* 642 */ StdQTException.checkError(GetMoviesError());
/* 643 */ return i == 0 ? null : new Movie(i, this);
/* */ }
/* */
/* */ public TimeInfo getNextInterestingTime(int paramInt1, int paramInt2, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 656 */ int[] arrayOfInt1 = new int[1];
/* 657 */ int[] arrayOfInt2 = new int[1];
/* */
/* 659 */ GetTrackNextInterestingTime(_ID(), (short)paramInt1, paramInt2, QTUtils.X2Fix(paramFloat), arrayOfInt1, arrayOfInt2);
/* 660 */ StdQTException.checkError(GetMoviesError());
/* */
/* 662 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public void insertMedia(int paramInt1, int paramInt2, int paramInt3, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 674 */ int i = InsertMediaIntoTrack(_ID(), paramInt1, paramInt2, paramInt3, QTUtils.X2Fix(paramFloat));
/* 675 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void insertEmptySegment(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 685 */ int i = InsertEmptyTrackSegment(_ID(), paramInt1, paramInt2);
/* 686 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void deleteSegment(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 696 */ int i = DeleteTrackSegment(_ID(), paramInt1, paramInt2);
/* 697 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void scaleSegment(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 708 */ int i = ScaleTrackSegment(_ID(), paramInt1, paramInt2, paramInt3);
/* 709 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public TrackEditState newEditState()
/* */ throws QTException
/* */ {
/* 718 */ int i = NewTrackEditState(_ID());
/* 719 */ StdQTException.checkError(GetMoviesError());
/* 720 */ return new TrackEditState(this, i);
/* */ }
/* */
/* */ public void useEditState(TrackEditState paramTrackEditState)
/* */ throws StdQTException
/* */ {
/* 729 */ int i = UseTrackEditState(_ID(), QTObject.ID(paramTrackEditState));
/* 730 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int addReference(Track paramTrack, int paramInt)
/* */ throws StdQTException
/* */ {
/* 741 */ int[] arrayOfInt = new int[1];
/* 742 */ int i = AddTrackReference(_ID(), QTObject.ID(paramTrack), paramInt, arrayOfInt);
/* 743 */ StdQTException.checkError(i);
/* 744 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void deleteReference(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 754 */ int i = DeleteTrackReference(_ID(), paramInt1, paramInt2);
/* 755 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setReference(Track paramTrack, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 766 */ int i = SetTrackReference(_ID(), QTObject.ID(paramTrack), paramInt1, paramInt2);
/* 767 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public Track getReference(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 777 */ int i = GetTrackReference(_ID(), paramInt1, paramInt2);
/* 778 */ StdQTException.checkError(GetMoviesError());
/* 779 */ return new Track(i, this.owner);
/* */ }
/* */
/* */ public int getNextReferenceType(int paramInt)
/* */ throws StdQTException
/* */ {
/* 788 */ int i = GetNextTrackReferenceType(_ID(), paramInt);
/* 789 */ StdQTException.checkError(GetMoviesError());
/* */
/* 791 */ return i;
/* */ }
/* */
/* */ public int getReferenceCount(int paramInt)
/* */ throws StdQTException
/* */ {
/* 800 */ int i = GetTrackReferenceCount(_ID(), paramInt);
/* 801 */ StdQTException.checkError(GetMoviesError());
/* */
/* 803 */ return i;
/* */ }
/* */
/* */ public int trackTimeToMediaTime(int paramInt)
/* */ throws StdQTException
/* */ {
/* 813 */ int i = TrackTimeToMediaTime(paramInt, _ID());
/* 814 */ StdQTException.checkError(GetMoviesError());
/* 815 */ return i;
/* */ }
/* */
/* */ public float getEditRate(int paramInt)
/* */ throws StdQTException
/* */ {
/* 826 */ int i = GetTrackEditRate(_ID(), paramInt);
/* 827 */ StdQTException.checkError(GetMoviesError());
/* 828 */ return QTUtils.Fix2X(i);
/* */ }
/* */
/* */ public int getDataSize(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 839 */ int i = GetTrackDataSize(_ID(), paramInt1, paramInt2);
/* 840 */ StdQTException.checkError(GetMoviesError());
/* 841 */ return i;
/* */ }
/* */
/* */ public boolean pointInMovie(QDPoint paramQDPoint)
/* */ throws StdQTException
/* */ {
/* 852 */ int i = PtInTrack(_ID(), paramQDPoint.getPoint());
/* 853 */ StdQTException.checkError(GetMoviesError());
/* 854 */ return i == 1;
/* */ }
/* */
/* */ public Region getSegmentDisplayBoundsRgn(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 866 */ return Region.fromTrackSegment(this, paramInt1, paramInt2);
/* */ }
/* */
/* */ public int getStatus()
/* */ {
/* 875 */ int i = GetTrackStatus(_ID());
/* 876 */ return i;
/* */ }
/* */
/* */ public void setLoadSettings(LoadSettings paramLoadSettings)
/* */ throws StdQTException
/* */ {
/* 885 */ SetTrackLoadSettings(_ID(), paramLoadSettings.time, paramLoadSettings.duration, paramLoadSettings.preloadFlags, paramLoadSettings.defaultHints);
/* */
/* 890 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public LoadSettings getLoadSettings()
/* */ throws StdQTException
/* */ {
/* 899 */ int[] arrayOfInt1 = new int[1];
/* 900 */ int[] arrayOfInt2 = new int[1];
/* 901 */ int[] arrayOfInt3 = new int[1];
/* 902 */ int[] arrayOfInt4 = new int[1];
/* 903 */ GetTrackLoadSettings(_ID(), arrayOfInt1, arrayOfInt2, arrayOfInt3, arrayOfInt4);
/* 904 */ StdQTException.checkError(GetMoviesError());
/* */
/* 906 */ return new LoadSettings(arrayOfInt1[0], arrayOfInt2[0], arrayOfInt3[0], arrayOfInt4[0]);
/* */ }
/* */
/* */ public void insertSegment(Track paramTrack, int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 919 */ int i = InsertTrackSegment(_ID(), QTObject.ID(paramTrack), paramInt1, paramInt2, paramInt3);
/* 920 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void copySettings(Track paramTrack)
/* */ throws StdQTException
/* */ {
/* 929 */ int i = CopyTrackSettings(_ID(), QTObject.ID(paramTrack));
/* 930 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void loadIntoRam(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 941 */ int i = LoadTrackIntoRam(_ID(), paramInt1, paramInt2, paramInt3);
/* 942 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public MovieImporter isScrapMovie()
/* */ throws StdQTException
/* */ {
/* 950 */ return MovieImporter.fromTrack(this);
/* */ }
/* */
/* */ public PixMap getMatte()
/* */ throws StdQTException
/* */ {
/* 959 */ return PixMap.fromTrack(this);
/* */ }
/* */
/* */ public void setMatte(PixMap paramPixMap)
/* */ throws StdQTException
/* */ {
/* 969 */ synchronized (QTNative.globalsLock) {
/* 970 */ SetTrackMatte(_ID(), QTObject.ID(paramPixMap));
/* 971 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */ }
/* */
/* */ public void copyUserDataToTrack(Track paramTrack, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 982 */ StdQTException.checkError(CopyTrackUserData(_ID(), QTObject.ID(paramTrack), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public void copyUserDataFromTrack(Track paramTrack, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 994 */ StdQTException.checkError(CopyTrackUserData(QTObject.ID(paramTrack), _ID(), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public static void copyUserData(Track paramTrack1, Track paramTrack2, int paramInt)
/* */ throws StdQTException
/* */ {
/* 1008 */ StdQTException.checkError(CopyTrackUserData(QTObject.ID(paramTrack1), QTObject.ID(paramTrack2), paramInt));
/* */ }
/* */
/* */ public String toString()
/* */ {
/* */ try {
/* 1014 */ return super.toString() + "[ID=" + getID() + "]"; } catch (StdQTException localStdQTException) {
/* */ }
/* 1016 */ return super.toString() + "[ID=unable to obtain track ID]";
/* */ }
/* */
/* */ private static native int GetMediaTrack(int paramInt);
/* */
/* */ private static native short GetMoviesError();
/* */
/* */ private static native int MovieImportFile(int paramInt1, byte[] paramArrayOfByte, int paramInt2, int paramInt3, int[] paramArrayOfInt1, int paramInt4, int[] paramArrayOfInt2, int paramInt5, int[] paramArrayOfInt3);
/* */
/* */ private static native int MovieImportHandle(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int[] paramArrayOfInt1, int paramInt5, int[] paramArrayOfInt2, int paramInt6, int[] paramArrayOfInt3);
/* */
/* */ private static native int MovieImportDataRef(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int[] paramArrayOfInt1, int paramInt6, int[] paramArrayOfInt2, int paramInt7, int[] paramArrayOfInt3);
/* */
/* */ private static native int NewMovieTrack(int paramInt1, int paramInt2, int paramInt3, short paramShort);
/* */
/* */ private static native int GetTrackMedia(int paramInt);
/* */
/* */ private static native void DisposeTrackMedia(int paramInt);
/* */
/* */ private static native void SetTrackGWorld(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native void SetTrackClipRgn(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackID(int paramInt);
/* */
/* */ private static native int GetTrackCreationTime(int paramInt);
/* */
/* */ private static native int GetTrackModificationTime(int paramInt);
/* */
/* */ private static native byte GetTrackEnabled(int paramInt);
/* */
/* */ private static native void SetTrackEnabled(int paramInt, byte paramByte);
/* */
/* */ private static native int GetTrackUsage(int paramInt);
/* */
/* */ private static native void SetTrackUsage(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackDuration(int paramInt);
/* */
/* */ private static native int GetTrackOffset(int paramInt);
/* */
/* */ private static native void SetTrackOffset(int paramInt1, int paramInt2);
/* */
/* */ private static native short GetTrackLayer(int paramInt);
/* */
/* */ private static native void SetTrackLayer(int paramInt, short paramShort);
/* */
/* */ private static native int GetTrackAlternate(int paramInt);
/* */
/* */ private static native void SetTrackAlternate(int paramInt1, int paramInt2);
/* */
/* */ private static native short GetTrackVolume(int paramInt);
/* */
/* */ private static native void SetTrackVolume(int paramInt, short paramShort);
/* */
/* */ private static native void GetTrackMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void SetTrackMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void GetTrackDimensions(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native void SetTrackDimensions(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short GetTrackDisplayMatrix(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native short SetTrackSoundLocalizationSettings(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackMovie(int paramInt);
/* */
/* */ private static native void GetTrackNextInterestingTime(int paramInt1, short paramShort, int paramInt2, int paramInt3, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native short InsertMediaIntoTrack(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short InsertEmptyTrackSegment(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short DeleteTrackSegment(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short ScaleTrackSegment(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int NewTrackEditState(int paramInt);
/* */
/* */ private static native short UseTrackEditState(int paramInt1, int paramInt2);
/* */
/* */ private static native short AddTrackReference(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native short DeleteTrackReference(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short SetTrackReference(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int GetTrackReference(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GetNextTrackReferenceType(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackReferenceCount(int paramInt1, int paramInt2);
/* */
/* */ private static native int TrackTimeToMediaTime(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackEditRate(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackDataSize(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native byte PtInTrack(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetTrackStatus(int paramInt);
/* */
/* */ private static native void SetTrackLoadSettings(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native void GetTrackLoadSettings(int paramInt, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3, int[] paramArrayOfInt4);
/* */
/* */ private static native short InsertTrackSegment(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short CopyTrackSettings(int paramInt1, int paramInt2);
/* */
/* */ private static native short LoadTrackIntoRam(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native void SetTrackMatte(int paramInt1, int paramInt2);
/* */
/* */ private static native short CopyTrackUserData(int paramInt1, int paramInt2, int paramInt3);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.Track
* JD-Core Version: 0.6.2
*/