/* */ package quicktime.std.movies.media;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTSession;
/* */ import quicktime.std.movies.AtomContainer;
/* */ import quicktime.util.EndianDescriptor;
/* */ import quicktime.util.EndianFlipSpec;
/* */ import quicktime.util.QTHandle;
/* */
/* */ public final class QTVRSampleDescription extends SampleDescription
/* */ {
/* 44 */ private static boolean apriori = QTSession.apriori();
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRSampleDescription(AtomContainer paramAtomContainer)
/* */ throws QTException
/* */ {
/* 50 */ super(allocate(paramAtomContainer), true, 1903457906);
/* 51 */ copyFromArray(16, paramAtomContainer.getBytes(), 0, paramAtomContainer.getSize());
/* */ }
/* */
/* */ private static int allocate(AtomContainer paramAtomContainer) {
/* 55 */ return 16 + paramAtomContainer.getSize();
/* */ }
/* */
/* */ public QTVRSampleDescription() throws QTException
/* */ {
/* 60 */ super(16, true, 1903457906);
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 66 */ EndianDescriptor localEndianDescriptor = SampleDescription.makeED();
/* */
/* 68 */ EndianFlipSpec localEndianFlipSpec = new EndianFlipSpec(16, 4, 1);
/* 69 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec);
/* 70 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor()
/* */ {
/* 78 */ if (ed == null)
/* 79 */ ed = makeED();
/* 80 */ return ed;
/* */ }
/* */
/* */ public void setVRWorld(AtomContainer paramAtomContainer)
/* */ throws QTException
/* */ {
/* 86 */ int i = 16 + paramAtomContainer.getSize();
/* 87 */ setSize(i);
/* */
/* 89 */ copyFromArray(16, paramAtomContainer.getBytes(), 0, i);
/* */
/* 91 */ setIntAt(0, i);
/* */ }
/* */
/* */ public AtomContainer getVRWorld() throws QTException {
/* 95 */ int i = getSize() - 16;
/* 96 */ QTHandle localQTHandle = new QTHandle(i, false);
/* */
/* 98 */ localQTHandle.copyFromArray(0, getBytes(), 16, i);
/* */
/* 100 */ return AtomContainer.fromQTHandle(localQTHandle);
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.media.QTVRSampleDescription
* JD-Core Version: 0.6.2
*/