Package quicktime.vr

Source Code of quicktime.vr.QTVRPanoImaging

/*     */ 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;
/*     */
/*     */ public final class QTVRPanoImaging extends QTVRAtom
/*     */ {
/*  40 */   private static boolean apriori = QTSession.apriori();
/*     */   private static final int kNativeSize = 56;
/*     */   static final long serialVersionUID = 8351228396821852032L;
/*     */   private static EndianDescriptor ed;
/*     */
/*     */   public QTVRPanoImaging()
/*     */   {
/*  50 */     super(56);
/*     */   }
/*     */
/*     */   public QTVRPanoImaging(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  58 */     super(paramArrayOfByte, 56);
/*     */   }
/*     */
/*     */   protected int getNativeSize() {
/*  62 */     return 56;
/*     */   }
/*     */
/*     */   protected void readObject(ObjectInputStream paramObjectInputStream)
/*     */     throws IOException
/*     */   {
/*  68 */     this.bytes = new byte[56];
/*  69 */     QTVRPanoImaging localQTVRPanoImaging = new QTVRPanoImaging();
/*  70 */     paramObjectInputStream.read(localQTVRPanoImaging.getBytes());
/*  71 */     System.arraycopy(localQTVRPanoImaging.getBytes(), 0, getBytes(), 0, this.bytes.length);
/*     */   }
/*     */
/*     */   protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/*  75 */     QTVRPanoImaging localQTVRPanoImaging = (QTVRPanoImaging)clone();
/*  76 */     paramObjectOutputStream.write(localQTVRPanoImaging.getBytes());
/*     */   }
/*     */
/*     */   public Object clone()
/*     */   {
/*     */     try {
/*  82 */       return new QTVRPanoImaging(this.bytes);
/*     */     } catch (QTException localQTException) {
/*  84 */       throw new QTRuntimeException(localQTException);
/*     */     }
/*     */   }
/*     */
/*     */   protected static EndianDescriptor makeED()
/*     */   {
/*  90 */     EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/*     */
/*  92 */     EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/*  93 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/*     */
/*  95 */     EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 13);
/*  96 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/*  97 */     return localEndianDescriptor;
/*     */   }
/*     */
/*     */   public static EndianDescriptor getEndianDescriptor() {
/* 101 */     if (ed == null)
/* 102 */       ed = makeED();
/* 103 */     return ed;
/*     */   }
/*     */
/*     */   public int getImagingMode()
/*     */   {
/* 113 */     return getIntAt(4);
/*     */   }
/*     */
/*     */   public void setImagingMode(int paramInt)
/*     */   {
/* 122 */     setIntAt(4, paramInt);
/*     */   }
/*     */
/*     */   public int getImagingValidFlags()
/*     */   {
/* 133 */     return getIntAt(8);
/*     */   }
/*     */
/*     */   public void setImagingValidFlags(int paramInt)
/*     */   {
/* 144 */     setIntAt(8, paramInt);
/*     */   }
/*     */
/*     */   public int getCorrection()
/*     */   {
/* 154 */     return getIntAt(12);
/*     */   }
/*     */
/*     */   public void setCorrection(int paramInt)
/*     */   {
/* 164 */     setIntAt(12, paramInt);
/*     */   }
/*     */
/*     */   public int getQuality()
/*     */   {
/* 175 */     return getIntAt(16);
/*     */   }
/*     */
/*     */   public void setQuality(int paramInt)
/*     */   {
/* 186 */     setIntAt(16, paramInt);
/*     */   }
/*     */
/*     */   public boolean isDirectDraw()
/*     */   {
/* 191 */     return getIntAt(20) == 1;
/*     */   }
/*     */
/*     */   public void setDirectDraw(boolean paramBoolean)
/*     */   {
/* 196 */     setIntAt(20, paramBoolean ? 1 : 0);
/*     */   }
/*     */
/*     */   public int getImagingProperty(int paramInt) throws QTException
/*     */   {
/* 201 */     if ((paramInt < 0) || (paramInt > 5)) throw new QTException(-50);
/* 202 */     int i = 24 + paramInt * 4;
/* 203 */     return getIntAt(i);
/*     */   }
/*     */
/*     */   public void setImagingProperty(int paramInt1, int paramInt2) throws QTException
/*     */   {
/* 208 */     if ((paramInt2 < 0) || (paramInt2 > 5)) throw new QTException(-50);
/* 209 */     int i = 24 + paramInt2 * 4;
/* 210 */     setIntAt(i, paramInt1);
/*     */   }
/*     */
/*     */   public void setReserved1(int paramInt)
/*     */   {
/* 215 */     setIntAt(48, paramInt);
/*     */   }
/*     */
/*     */   public int getReserved1()
/*     */   {
/* 220 */     return getIntAt(48);
/*     */   }
/*     */
/*     */   public void setReserved2(int paramInt)
/*     */   {
/* 225 */     setIntAt(52, paramInt);
/*     */   }
/*     */
/*     */   public int getReserved2()
/*     */   {
/* 230 */     return getIntAt(52);
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 237 */     String str = getClass().getName() + "[imagingMode=" + getImagingMode() + ",imagingValidFlags=" + getImagingValidFlags() + ",correction=" + getCorrection() + ",quality=" + getQuality() + ",directDraw=" + isDirectDraw();
/*     */     try
/*     */     {
/* 244 */       str = str + ",imagingProperties=[" + getImagingProperty(0) + "][" + getImagingProperty(1) + "][" + getImagingProperty(2) + "][" + getImagingProperty(3) + "][" + getImagingProperty(4) + "][" + getImagingProperty(5) + "]";
/*     */     }
/*     */     catch (QTException localQTException)
/*     */     {
/*     */     }
/*     */
/* 252 */     return str + " ]";
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.vr.QTVRPanoImaging
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.vr.QTVRPanoImaging

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.