/* */ package quicktime.vr;
/* */
/* */ import java.io.IOException;
/* */ import java.io.ObjectInputStream;
/* */ import java.io.ObjectOutputStream;
/* */ import quicktime.QTException;
/* */ import quicktime.QTRuntimeException;
/* */ import quicktime.QTSession;
/* */ import quicktime.qd.QDPoint;
/* */ import quicktime.util.EndianDescriptor;
/* */ import quicktime.util.EndianFlipSpec;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class QTVRPanoSample extends QTVRAtom
/* */ {
/* 67 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 84;
/* */ static final int kQTVRPanoFlagHorizontal = 1;
/* */ static final int kQTVRPanoFlagLast = -2147483648;
/* */ static final long serialVersionUID = -4451518596558727761L;
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRPanoSample()
/* */ {
/* 82 */ super(84);
/* */ }
/* */
/* */ public QTVRPanoSample(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 90 */ super(paramArrayOfByte, 84);
/* */ }
/* */
/* */ protected int getNativeSize() {
/* 94 */ return 84;
/* */ }
/* */
/* */ protected void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 101 */ this.bytes = new byte[84];
/* 102 */ QTVRPanoSample localQTVRPanoSample = new QTVRPanoSample();
/* 103 */ paramObjectInputStream.read(localQTVRPanoSample.getBytes());
/* 104 */ System.arraycopy(localQTVRPanoSample.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 108 */ QTVRPanoSample localQTVRPanoSample = (QTVRPanoSample)clone();
/* 109 */ paramObjectOutputStream.write(localQTVRPanoSample.getBytes());
/* */ }
/* */
/* */ public Object clone()
/* */ {
/* */ try {
/* 115 */ return new QTVRPanoSample(this.bytes);
/* */ } catch (QTException localQTException) {
/* 117 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 124 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 126 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/* 127 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 129 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 13);
/* 130 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* */
/* 132 */ EndianFlipSpec localEndianFlipSpec3 = new EndianFlipSpec(56, 2, 2);
/* 133 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec3);
/* */
/* 135 */ EndianFlipSpec localEndianFlipSpec4 = new EndianFlipSpec(60, 4, 2);
/* 136 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec4);
/* */
/* 138 */ EndianFlipSpec localEndianFlipSpec5 = new EndianFlipSpec(68, 2, 2);
/* 139 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec5);
/* */
/* 141 */ EndianFlipSpec localEndianFlipSpec6 = new EndianFlipSpec(72, 4, 3);
/* 142 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec6);
/* */
/* 144 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor()
/* */ {
/* 152 */ if (ed == null)
/* 153 */ ed = makeED();
/* 154 */ return ed;
/* */ }
/* */
/* */ public int getImageRefTrackIndex()
/* */ {
/* 162 */ return getIntAt(4);
/* */ }
/* */
/* */ public void setImageRefTrackIndex(int paramInt)
/* */ {
/* 169 */ setIntAt(4, paramInt);
/* */ }
/* */
/* */ public int getHotSpotRefTrackIndex()
/* */ {
/* 177 */ return getIntAt(8);
/* */ }
/* */
/* */ public void setHotSpotRefTrackIndex(int paramInt)
/* */ {
/* 184 */ setIntAt(8, paramInt);
/* */ }
/* */
/* */ public float getMinPan()
/* */ {
/* 192 */ return getFloatAt(12);
/* */ }
/* */
/* */ public void setMinPan(float paramFloat)
/* */ {
/* 199 */ setFloatAt(12, paramFloat);
/* */ }
/* */
/* */ public float getMaxPan()
/* */ {
/* 207 */ return getFloatAt(16);
/* */ }
/* */
/* */ public void setMaxPan(float paramFloat)
/* */ {
/* 214 */ setFloatAt(16, paramFloat);
/* */ }
/* */
/* */ public float getMinTilt()
/* */ {
/* 222 */ return getFloatAt(20);
/* */ }
/* */
/* */ public void setMinTilt(float paramFloat)
/* */ {
/* 229 */ setFloatAt(20, paramFloat);
/* */ }
/* */
/* */ public float getMaxTilt()
/* */ {
/* 237 */ return getFloatAt(24);
/* */ }
/* */
/* */ public void setMaxTilt(float paramFloat)
/* */ {
/* 244 */ setFloatAt(24, paramFloat);
/* */ }
/* */
/* */ public float getMinFieldOfView()
/* */ {
/* 252 */ return getFloatAt(28);
/* */ }
/* */
/* */ public void setMinFieldOfView(float paramFloat)
/* */ {
/* 259 */ setFloatAt(28, paramFloat);
/* */ }
/* */
/* */ public float getMaxFieldOfView()
/* */ {
/* 267 */ return getFloatAt(32);
/* */ }
/* */
/* */ public void setMaxFieldOfView(float paramFloat)
/* */ {
/* 274 */ setFloatAt(32, paramFloat);
/* */ }
/* */
/* */ public float getDefaultPan()
/* */ {
/* 282 */ return getFloatAt(36);
/* */ }
/* */
/* */ public void setDefaultPan(float paramFloat)
/* */ {
/* 289 */ setFloatAt(36, paramFloat);
/* */ }
/* */
/* */ public float getDefaultTilt()
/* */ {
/* 297 */ return getFloatAt(40);
/* */ }
/* */
/* */ public void setDefaultTilt(float paramFloat)
/* */ {
/* 304 */ setFloatAt(40, paramFloat);
/* */ }
/* */
/* */ public float getDefaultFieldOfView()
/* */ {
/* 312 */ return getFloatAt(44);
/* */ }
/* */
/* */ public void setDefaultFieldOfView(float paramFloat)
/* */ {
/* 319 */ setFloatAt(44, paramFloat);
/* */ }
/* */
/* */ public QDPoint getImageSize()
/* */ {
/* 327 */ return new QDPoint(getIntAt(48), getIntAt(52));
/* */ }
/* */
/* */ public void setImageSize(QDPoint paramQDPoint)
/* */ {
/* 334 */ setIntAt(48, paramQDPoint.getX());
/* 335 */ setIntAt(52, paramQDPoint.getY());
/* */ }
/* */
/* */ public QDPoint getNumFrames()
/* */ {
/* 343 */ return new QDPoint(getShortAt(56), getShortAt(58));
/* */ }
/* */
/* */ public void setNumFrames(QDPoint paramQDPoint)
/* */ {
/* 350 */ setShortAt(56, (short)paramQDPoint.getX());
/* 351 */ setShortAt(58, (short)paramQDPoint.getY());
/* */ }
/* */
/* */ public QDPoint getHotSpotSize()
/* */ {
/* 359 */ return new QDPoint(getIntAt(60), getIntAt(64));
/* */ }
/* */
/* */ public void setHotSpotSize(QDPoint paramQDPoint)
/* */ {
/* 366 */ setIntAt(60, paramQDPoint.getX());
/* 367 */ setIntAt(64, paramQDPoint.getY());
/* */ }
/* */
/* */ public QDPoint getHotSpotNumFrames()
/* */ {
/* 375 */ return new QDPoint(getShortAt(68), getShortAt(70));
/* */ }
/* */
/* */ public void setHotSpotNumFrames(QDPoint paramQDPoint)
/* */ {
/* 382 */ setShortAt(68, (short)paramQDPoint.getX());
/* 383 */ setShortAt(70, (short)paramQDPoint.getY());
/* */ }
/* */
/* */ public int getFlags()
/* */ {
/* 391 */ return getIntAt(72);
/* */ }
/* */
/* */ public void setFlags(int paramInt)
/* */ {
/* 398 */ setIntAt(72, paramInt);
/* */ }
/* */
/* */ public int getPanoType()
/* */ {
/* 406 */ return getIntAt(76);
/* */ }
/* */
/* */ public void setPanoType(int paramInt)
/* */ {
/* 413 */ setIntAt(76, paramInt);
/* */ }
/* */
/* */ public void setPanoType(String paramString)
/* */ {
/* 421 */ setIntAt(76, QTUtils.toOSType(paramString));
/* */ }
/* */
/* */ public int getReserved2()
/* */ {
/* 428 */ return getIntAt(80);
/* */ }
/* */
/* */ public void setReserved2(int paramInt)
/* */ {
/* 435 */ setIntAt(80, paramInt);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 442 */ return getClass().getName() + "[imageRefTrackIndex=" + getImageRefTrackIndex() + ",hotSpotRefTrackIndex=" + getHotSpotRefTrackIndex() + ",minPan=" + getMinPan() + ",maxPan=" + getMaxPan() + ",minTilt=" + getMinTilt() + ",maxTilt=" + getMaxTilt() + ",minFieldOfView=" + getMinFieldOfView() + ",maxFieldOfView=" + getMaxFieldOfView() + ",defaultPan=" + getDefaultPan() + ",defaultTilt=" + getDefaultTilt() + ",defaultFieldOfView=" + getDefaultFieldOfView() + ",imageSize=" + getImageSize() + ",imageNumFrames=" + getNumFrames() + ",hotSpotSize=" + getHotSpotSize() + ",hotSpotNumFrames=" + getHotSpotNumFrames() + ",flags=" + getFlags() + ",panoType=" + getPanoType() + ",reserved2=" + getReserved2() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRPanoSample
* JD-Core Version: 0.6.2
*/