/* */ package quicktime.std.movies.media;
/* */
/* */ import java.lang.reflect.Constructor;
/* */ import java.util.Hashtable;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.movies.AtomContainer;
/* */ import quicktime.std.movies.TimeInfo;
/* */ import quicktime.std.movies.Track;
/* */ import quicktime.util.QTHandle;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public abstract class Media extends QTObject
/* */ {
/* 31 */ private static boolean apriori = QTSession.apriori();
/* */
/* 34 */ private static Hashtable mediaObjects = new Hashtable();
/* */ Track track;
/* */
/* */ private static Media makeGenericMedia(int paramInt1, int paramInt2, Track paramTrack)
/* */ throws QTException
/* */ {
/* 38 */ String str = (String)mediaObjects.get(new Integer(paramInt1));
/* */ try {
/* 40 */ GenericMedia localGenericMedia = null;
/* 41 */ if (str == null) {
/* 42 */ localGenericMedia = new GenericMedia(paramInt2);
/* */ }
/* */ else {
/* 45 */ Class localClass = ClassLoader.getSystemClassLoader().loadClass(str);
/* 46 */ Class[] arrayOfClass = new Class[1];
/* 47 */ arrayOfClass[0] = Class.forName("java.lang.Integer");
/* 48 */ Constructor localConstructor = localClass.getDeclaredConstructor(arrayOfClass);
/* 49 */ Object[] arrayOfObject = new Object[1];
/* 50 */ arrayOfObject[0] = new Integer(paramInt2);
/* 51 */ localGenericMedia = (GenericMedia)localConstructor.newInstance(arrayOfObject);
/* */ }
/* 53 */ localGenericMedia.setIDs(paramInt1, paramTrack);
/* 54 */ return localGenericMedia;
/* */ } catch (Exception localException) {
/* 56 */ throw new QTException(localException.toString());
/* */ }
/* */ }
/* */
/* */ private static Media fromGenericType(int paramInt1, Track paramTrack, int paramInt2, DataRef paramDataRef) throws QTException {
/* 61 */ int i = NewTrackMedia(QTObject.ID(paramTrack), paramInt1, paramInt2, QTObject.ID(paramDataRef), paramDataRef != null ? paramDataRef.getType() : 0);
/* */
/* 66 */ StdQTException.checkError(GetMoviesError());
/* 67 */ return makeGenericMedia(paramInt1, i, paramTrack);
/* */ }
/* */
/* */ private static Media makeMedia(int paramInt, Track paramTrack) throws QTException
/* */ {
/* 72 */ if (paramInt == 0) return null;
/* */
/* 74 */ int[] arrayOfInt = new int[1];
/* 75 */ GetMediaHandlerDescription(paramInt, arrayOfInt, null, null);
/* 76 */ StdQTException.checkError(GetMoviesError());
/* */
/* 81 */ switch (arrayOfInt[0]) { case 1735291491:
/* 82 */ return new BaseMedia(paramInt, paramTrack);
/* */ case 1297106247:
/* 83 */ return new MPEGMedia(paramInt, paramTrack);
/* */ case 1836413801:
/* 84 */ return new MusicMedia(paramInt, paramTrack);
/* */ case 1936684398:
/* 85 */ return new SoundMedia(paramInt, paramTrack);
/* */ case 1936749172:
/* 86 */ return new SpriteMedia(paramInt, paramTrack);
/* */ case 1952807028:
/* 87 */ return new TextMedia(paramInt, paramTrack);
/* */ case 1902392164:
/* 88 */ return new ThreeDMedia(paramInt, paramTrack);
/* */ case 1953325924:
/* 89 */ return new TimeCodeMedia(paramInt, paramTrack);
/* */ case 1953981806:
/* 90 */ return new TweenMedia(paramInt, paramTrack);
/* */ case 1986618469:
/* 91 */ return new VideoMedia(paramInt, paramTrack);
/* */ case 1718383464:
/* 92 */ return new FlashMedia(paramInt, paramTrack);
/* */ case 1937011309:
/* 93 */ return new StreamMedia(paramInt, paramTrack);
/* */ case 1836019574:
/* 94 */ return new MovieMedia(paramInt, paramTrack);
/* */ }
/* 96 */ return makeGenericMedia(arrayOfInt[0], paramInt, paramTrack);
/* */ }
/* */
/* */ protected static void addMediaType(int paramInt, String paramString)
/* */ {
/* 107 */ mediaObjects.put(new Integer(paramInt), paramString);
/* */ }
/* */
/* */ public static Media newFromType(int paramInt1, Track paramTrack, int paramInt2, DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 123 */ if ((paramInt1 == 0) || (paramTrack == null)) throw new QTException(-50);
/* */
/* 125 */ switch (paramInt1) { case 1735291491:
/* 126 */ return new BaseMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1297106247:
/* 127 */ return new MPEGMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1836413801:
/* 128 */ return new MusicMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1936684398:
/* 129 */ return new SoundMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1936749172:
/* 130 */ return new SpriteMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1952807028:
/* 131 */ return new TextMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1902392164:
/* 132 */ return new ThreeDMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1953325924:
/* 133 */ return new TimeCodeMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1953981806:
/* 134 */ return new TweenMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1986618469:
/* 135 */ return new VideoMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1718383464:
/* 136 */ return new FlashMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1937011309:
/* 137 */ return new StreamMedia(paramTrack, paramInt2, paramDataRef);
/* */ case 1836019574:
/* 138 */ return new MovieMedia(paramTrack, paramInt2, paramDataRef);
/* */ }
/* 140 */ return fromGenericType(paramInt1, paramTrack, paramInt2, paramDataRef);
/* */ }
/* */
/* */ public static Media fromTrack(Track paramTrack)
/* */ throws QTException
/* */ {
/* 150 */ return getTrackMedia(paramTrack);
/* */ }
/* */
/* */ public static Media getTrackMedia(Track paramTrack)
/* */ throws QTException
/* */ {
/* 160 */ int i = GetTrackMedia(QTObject.ID(paramTrack));
/* 161 */ StdQTException.checkError(GetMoviesError());
/* */
/* 163 */ return makeMedia(i, paramTrack);
/* */ }
/* */
/* */ protected Media(Track paramTrack, int paramInt1, int paramInt2, DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 176 */ super(allocate(paramTrack, paramInt1, paramInt2, paramDataRef));
/* 177 */ this.track = paramTrack;
/* */ }
/* */
/* */ private static int allocate(Track paramTrack, int paramInt1, int paramInt2, DataRef paramDataRef) throws StdQTException {
/* 181 */ int i = NewTrackMedia(QTObject.ID(paramTrack), paramInt1, paramInt2, QTObject.ID(paramDataRef), paramDataRef != null ? paramDataRef.getType() : 0);
/* */
/* 186 */ StdQTException.checkError(GetMoviesError());
/* 187 */ return i;
/* */ }
/* */
/* */ Media(Track paramTrack, int paramInt) throws QTException {
/* 191 */ super(paramInt);
/* 192 */ this.track = paramTrack;
/* */ }
/* */
/* */ protected final int getNativeMediaHandler()
/* */ throws StdQTException
/* */ {
/* 203 */ int i = GetMediaHandler(_ID());
/* 204 */ StdQTException.checkError(GetMoviesError());
/* 205 */ return i;
/* */ }
/* */
/* */ protected final void getNativeSampleDescription(int paramInt, SampleDescription paramSampleDescription)
/* */ throws StdQTException
/* */ {
/* 214 */ GetMediaSampleDescription(_ID(), paramInt, QTObject.ID(paramSampleDescription));
/* 215 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ abstract SampleDescription makeDescription()
/* */ throws QTException;
/* */
/* */ abstract MediaHandler makeHandler(int paramInt, Object paramObject)
/* */ throws StdQTException;
/* */
/* */ public SampleDescription getSampleDescription(int paramInt)
/* */ throws QTException
/* */ {
/* 232 */ SampleDescription localSampleDescription = makeDescription();
/* 233 */ getNativeSampleDescription(paramInt, localSampleDescription);
/* 234 */ return localSampleDescription;
/* */ }
/* */
/* */ public final void setSampleDescription(int paramInt, SampleDescription paramSampleDescription)
/* */ throws StdQTException
/* */ {
/* 244 */ SetMediaSampleDescription(_ID(), paramInt, QTObject.ID(paramSampleDescription));
/* 245 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public final DataHandler getDataHandler(int paramInt)
/* */ throws StdQTException
/* */ {
/* 254 */ int i = GetMediaDataHandler(_ID(), (short)paramInt);
/* 255 */ StdQTException.checkError(GetMoviesError());
/* 256 */ return new DataHandler(i, this);
/* */ }
/* */
/* */ public final void setDataHandler(int paramInt, DataHandler paramDataHandler)
/* */ throws StdQTException
/* */ {
/* 266 */ StdQTException.checkError(SetMediaDataHandler(_ID(), (short)paramInt, QTObject.ID(paramDataHandler)));
/* */ }
/* */
/* */ public MediaHandler getHandler()
/* */ throws StdQTException
/* */ {
/* 275 */ return makeHandler(getNativeMediaHandler(), this);
/* */ }
/* */
/* */ public final void setHandler(MediaHandler paramMediaHandler)
/* */ throws StdQTException
/* */ {
/* 284 */ StdQTException.checkError(SetMediaHandler(_ID(), QTObject.ID(paramMediaHandler)));
/* */ }
/* */
/* */ public final Track getTrack()
/* */ throws QTException
/* */ {
/* 293 */ return Track.fromMedia(this);
/* */ }
/* */
/* */ public final int getCreationTime()
/* */ throws StdQTException
/* */ {
/* 302 */ int i = GetMediaCreationTime(_ID());
/* 303 */ StdQTException.checkError(GetMoviesError());
/* 304 */ return i;
/* */ }
/* */
/* */ public final int getModificationTime()
/* */ throws StdQTException
/* */ {
/* 313 */ int i = GetMediaModificationTime(_ID());
/* 314 */ StdQTException.checkError(GetMoviesError());
/* 315 */ return i;
/* */ }
/* */
/* */ public final int getTimeScale()
/* */ throws StdQTException
/* */ {
/* 324 */ int i = GetMediaTimeScale(_ID());
/* 325 */ StdQTException.checkError(GetMoviesError());
/* 326 */ return i;
/* */ }
/* */
/* */ public final void setTimeScale(int paramInt)
/* */ throws StdQTException
/* */ {
/* 335 */ SetMediaTimeScale(_ID(), paramInt);
/* 336 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public final int getDuration()
/* */ throws StdQTException
/* */ {
/* 345 */ int i = GetMediaDuration(_ID());
/* 346 */ StdQTException.checkError(GetMoviesError());
/* 347 */ return i;
/* */ }
/* */
/* */ public final int getLanguage()
/* */ throws StdQTException
/* */ {
/* 356 */ int i = GetMediaLanguage(_ID());
/* 357 */ StdQTException.checkError(GetMoviesError());
/* 358 */ return i;
/* */ }
/* */
/* */ public final void setLanguage(int paramInt)
/* */ throws StdQTException
/* */ {
/* 367 */ SetMediaLanguage(_ID(), (short)paramInt);
/* 368 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public final int getQuality()
/* */ throws StdQTException
/* */ {
/* 377 */ int i = GetMediaQuality(_ID());
/* 378 */ StdQTException.checkError(GetMoviesError());
/* 379 */ return i;
/* */ }
/* */
/* */ public final void setQuality(int paramInt)
/* */ throws StdQTException
/* */ {
/* 388 */ SetMediaQuality(_ID(), (short)paramInt);
/* 389 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ public final HandlerInfo getHandlerDescription()
/* */ throws StdQTException
/* */ {
/* 398 */ int[] arrayOfInt1 = new int[1];
/* 399 */ byte[] arrayOfByte = new byte['ÿ'];
/* 400 */ int[] arrayOfInt2 = new int[1];
/* 401 */ GetMediaHandlerDescription(_ID(), arrayOfInt1, arrayOfByte, arrayOfInt2);
/* 402 */ StdQTException.checkError(GetMoviesError());
/* 403 */ return new HandlerInfo(arrayOfInt1[0], new String(arrayOfByte, 1, arrayOfByte[0]), arrayOfInt2[0]);
/* */ }
/* */
/* */ public final UserData getUserData()
/* */ throws StdQTException
/* */ {
/* 414 */ return UserData.fromMedia(this);
/* */ }
/* */
/* */ public final AtomContainer getInputMap()
/* */ throws StdQTException
/* */ {
/* 423 */ return AtomContainer.fromMediaInput(this);
/* */ }
/* */
/* */ public final void setInputMap(AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 432 */ StdQTException.checkError(SetMediaInputMap(_ID(), QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ public final void beginEdits()
/* */ throws StdQTException
/* */ {
/* 440 */ StdQTException.checkError(BeginMediaEdits(_ID()));
/* */ }
/* */
/* */ public final void endEdits()
/* */ throws StdQTException
/* */ {
/* 448 */ StdQTException.checkError(EndMediaEdits(_ID()));
/* */ }
/* */
/* */ public final void setDefaultDataRefIndex(int paramInt)
/* */ throws StdQTException
/* */ {
/* 457 */ StdQTException.checkError(SetMediaDefaultDataRefIndex(_ID(), (short)paramInt));
/* */ }
/* */
/* */ public final HandlerInfo getDataHandlerDescription(int paramInt)
/* */ throws StdQTException
/* */ {
/* 467 */ int[] arrayOfInt1 = new int[1];
/* 468 */ byte[] arrayOfByte = new byte['ÿ'];
/* 469 */ int[] arrayOfInt2 = new int[1];
/* 470 */ GetMediaDataHandlerDescription(_ID(), (short)paramInt, arrayOfInt1, arrayOfByte, arrayOfInt2);
/* 471 */ StdQTException.checkError(GetMoviesError());
/* 472 */ return new HandlerInfo(arrayOfInt1[0], new String(arrayOfByte, 1, arrayOfByte[0]), arrayOfInt2[0]);
/* */ }
/* */
/* */ public final int getSampleDescriptionCount()
/* */ throws StdQTException
/* */ {
/* 483 */ int i = GetMediaSampleDescriptionCount(_ID());
/* 484 */ StdQTException.checkError(GetMoviesError());
/* 485 */ return i;
/* */ }
/* */
/* */ public final int getSampleCount()
/* */ throws StdQTException
/* */ {
/* 494 */ int i = GetMediaSampleCount(_ID());
/* 495 */ StdQTException.checkError(GetMoviesError());
/* 496 */ return i;
/* */ }
/* */
/* */ public final int getSyncSampleCount()
/* */ throws StdQTException
/* */ {
/* 505 */ int i = GetMediaSyncSampleCount(_ID());
/* 506 */ StdQTException.checkError(GetMoviesError());
/* 507 */ return i;
/* */ }
/* */
/* */ public final TimeInfo sampleNumToMediaTime(int paramInt)
/* */ throws StdQTException
/* */ {
/* 517 */ int[] arrayOfInt1 = new int[1];
/* 518 */ int[] arrayOfInt2 = new int[1];
/* */
/* 520 */ SampleNumToMediaTime(_ID(), paramInt, arrayOfInt1, arrayOfInt2);
/* 521 */ StdQTException.checkError(GetMoviesError());
/* */
/* 523 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public final SampleTimeInfo timeToSampleNum(int paramInt)
/* */ throws StdQTException
/* */ {
/* 533 */ int[] arrayOfInt1 = new int[1];
/* 534 */ int[] arrayOfInt2 = new int[1];
/* 535 */ int[] arrayOfInt3 = new int[1];
/* */
/* 537 */ MediaTimeToSampleNum(_ID(), paramInt, arrayOfInt1, arrayOfInt2, arrayOfInt3);
/* 538 */ StdQTException.checkError(GetMoviesError());
/* */
/* 540 */ return new SampleTimeInfo(arrayOfInt2[0], arrayOfInt3[0], arrayOfInt1[0]);
/* */ }
/* */
/* */ public final int addSample(QTHandleRef paramQTHandleRef, int paramInt1, int paramInt2, int paramInt3, SampleDescription paramSampleDescription, int paramInt4, int paramInt5)
/* */ throws StdQTException
/* */ {
/* 564 */ int[] arrayOfInt = new int[1];
/* 565 */ StdQTException.checkError(AddMediaSample(_ID(), QTObject.ID(paramQTHandleRef), paramInt1, paramInt2, paramInt3, QTObject.ID(paramSampleDescription), paramInt4, (short)paramInt5, arrayOfInt));
/* */
/* 576 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final MediaSample getSample(int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 588 */ QTHandle localQTHandle = new QTHandle();
/* 589 */ SampleDescription localSampleDescription = makeDescription();
/* 590 */ int[] arrayOfInt1 = new int[1];
/* 591 */ int[] arrayOfInt2 = new int[1];
/* 592 */ int[] arrayOfInt3 = new int[1];
/* 593 */ int[] arrayOfInt4 = new int[1];
/* 594 */ int[] arrayOfInt5 = new int[1];
/* 595 */ short[] arrayOfShort = new short[1];
/* */
/* 597 */ StdQTException.checkError(GetMediaSample(_ID(), QTObject.ID(localQTHandle), paramInt1, arrayOfInt1, paramInt2, arrayOfInt2, arrayOfInt3, QTObject.ID(localSampleDescription), arrayOfInt4, paramInt3, arrayOfInt5, arrayOfShort));
/* */
/* 612 */ return new MediaSample(arrayOfInt2[0], arrayOfInt3[0], localQTHandle, 0, arrayOfInt1[0], arrayOfInt5[0], localSampleDescription, arrayOfInt4[0], arrayOfShort[0]);
/* */ }
/* */
/* */ public final int addSampleReference(int paramInt1, int paramInt2, int paramInt3, SampleDescription paramSampleDescription, int paramInt4, int paramInt5)
/* */ throws StdQTException
/* */ {
/* 633 */ int[] arrayOfInt = new int[1];
/* 634 */ StdQTException.checkError(AddMediaSampleReference(_ID(), paramInt1, paramInt2, paramInt3, QTObject.ID(paramSampleDescription), paramInt4, (short)paramInt5, arrayOfInt));
/* */
/* 644 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final SampleInfo getSampleReference(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 655 */ int[] arrayOfInt1 = new int[1];
/* 656 */ int[] arrayOfInt2 = new int[1];
/* 657 */ int[] arrayOfInt3 = new int[1];
/* 658 */ int[] arrayOfInt4 = new int[1];
/* 659 */ SampleDescription localSampleDescription = makeDescription();
/* 660 */ int[] arrayOfInt5 = new int[1];
/* 661 */ int[] arrayOfInt6 = new int[1];
/* 662 */ short[] arrayOfShort = new short[1];
/* */
/* 664 */ StdQTException.checkError(GetMediaSampleReference(_ID(), arrayOfInt1, arrayOfInt2, paramInt1, arrayOfInt3, arrayOfInt4, QTObject.ID(localSampleDescription), arrayOfInt5, paramInt2, arrayOfInt6, arrayOfShort));
/* */
/* 678 */ return new SampleInfo(arrayOfInt3[0], arrayOfInt4[0], arrayOfInt1[0], arrayOfInt2[0], arrayOfInt6[0], localSampleDescription, arrayOfInt5[0], arrayOfShort[0]);
/* */ }
/* */
/* */ public final int addSampleReference(SampleDescription paramSampleDescription, int paramInt, SampleReferenceVector paramSampleReferenceVector)
/* */ throws StdQTException
/* */ {
/* 692 */ int[] arrayOfInt = new int[1];
/* 693 */ int i = AddMediaSampleReferences(_ID(), QTObject.ID(paramSampleDescription), paramInt, QTObject.ID(paramSampleReferenceVector), arrayOfInt);
/* */
/* 698 */ StdQTException.checkError(i);
/* 699 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final SampleReferenceInfo getSampleReferences(int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 710 */ int[] arrayOfInt1 = new int[1];
/* 711 */ int[] arrayOfInt2 = new int[1];
/* 712 */ int[] arrayOfInt3 = new int[1];
/* 713 */ SampleDescription localSampleDescription = makeDescription();
/* 714 */ SampleReferenceVector localSampleReferenceVector = new SampleReferenceVector(paramInt2);
/* 715 */ int i = QTObject.ID(localSampleReferenceVector);
/* 716 */ int j = GetMediaSampleReferences(_ID(), paramInt1, arrayOfInt1, QTObject.ID(localSampleDescription), arrayOfInt2, paramInt2, arrayOfInt3, i);
/* */
/* 724 */ StdQTException.checkError(j);
/* 725 */ localSampleReferenceVector._setNumSamples(arrayOfInt3[0]);
/* 726 */ return new SampleReferenceInfo(arrayOfInt1[0], localSampleDescription, arrayOfInt2[0], localSampleReferenceVector);
/* */ }
/* */
/* */ public final void setPreferredChunkSize(int paramInt)
/* */ throws StdQTException
/* */ {
/* 735 */ StdQTException.checkError(SetMediaPreferredChunkSize(_ID(), paramInt));
/* */ }
/* */
/* */ public final int getPreferredChunkSize()
/* */ throws StdQTException
/* */ {
/* 744 */ int[] arrayOfInt = new int[1];
/* 745 */ StdQTException.checkError(GetMediaPreferredChunkSize(_ID(), arrayOfInt));
/* 746 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final void setShadowSync(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 757 */ StdQTException.checkError(SetMediaShadowSync(_ID(), paramInt1, paramInt2));
/* */ }
/* */
/* */ public final int getShadowSync(int paramInt)
/* */ throws StdQTException
/* */ {
/* 766 */ int[] arrayOfInt = new int[1];
/* 767 */ StdQTException.checkError(GetMediaShadowSync(_ID(), paramInt, arrayOfInt));
/* 768 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final TimeInfo getNextInterestingTime(int paramInt1, int paramInt2, float paramFloat)
/* */ throws StdQTException
/* */ {
/* 780 */ int[] arrayOfInt1 = new int[1];
/* 781 */ int[] arrayOfInt2 = new int[1];
/* */
/* 783 */ GetMediaNextInterestingTime(_ID(), (short)paramInt1, paramInt2, QTUtils.X2Fix(paramFloat), arrayOfInt1, arrayOfInt2);
/* 784 */ StdQTException.checkError(GetMoviesError());
/* */
/* 786 */ return new TimeInfo(arrayOfInt1[0], arrayOfInt2[0]);
/* */ }
/* */
/* */ public final int getDataSize(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 797 */ int i = GetMediaDataSize(_ID(), paramInt1, paramInt2);
/* 798 */ StdQTException.checkError(GetMoviesError());
/* 799 */ return i;
/* */ }
/* */
/* */ public final DataRef getDataRef(int paramInt)
/* */ throws QTException
/* */ {
/* 809 */ return DataRef.fromMedia(this, paramInt);
/* */ }
/* */
/* */ public final void setDataRef(int paramInt, DataRef paramDataRef)
/* */ throws StdQTException
/* */ {
/* 819 */ StdQTException.checkError(SetMediaDataRef(_ID(), (short)paramInt, QTObject.ID(paramDataRef), paramDataRef.getType()));
/* */ }
/* */
/* */ public final void setDataRefAttributes(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 827 */ StdQTException.checkError(SetMediaDataRefAttributes(_ID(), (short)paramInt1, paramInt2));
/* */ }
/* */
/* */ public final int addDataRef(DataRef paramDataRef)
/* */ throws StdQTException
/* */ {
/* 837 */ short[] arrayOfShort = new short[1];
/* 838 */ StdQTException.checkError(AddMediaDataRef(_ID(), arrayOfShort, QTObject.ID(paramDataRef), paramDataRef.getType()));
/* 839 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public final int getDataRefCount()
/* */ throws StdQTException
/* */ {
/* 848 */ short[] arrayOfShort = new short[1];
/* 849 */ StdQTException.checkError(GetMediaDataRefCount(_ID(), arrayOfShort));
/* 850 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public final void setPlayHints(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 861 */ SetMediaPlayHints(_ID(), paramInt1, paramInt2);
/* 862 */ StdQTException.checkError(GetMoviesError());
/* */ }
/* */
/* */ /** @deprecated */
/* */ public final int getPlayHints(int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 874 */ int[] arrayOfInt = { 0 };
/* 875 */ GetMediaPlayHints(_ID(), arrayOfInt);
/* 876 */ StdQTException.checkError(GetMoviesError());
/* 877 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final int getPlayHints()
/* */ throws StdQTException
/* */ {
/* 886 */ int[] arrayOfInt = { 0 };
/* 887 */ GetMediaPlayHints(_ID(), arrayOfInt);
/* 888 */ StdQTException.checkError(GetMoviesError());
/* 889 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final void setPropertyAtom(AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 897 */ StdQTException.checkError(SetMediaPropertyAtom(_ID(), QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ public final AtomContainer getPropertyAtom()
/* */ throws StdQTException
/* */ {
/* 906 */ return AtomContainer.fromMediaProperty(this);
/* */ }
/* */
/* */ public final void loadIntoRam(int paramInt1, int paramInt2, int paramInt3)
/* */ throws StdQTException
/* */ {
/* 917 */ StdQTException.checkError(LoadMediaIntoRam(_ID(), paramInt1, paramInt2, paramInt3));
/* */ }
/* */
/* */ public void copyUserDataToMedia(Media paramMedia, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 927 */ StdQTException.checkError(CopyMediaUserData(_ID(), QTObject.ID(paramMedia), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public void copyUserDataFromMedia(Media paramMedia, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 939 */ StdQTException.checkError(CopyMediaUserData(QTObject.ID(paramMedia), _ID(), paramBoolean == true ? 1919970403 : 1835361639));
/* */ }
/* */
/* */ public static void copyUserData(Media paramMedia1, Media paramMedia2, int paramInt)
/* */ throws StdQTException
/* */ {
/* 953 */ StdQTException.checkError(CopyMediaUserData(QTObject.ID(paramMedia1), QTObject.ID(paramMedia2), paramInt));
/* */ }
/* */
/* */ private static native int NewTrackMedia(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short GetMoviesError();
/* */
/* */ private static native void GetMediaHandlerDescription(int paramInt, int[] paramArrayOfInt1, byte[] paramArrayOfByte, int[] paramArrayOfInt2);
/* */
/* */ private static native int GetTrackMedia(int paramInt);
/* */
/* */ private static native int GetMediaHandler(int paramInt);
/* */
/* */ private static native void GetMediaSampleDescription(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short SetMediaSampleDescription(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int GetMediaDataHandler(int paramInt, short paramShort);
/* */
/* */ private static native short SetMediaDataHandler(int paramInt1, short paramShort, int paramInt2);
/* */
/* */ private static native short SetMediaHandler(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMediaCreationTime(int paramInt);
/* */
/* */ private static native int GetMediaModificationTime(int paramInt);
/* */
/* */ private static native int GetMediaTimeScale(int paramInt);
/* */
/* */ private static native void SetMediaTimeScale(int paramInt1, int paramInt2);
/* */
/* */ private static native int GetMediaDuration(int paramInt);
/* */
/* */ private static native short GetMediaLanguage(int paramInt);
/* */
/* */ private static native void SetMediaLanguage(int paramInt, short paramShort);
/* */
/* */ private static native short GetMediaQuality(int paramInt);
/* */
/* */ private static native void SetMediaQuality(int paramInt, short paramShort);
/* */
/* */ private static native short SetMediaInputMap(int paramInt1, int paramInt2);
/* */
/* */ private static native short BeginMediaEdits(int paramInt);
/* */
/* */ private static native short EndMediaEdits(int paramInt);
/* */
/* */ private static native short SetMediaDefaultDataRefIndex(int paramInt, short paramShort);
/* */
/* */ private static native void GetMediaDataHandlerDescription(int paramInt, short paramShort, int[] paramArrayOfInt1, byte[] paramArrayOfByte, int[] paramArrayOfInt2);
/* */
/* */ private static native int GetMediaSampleDescriptionCount(int paramInt);
/* */
/* */ private static native int GetMediaSampleCount(int paramInt);
/* */
/* */ private static native int GetMediaSyncSampleCount(int paramInt);
/* */
/* */ private static native void SampleNumToMediaTime(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native void MediaTimeToSampleNum(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3);
/* */
/* */ private static native short AddMediaSample(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, short paramShort, int[] paramArrayOfInt);
/* */
/* */ private static native short GetMediaSample(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt1, int paramInt4, int[] paramArrayOfInt2, int[] paramArrayOfInt3, int paramInt5, int[] paramArrayOfInt4, int paramInt6, int[] paramArrayOfInt5, short[] paramArrayOfShort);
/* */
/* */ private static native short AddMediaSampleReference(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, short paramShort, int[] paramArrayOfInt);
/* */
/* */ private static native short GetMediaSampleReference(int paramInt1, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int paramInt2, int[] paramArrayOfInt3, int[] paramArrayOfInt4, int paramInt3, int[] paramArrayOfInt5, int paramInt4, int[] paramArrayOfInt6, short[] paramArrayOfShort);
/* */
/* */ private static native short AddMediaSampleReferences(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int[] paramArrayOfInt);
/* */
/* */ private static native short GetMediaSampleReferences(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int paramInt3, int[] paramArrayOfInt2, int paramInt4, int[] paramArrayOfInt3, int paramInt5);
/* */
/* */ private static native short SetMediaPreferredChunkSize(int paramInt1, int paramInt2);
/* */
/* */ private static native short GetMediaPreferredChunkSize(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short SetMediaShadowSync(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short GetMediaShadowSync(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native void GetMediaNextInterestingTime(int paramInt1, short paramShort, int paramInt2, int paramInt3, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int GetMediaDataSize(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short SetMediaDataRef(int paramInt1, short paramShort, int paramInt2, int paramInt3);
/* */
/* */ private static native short SetMediaDataRefAttributes(int paramInt1, short paramShort, int paramInt2);
/* */
/* */ private static native short AddMediaDataRef(int paramInt1, short[] paramArrayOfShort, int paramInt2, int paramInt3);
/* */
/* */ private static native short GetMediaDataRefCount(int paramInt, short[] paramArrayOfShort);
/* */
/* */ private static native void SetMediaPlayHints(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native void GetMediaPlayHints(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short SetMediaPropertyAtom(int paramInt1, int paramInt2);
/* */
/* */ private static native short LoadMediaIntoRam(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short CopyMediaUserData(int paramInt1, int paramInt2, int paramInt3);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.media.Media
* JD-Core Version: 0.6.2
*/