/* */ 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.util.EndianDescriptor;
/* */ import quicktime.util.EndianFlipSpec;
/* */ import quicktime.util.QTByteObject;
/* */
/* */ public final class QTVRTrackRefEntry extends QTByteObject
/* */ implements Cloneable
/* */ {
/* 32 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 10;
/* */ static final long serialVersionUID = 7513389675945192418L;
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRTrackRefEntry()
/* */ {
/* 43 */ super(10);
/* */ }
/* */
/* */ public QTVRTrackRefEntry(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 51 */ super(paramArrayOfByte);
/* 52 */ if (paramArrayOfByte.length != 10) throw new QTException(-50);
/* */ }
/* */
/* */ private void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 61 */ this.bytes = new byte[10];
/* 62 */ QTVRTrackRefEntry localQTVRTrackRefEntry = new QTVRTrackRefEntry();
/* 63 */ paramObjectInputStream.read(localQTVRTrackRefEntry.getBytes());
/* 64 */ System.arraycopy(localQTVRTrackRefEntry.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ private void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 68 */ QTVRTrackRefEntry localQTVRTrackRefEntry = (QTVRTrackRefEntry)clone();
/* 69 */ paramObjectOutputStream.write(localQTVRTrackRefEntry.getBytes());
/* */ }
/* */
/* */ protected Object clone()
/* */ {
/* */ try {
/* 75 */ return new QTVRTrackRefEntry(this.bytes);
/* */ } catch (QTException localQTException) {
/* 77 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 84 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 86 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 4, 1);
/* 87 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 89 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 2, 1);
/* 90 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* */
/* 92 */ EndianFlipSpec localEndianFlipSpec3 = new EndianFlipSpec(6, 4, 1);
/* 93 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec3);
/* */
/* 95 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor()
/* */ {
/* 103 */ if (ed == null)
/* 104 */ ed = makeED();
/* 105 */ return ed;
/* */ }
/* */
/* */ public int getTrackRefType()
/* */ {
/* 116 */ return getIntAt(0);
/* */ }
/* */
/* */ public void setTrackRefType(int paramInt)
/* */ {
/* 125 */ setIntAt(0, paramInt);
/* */ }
/* */
/* */ public short getTrackResolution()
/* */ {
/* 137 */ return getShortAt(4);
/* */ }
/* */
/* */ public void setTrackResolution(short paramShort)
/* */ {
/* 148 */ setShortAt(4, paramShort);
/* */ }
/* */
/* */ public int getTrackRefIndex()
/* */ {
/* 154 */ return getIntAt(6);
/* */ }
/* */
/* */ public void setTrackRefIndex(int paramInt)
/* */ {
/* 159 */ setIntAt(6, paramInt);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 166 */ return getClass().getName() + "[trackRefType=" + getTrackRefType() + ",trackResolution=" + getTrackResolution() + ",trackRefIndex=" + getTrackRefIndex() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRTrackRefEntry
* JD-Core Version: 0.6.2
*/