/* */ package quicktime.std.movies;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.image.GECompressorInfo;
/* */ import quicktime.std.image.GraphicsExporter;
/* */ import quicktime.std.image.GraphicsImporter;
/* */ import quicktime.std.movies.media.Media;
/* */ import quicktime.std.movies.media.ThreeDMediaHandler;
/* */ import quicktime.std.qtcomponents.CompressionDialog;
/* */ import quicktime.std.qtcomponents.MovieExporter;
/* */ import quicktime.std.qtcomponents.MovieImporter;
/* */ import quicktime.util.QTByteObject;
/* */ import quicktime.util.QTHandle;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.QTPointer;
/* */ import quicktime.util.QTPointerRef;
/* */ import quicktime.util.QTUtils;
/* */ import quicktime.vr.QTVRException;
/* */ import quicktime.vr.QTVRInstance;
/* */
/* */ public class AtomContainer extends QTHandleRef
/* */ {
/* */ public static AtomContainer fromGraphicsExporter(GraphicsExporter paramGraphicsExporter)
/* */ throws StdQTException
/* */ {
/* 35 */ int[] arrayOfInt = { 0 };
/* 36 */ StdQTException.checkError(GraphicsExportGetSettingsAsAtomContainer(QTObject.ID(paramGraphicsExporter), arrayOfInt));
/* */
/* 39 */ return new AtomContainer(arrayOfInt[0], null, false);
/* */ }
/* */
/* */ public static GECompressorInfo fromGraphicsExporterCompressor(GraphicsExporter paramGraphicsExporter)
/* */ throws QTException
/* */ {
/* 50 */ byte[] arrayOfByte = new byte[1];
/* 51 */ int[] arrayOfInt = new int[1];
/* 52 */ StdQTException.checkError(GraphicsExportCanUseCompressor(QTObject.ID(paramGraphicsExporter), arrayOfByte, arrayOfInt));
/* */
/* 55 */ AtomContainer localAtomContainer = arrayOfByte[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */
/* 58 */ return new GECompressorInfo(arrayOfByte[0] != 0, localAtomContainer);
/* */ }
/* */
/* */ public static AtomContainer fromGraphicsExporterMIME(GraphicsExporter paramGraphicsExporter)
/* */ throws StdQTException
/* */ {
/* 68 */ int[] arrayOfInt = { 0 };
/* 69 */ StdQTException.checkError(GraphicsExportGetMIMETypeList(QTObject.ID(paramGraphicsExporter), arrayOfInt));
/* */
/* 72 */ return new AtomContainer(arrayOfInt[0], null, false);
/* */ }
/* */
/* */ public static AtomContainer fromQTVRInstanceWorld(QTVRInstance paramQTVRInstance)
/* */ throws QTVRException
/* */ {
/* 84 */ int[] arrayOfInt = { 0 };
/* 85 */ int i = 0;
/* 86 */ synchronized (QTNative.globalsLock) {
/* 87 */ i = QTVRGetVRWorld(QTObject.ID(paramQTVRInstance), arrayOfInt);
/* */ }
/* 89 */ QTVRException.checkError(i);
/* 90 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromQTVRInstanceNode(QTVRInstance paramQTVRInstance, int paramInt)
/* */ throws QTVRException
/* */ {
/* 104 */ int[] arrayOfInt = { 0 };
/* 105 */ int i = 0;
/* 106 */ synchronized (QTNative.globalsLock) {
/* 107 */ i = QTVRGetNodeInfo(QTObject.ID(paramQTVRInstance), paramInt, arrayOfInt);
/* */ }
/* 109 */ QTVRException.checkError(i);
/* 110 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromQTHandle(QTHandleRef paramQTHandleRef)
/* */ {
/* 124 */ if (QTObject.ID(paramQTHandleRef) != 0) {
/* 125 */ return new AtomContainer(QTObject.ID(paramQTHandleRef), paramQTHandleRef, paramQTHandleRef.isLocked());
/* */ }
/* 127 */ return null;
/* */ }
/* */
/* */ public static AtomContainer fromGraphicsImporterMIME(GraphicsImporter paramGraphicsImporter)
/* */ throws StdQTException
/* */ {
/* 137 */ int[] arrayOfInt = { 0 };
/* 138 */ StdQTException.checkError(GraphicsImportGetMIMETypeList(QTObject.ID(paramGraphicsImporter), arrayOfInt));
/* */
/* 141 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromGraphicsImporterExportImage(GraphicsImporter paramGraphicsImporter)
/* */ throws StdQTException
/* */ {
/* 151 */ int[] arrayOfInt = { 0 };
/* 152 */ StdQTException.checkError(GraphicsImportGetExportImageTypeList(QTObject.ID(paramGraphicsImporter), arrayOfInt));
/* */
/* 155 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromGraphicsImporterExportSettings(GraphicsImporter paramGraphicsImporter)
/* */ throws StdQTException
/* */ {
/* 165 */ int[] arrayOfInt = { 0 };
/* 166 */ StdQTException.checkError(GraphicsImportGetExportSettingsAsAtomContainer(QTObject.ID(paramGraphicsImporter), arrayOfInt));
/* */
/* 169 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromMediaInput(Media paramMedia)
/* */ throws StdQTException
/* */ {
/* 179 */ int[] arrayOfInt = new int[1];
/* 180 */ StdQTException.checkError(GetMediaInputMap(QTObject.ID(paramMedia), arrayOfInt));
/* */
/* 183 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromMediaProperty(Media paramMedia)
/* */ throws StdQTException
/* */ {
/* 193 */ int[] arrayOfInt = new int[1];
/* 194 */ StdQTException.checkError(GetMediaPropertyAtom(QTObject.ID(paramMedia), arrayOfInt));
/* */
/* 197 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromMovieExporter(MovieExporter paramMovieExporter)
/* */ throws StdQTException
/* */ {
/* 207 */ int[] arrayOfInt = { 0 };
/* 208 */ StdQTException.checkError(MovieExportGetSettingsAsAtomContainer(QTObject.ID(paramMovieExporter), arrayOfInt));
/* */
/* 211 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromMovieImporterMIME(MovieImporter paramMovieImporter)
/* */ throws StdQTException
/* */ {
/* 221 */ int[] arrayOfInt = { 0 };
/* 222 */ StdQTException.checkError(MovieImportGetMIMETypeList(QTObject.ID(paramMovieImporter), arrayOfInt));
/* */
/* 225 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromMovieImporterSettings(MovieImporter paramMovieImporter)
/* */ throws StdQTException
/* */ {
/* 235 */ int[] arrayOfInt = { 0 };
/* 236 */ StdQTException.checkError(MovieImportGetSettingsAsAtomContainer(QTObject.ID(paramMovieImporter), arrayOfInt));
/* */
/* 239 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromThreeDMediaHandlerObject(ThreeDMediaHandler paramThreeDMediaHandler)
/* */ throws StdQTException
/* */ {
/* 249 */ int[] arrayOfInt = new int[1];
/* 250 */ StdQTException.checkError(Media3DGetNamedObjectList(QTObject.ID(paramThreeDMediaHandler), arrayOfInt));
/* */
/* 253 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromThreeDMediaHandlerRenderer(ThreeDMediaHandler paramThreeDMediaHandler)
/* */ throws StdQTException
/* */ {
/* 263 */ int[] arrayOfInt = new int[1];
/* 264 */ StdQTException.checkError(Media3DGetRendererList(QTObject.ID(paramThreeDMediaHandler), arrayOfInt));
/* */
/* 267 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ public static AtomContainer fromCompressionDialog(CompressionDialog paramCompressionDialog)
/* */ throws StdQTException
/* */ {
/* 277 */ int[] arrayOfInt = { 0 };
/* 278 */ StdQTException.checkError(SCGetSettingsAsAtomContainer(QTObject.ID(paramCompressionDialog), arrayOfInt));
/* */
/* 281 */ return arrayOfInt[0] != 0 ? new AtomContainer(arrayOfInt[0], null, false) : null;
/* */ }
/* */
/* */ protected AtomContainer(int paramInt, Object paramObject, boolean paramBoolean)
/* */ {
/* 286 */ super(paramInt, paramObject, paramBoolean);
/* */ }
/* */
/* */ public AtomContainer()
/* */ throws QTException
/* */ {
/* 294 */ super(allocate(), null, false);
/* */ }
/* */
/* */ private static int allocate() throws StdQTException
/* */ {
/* 299 */ int[] arrayOfInt = { 0 };
/* 300 */ int i = QTNewAtomContainer(arrayOfInt);
/* 301 */ if (i != 0) throw new StdQTException(i);
/* 302 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public AtomData getAtomData(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 314 */ int[] arrayOfInt1 = new int[1];
/* 315 */ int[] arrayOfInt2 = new int[1];
/* 316 */ StdQTException.checkError(QTGetAtomDataPtr(_ID(), paramAtom.getAtom(), arrayOfInt1, arrayOfInt2));
/* */
/* 319 */ return new AtomData(arrayOfInt2[0], arrayOfInt1[0], this);
/* */ }
/* */
/* */ public int getAtomDataSize(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 329 */ int[] arrayOfInt1 = new int[1];
/* 330 */ int[] arrayOfInt2 = new int[1];
/* 331 */ StdQTException.checkError(QTGetAtomDataPtr(_ID(), paramAtom.getAtom(), arrayOfInt1, arrayOfInt2));
/* */
/* 334 */ return arrayOfInt1[0];
/* */ }
/* */
/* */ public int getNextChildType(Atom paramAtom, int paramInt)
/* */ throws StdQTException
/* */ {
/* 345 */ int i = QTGetNextChildType(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt);
/* */
/* 349 */ StdQTException.checkError(GetMoviesError());
/* 350 */ return i;
/* */ }
/* */
/* */ public int countChildrenOfType(Atom paramAtom, int paramInt)
/* */ throws StdQTException
/* */ {
/* 361 */ int i = QTCountChildrenOfType(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt);
/* */
/* 365 */ StdQTException.checkError(GetMoviesError());
/* 366 */ return i;
/* */ }
/* */
/* */ public Atom findChildByIndex_Atom(Atom paramAtom, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 378 */ int i = QTFindChildByIndex(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, (short)paramInt2, null);
/* */
/* 384 */ StdQTException.checkError(GetMoviesError());
/* 385 */ return i != 0 ? new Atom(i) : null;
/* */ }
/* */
/* */ public int findChildByIndex_id(Atom paramAtom, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 397 */ int[] arrayOfInt = new int[1];
/* 398 */ QTFindChildByIndex(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, (short)paramInt2, arrayOfInt);
/* */
/* 404 */ StdQTException.checkError(GetMoviesError());
/* 405 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public Atom findChildByID_Atom(Atom paramAtom, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 417 */ int i = QTFindChildByID(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, null);
/* */
/* 423 */ StdQTException.checkError(GetMoviesError());
/* 424 */ return i != 0 ? new Atom(i) : null;
/* */ }
/* */
/* */ public int findChildByID_index(Atom paramAtom, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 436 */ short[] arrayOfShort = new short[1];
/* 437 */ QTFindChildByID(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, arrayOfShort);
/* */
/* 443 */ StdQTException.checkError(GetMoviesError());
/* 444 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public Atom nextChildAnyType(Atom paramAtom1, Atom paramAtom2)
/* */ throws StdQTException
/* */ {
/* 455 */ int[] arrayOfInt = new int[1];
/* 456 */ int i = paramAtom1 != null ? paramAtom1.getAtom() : 0;
/* 457 */ StdQTException.checkError(QTNextChildAnyType(_ID(), i, paramAtom2 != null ? paramAtom2.getAtom() : 0, arrayOfInt));
/* */
/* 463 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, QTHandleRef paramQTHandleRef)
/* */ throws StdQTException
/* */ {
/* 473 */ QTPointerRef localQTPointerRef = paramQTHandleRef.toQTPointer();
/* 474 */ int i = QTSetAtomData(_ID(), paramAtom.getAtom(), paramQTHandleRef.getSize(), QTObject.ID(localQTPointerRef));
/* 475 */ if (!isLocked()) paramQTHandleRef.unlock();
/* 476 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, QTPointerRef paramQTPointerRef)
/* */ throws StdQTException
/* */ {
/* 486 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), paramQTPointerRef.getSize(), QTObject.ID(paramQTPointerRef)));
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, byte[] paramArrayOfByte)
/* */ throws StdQTException
/* */ {
/* 498 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), paramArrayOfByte.length, paramArrayOfByte));
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, QTByteObject paramQTByteObject)
/* */ throws StdQTException
/* */ {
/* 510 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), paramQTByteObject.getSize(), paramQTByteObject.getBytes()));
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, int paramInt)
/* */ throws StdQTException
/* */ {
/* 522 */ int[] arrayOfInt = { paramInt };
/* 523 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), 4, arrayOfInt));
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, short paramShort)
/* */ throws StdQTException
/* */ {
/* 535 */ short[] arrayOfShort = { paramShort };
/* 536 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), 2, arrayOfShort));
/* */ }
/* */
/* */ public void setAtomData(Atom paramAtom, byte paramByte)
/* */ throws StdQTException
/* */ {
/* 548 */ byte[] arrayOfByte = { paramByte };
/* 549 */ StdQTException.checkError(QTSetAtomData(_ID(), paramAtom.getAtom(), 1, arrayOfByte));
/* */ }
/* */
/* */ public QTHandle copyAtomDataToHandle(Atom paramAtom)
/* */ throws QTException
/* */ {
/* 561 */ QTHandle localQTHandle = new QTHandle();
/* 562 */ StdQTException.checkError(QTCopyAtomDataToHandle(_ID(), paramAtom.getAtom(), QTObject.ID(localQTHandle)));
/* */
/* 565 */ return localQTHandle;
/* */ }
/* */
/* */ public int copyAtomDataToPtr(Atom paramAtom, boolean paramBoolean, QTPointer paramQTPointer)
/* */ throws StdQTException
/* */ {
/* 577 */ int[] arrayOfInt = new int[1];
/* 578 */ byte b = (byte)(paramBoolean ? 1 : 0);
/* 579 */ StdQTException.checkError(QTCopyAtomDataToPtr(_ID(), paramAtom.getAtom(), b, paramQTPointer.getSize(), QTObject.ID(paramQTPointer), arrayOfInt));
/* */
/* 582 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public byte[] copyAtomDataToArray(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 591 */ int[] arrayOfInt1 = { 0 };
/* 592 */ int[] arrayOfInt2 = { 0 };
/* 593 */ StdQTException.checkError(QTGetAtomDataPtr(_ID(), paramAtom.getAtom(), arrayOfInt1, arrayOfInt2));
/* */
/* 596 */ byte[] arrayOfByte = new byte[arrayOfInt1[0]];
/* 597 */ int[] arrayOfInt3 = { 0 };
/* 598 */ StdQTException.checkError(QTCopyAtomDataToPtr(_ID(), paramAtom.getAtom(), (byte)0, arrayOfByte.length, arrayOfByte, arrayOfInt3));
/* */
/* 601 */ return arrayOfByte;
/* */ }
/* */
/* */ public int getAtomType(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 611 */ int[] arrayOfInt = new int[1];
/* 612 */ StdQTException.checkError(QTGetAtomTypeAndID(_ID(), paramAtom.getAtom(), arrayOfInt, null));
/* */
/* 615 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int getAtomID(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 625 */ int[] arrayOfInt = new int[1];
/* 626 */ StdQTException.checkError(QTGetAtomTypeAndID(_ID(), paramAtom.getAtom(), null, arrayOfInt));
/* */
/* 629 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public AtomContainer copyAtom(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 640 */ int[] arrayOfInt = new int[1];
/* 641 */ StdQTException.checkError(QTCopyAtom(_ID(), paramAtom.getAtom(), arrayOfInt));
/* */
/* 644 */ return new AtomContainer(arrayOfInt[0], null, false);
/* */ }
/* */
/* */ protected final void doLock()
/* */ {
/* 652 */ QTLockContainer(_ID());
/* */ }
/* */
/* */ protected final void doUnlock()
/* */ {
/* 660 */ QTUnlockContainer(_ID());
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTException
/* */ {
/* 673 */ int[] arrayOfInt = new int[1];
/* 674 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, 0, 0, arrayOfInt));
/* */
/* 684 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, QTByteObject paramQTByteObject)
/* */ throws StdQTException
/* */ {
/* 698 */ int[] arrayOfInt = new int[1];
/* 699 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, paramQTByteObject.getSize(), paramQTByteObject.getBytes(), arrayOfInt));
/* */
/* 709 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte)
/* */ throws StdQTException
/* */ {
/* 723 */ int[] arrayOfInt = new int[1];
/* 724 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, paramArrayOfByte.length, paramArrayOfByte, arrayOfInt));
/* */
/* 734 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, QTPointerRef paramQTPointerRef)
/* */ throws StdQTException
/* */ {
/* 748 */ int[] arrayOfInt = new int[1];
/* 749 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, paramQTPointerRef.getSize(), QTObject.ID(paramQTPointerRef), arrayOfInt));
/* */
/* 759 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, QTHandleRef paramQTHandleRef)
/* */ throws StdQTException
/* */ {
/* 773 */ int[] arrayOfInt = new int[1];
/* 774 */ QTPointerRef localQTPointerRef = paramQTHandleRef.toQTPointer();
/* 775 */ int i = QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, paramQTHandleRef.getSize(), QTObject.ID(localQTPointerRef), arrayOfInt);
/* */
/* 783 */ if (!paramQTHandleRef.isLocked()) paramQTHandleRef.unlock();
/* */
/* 785 */ StdQTException.checkError(i);
/* 786 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
/* */ throws StdQTException
/* */ {
/* 800 */ int[] arrayOfInt1 = new int[1];
/* 801 */ int[] arrayOfInt2 = { paramInt4 };
/* 802 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, 4, arrayOfInt2, arrayOfInt1));
/* */
/* 812 */ return arrayOfInt1[0] != 0 ? new Atom(arrayOfInt1[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, short paramShort)
/* */ throws StdQTException
/* */ {
/* 826 */ int[] arrayOfInt = new int[1];
/* 827 */ short[] arrayOfShort = { paramShort };
/* 828 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, 2, arrayOfShort, arrayOfInt));
/* */
/* 838 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public Atom insertChild(Atom paramAtom, int paramInt1, int paramInt2, int paramInt3, byte paramByte)
/* */ throws StdQTException
/* */ {
/* 852 */ int[] arrayOfInt = new int[1];
/* 853 */ byte[] arrayOfByte = { paramByte };
/* 854 */ StdQTException.checkError(QTInsertChild(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, paramInt1, paramInt2, (short)paramInt3, 1, arrayOfByte, arrayOfInt));
/* */
/* 864 */ return arrayOfInt[0] != 0 ? new Atom(arrayOfInt[0]) : null;
/* */ }
/* */
/* */ public void insertChildren(Atom paramAtom, AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 876 */ if (QTObject.ID(paramAtomContainer) == 0) {
/* 877 */ throw new StdQTException(-2107);
/* */ }
/* 879 */ StdQTException.checkError(QTInsertChildren(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ public void removeAtom(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 892 */ StdQTException.checkError(QTRemoveAtom(_ID(), paramAtom.getAtom()));
/* */ }
/* */
/* */ public void removeChildren(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 903 */ StdQTException.checkError(QTRemoveChildren(_ID(), paramAtom.getAtom()));
/* */ }
/* */
/* */ public void replaceAtom(Atom paramAtom1, AtomContainer paramAtomContainer, Atom paramAtom2)
/* */ throws StdQTException
/* */ {
/* 917 */ if (QTObject.ID(paramAtomContainer) == 0) {
/* 918 */ throw new StdQTException(-2107);
/* */ }
/* 920 */ StdQTException.checkError(QTReplaceAtom(_ID(), paramAtom1.getAtom(), QTObject.ID(paramAtomContainer), paramAtom2.getAtom()));
/* */ }
/* */
/* */ public void swapAtoms(Atom paramAtom1, Atom paramAtom2)
/* */ throws StdQTException
/* */ {
/* 932 */ StdQTException.checkError(QTSwapAtoms(_ID(), paramAtom1.getAtom(), paramAtom2.getAtom()));
/* */ }
/* */
/* */ public void setAtomID(Atom paramAtom, int paramInt)
/* */ throws StdQTException
/* */ {
/* 944 */ StdQTException.checkError(QTSetAtomID(_ID(), paramAtom.getAtom(), paramInt));
/* */ }
/* */
/* */ public void iTextAddString(Atom paramAtom, int paramInt, String paramString)
/* */ throws StdQTException
/* */ {
/* 957 */ StdQTException.checkError(ITextAddString(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, (short)paramInt, QTUtils.String2PString(paramString, 255)));
/* */ }
/* */
/* */ public void iTextRemoveString(Atom paramAtom, int paramInt1, int paramInt2)
/* */ throws StdQTException
/* */ {
/* 972 */ StdQTException.checkError(ITextRemoveString(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, (short)paramInt1, paramInt2));
/* */ }
/* */
/* */ public IStringInfo iTextGetString(Atom paramAtom, int paramInt)
/* */ throws StdQTException
/* */ {
/* 987 */ short[] arrayOfShort = new short[1];
/* 988 */ byte[] arrayOfByte = new byte[256];
/* 989 */ StdQTException.checkError(ITextGetString(_ID(), paramAtom != null ? paramAtom.getAtom() : 0, (short)paramInt, arrayOfShort, arrayOfByte));
/* */
/* 996 */ return new IStringInfo(QTUtils.PString2String(arrayOfByte, 0), arrayOfShort[0]);
/* */ }
/* */
/* */ public Atom getParent(Atom paramAtom)
/* */ throws StdQTException
/* */ {
/* 1006 */ int i = QTGetAtomParent(_ID(), paramAtom.getAtom());
/* 1007 */ if (i < 0)
/* 1008 */ throw new StdQTException(i);
/* 1009 */ return new Atom(i);
/* */ }
/* */
/* */ private static native int GraphicsExportGetSettingsAsAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportCanUseCompressor(int paramInt, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsExportGetMIMETypeList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRGetVRWorld(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRGetNodeInfo(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportGetMIMETypeList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportGetExportImageTypeList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int GraphicsImportGetExportSettingsAsAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short GetMediaInputMap(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short GetMediaPropertyAtom(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int MovieExportGetSettingsAsAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int MovieImportGetMIMETypeList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int MovieImportGetSettingsAsAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int Media3DGetNamedObjectList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int Media3DGetRendererList(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int SCGetSettingsAsAtomContainer(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native short QTNewAtomContainer(int[] paramArrayOfInt);
/* */
/* */ private static native short QTGetAtomDataPtr(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native int QTGetNextChildType(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short GetMoviesError();
/* */
/* */ private static native short QTCountChildrenOfType(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int QTFindChildByIndex(int paramInt1, int paramInt2, int paramInt3, short paramShort, int[] paramArrayOfInt);
/* */
/* */ private static native int QTFindChildByID(int paramInt1, int paramInt2, int paramInt3, int paramInt4, short[] paramArrayOfShort);
/* */
/* */ private static native short QTNextChildAnyType(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native short QTSetAtomData(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte);
/* */
/* */ private static native short QTSetAtomData(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTSetAtomData(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native short QTSetAtomData(int paramInt1, int paramInt2, int paramInt3, short[] paramArrayOfShort);
/* */
/* */ private static native short QTCopyAtomDataToHandle(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short QTCopyAtomDataToPtr(int paramInt1, int paramInt2, byte paramByte, int paramInt3, int paramInt4, int[] paramArrayOfInt);
/* */
/* */ private static native short QTCopyAtomDataToPtr(int paramInt1, int paramInt2, byte paramByte, int paramInt3, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native short QTGetAtomTypeAndID(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native short QTCopyAtom(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native short QTLockContainer(int paramInt);
/* */
/* */ private static native short QTUnlockContainer(int paramInt);
/* */
/* */ private static native short QTInsertChild(int paramInt1, int paramInt2, int paramInt3, int paramInt4, short paramShort, int paramInt5, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */
/* */ private static native short QTInsertChild(int paramInt1, int paramInt2, int paramInt3, int paramInt4, short paramShort, int paramInt5, int paramInt6, int[] paramArrayOfInt);
/* */
/* */ private static native short QTInsertChild(int paramInt1, int paramInt2, int paramInt3, int paramInt4, short paramShort, int paramInt5, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/* */
/* */ private static native short QTInsertChild(int paramInt1, int paramInt2, int paramInt3, int paramInt4, short paramShort, int paramInt5, short[] paramArrayOfShort, int[] paramArrayOfInt);
/* */
/* */ private static native short QTInsertChildren(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short QTRemoveAtom(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTRemoveChildren(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTReplaceAtom(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTSwapAtoms(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short QTSetAtomID(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short ITextAddString(int paramInt1, int paramInt2, short paramShort, byte[] paramArrayOfByte);
/* */
/* */ private static native short ITextRemoveString(int paramInt1, int paramInt2, short paramShort, int paramInt3);
/* */
/* */ private static native short ITextGetString(int paramInt1, int paramInt2, short paramShort, short[] paramArrayOfShort, byte[] paramArrayOfByte);
/* */
/* */ private static native int QTGetAtomParent(int paramInt1, int paramInt2);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.AtomContainer
* JD-Core Version: 0.6.2
*/