Package quicktime.std.sg

Source Code of quicktime.std.sg.VisualChannel

/*     */ package quicktime.std.sg;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.qd.Region;
/*     */ import quicktime.std.StdQTException;
/*     */ import quicktime.std.image.Matrix;
/*     */
/*     */ public abstract class VisualChannel extends SGChannel
/*     */ {
/*  26 */   private static boolean apriori = QTSession.apriori();
/*     */
/*     */   VisualChannel(int paramInt, SequenceGrabber paramSequenceGrabber) throws StdQTException
/*     */   {
/*  30 */     super(paramInt, paramSequenceGrabber);
/*     */   }
/*     */
/*     */   VisualChannel(SequenceGrabber paramSequenceGrabber, int paramInt)
/*     */     throws StdQTException
/*     */   {
/*  41 */     super(paramSequenceGrabber, paramInt);
/*     */   }
/*     */
/*     */   public void setBounds(QDRect paramQDRect)
/*     */     throws StdQTException
/*     */   {
/*  51 */     StdQTException.checkError(SGSetChannelBounds(_ID(), paramQDRect.getRect()));
/*     */   }
/*     */
/*     */   public QDRect getBounds()
/*     */     throws StdQTException
/*     */   {
/*  62 */     QDRect localQDRect = new QDRect();
/*  63 */     StdQTException.checkError(SGGetChannelBounds(_ID(), localQDRect.getRect()));
/*     */
/*  66 */     return localQDRect;
/*     */   }
/*     */
/*     */   public void setClip(Region paramRegion)
/*     */     throws StdQTException
/*     */   {
/*  75 */     int i = SGSetChannelClip(_ID(), QTObject.ID(paramRegion));
/*  76 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public Region getClip()
/*     */     throws QTException
/*     */   {
/*  85 */     return Region.fromVideoChannel(this);
/*     */   }
/*     */
/*     */   public void setMatrix(Matrix paramMatrix)
/*     */     throws StdQTException
/*     */   {
/*  94 */     int i = SGSetChannelMatrix(_ID(), paramMatrix == null ? null : paramMatrix.getBytes());
/*  95 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public Matrix getMatrix()
/*     */     throws StdQTException
/*     */   {
/* 104 */     Matrix localMatrix = new Matrix();
/* 105 */     int i = SGGetChannelMatrix(_ID(), localMatrix.getBytes());
/* 106 */     StdQTException.checkError(i);
/* 107 */     return localMatrix;
/*     */   }
/*     */
/*     */   private static native int SGSetChannelBounds(int paramInt, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int SGGetChannelBounds(int paramInt, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int SGSetChannelClip(int paramInt1, int paramInt2);
/*     */
/*     */   private static native int SGSetChannelMatrix(int paramInt, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int SGGetChannelMatrix(int paramInt, byte[] paramArrayOfByte);
/*     */ }

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

Related Classes of quicktime.std.sg.VisualChannel

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.