Package quicktime.std.movies.media

Source Code of quicktime.std.movies.media.MovieMediaHandler

/*     */ package quicktime.std.movies.media;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.qd.QDRect;
/*     */ import quicktime.std.StdQTException;
/*     */ import quicktime.std.clocks.TimeRecord;
/*     */ import quicktime.std.image.Matrix;
/*     */ import quicktime.util.QTHandle;
/*     */
/*     */ public class MovieMediaHandler extends VisualMediaHandler
/*     */ {
/*  23 */   private static boolean apriori = QTSession.apriori();
/*     */
/*     */   MovieMediaHandler(int paramInt, Object paramObject) {
/*  26 */     super(paramInt, paramObject);
/*     */   }
/*     */
/*     */   public int getCurrentMoviePropertyDuration()
/*     */     throws StdQTException
/*     */   {
/*  36 */     int[] arrayOfInt = new int[1];
/*  37 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1685418593, arrayOfInt);
/*  38 */     StdQTException.checkError(i);
/*  39 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public int getCurrentMoviePropertyTimeScale()
/*     */     throws StdQTException
/*     */   {
/*  48 */     int[] arrayOfInt = new int[1];
/*  49 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1953066355, arrayOfInt);
/*  50 */     StdQTException.checkError(i);
/*  51 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public TimeRecord getCurrentMoviePropertyTime()
/*     */     throws QTException
/*     */   {
/*  60 */     TimeRecord localTimeRecord = new TimeRecord();
/*  61 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1953066358, QTObject.ID(localTimeRecord));
/*  62 */     StdQTException.checkError(i);
/*  63 */     return localTimeRecord;
/*     */   }
/*     */
/*     */   public QDRect getCurrentMoviePropertyNaturalBounds()
/*     */     throws StdQTException
/*     */   {
/*  72 */     QDRect localQDRect = new QDRect();
/*  73 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1851880546, localQDRect.getRect());
/*  74 */     StdQTException.checkError(i);
/*  75 */     return localQDRect;
/*     */   }
/*     */
/*     */   public Matrix getCurrentMoviePropertyMatrix()
/*     */     throws StdQTException
/*     */   {
/*  84 */     Matrix localMatrix = new Matrix();
/*  85 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1836348024, localMatrix.getBytes());
/*  86 */     StdQTException.checkError(i);
/*  87 */     return localMatrix;
/*     */   }
/*     */
/*     */   public int[] getCurrentMoviePropertyTrackList()
/*     */     throws StdQTException
/*     */   {
/*  97 */     int[] arrayOfInt = { 0 };
/*  98 */     int i = MovieMediaGetCurrentMovieProperty(_ID(), 1953264500, arrayOfInt);
/*  99 */     StdQTException.checkError(i);
/* 100 */     int j = arrayOfInt[0];
/*     */
/* 102 */     return arrayOfInt;
/*     */   }
/*     */
/*     */   public int getCurrentTrackPropertyMediaType(int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 135 */     int[] arrayOfInt = { 0 };
/* 136 */     int i = MovieMediaGetCurrentTrackProperty(_ID(), 1836349808, paramInt, arrayOfInt);
/* 137 */     StdQTException.checkError(i);
/* 138 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public DataRef getChildMovieDataReference(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 160 */     int i = 0;
/* 161 */     byte[] arrayOfByte = { 0 };
/*     */
/* 164 */     int j = MovieMediaGetChildMovieDataReference(_ID(), paramInt1, paramInt2, i, arrayOfByte, paramInt1, paramInt2);
/*     */
/* 166 */     StdQTException.checkError(j);
/* 167 */     return new DataRef(new QTHandle(arrayOfByte));
/*     */   }
/*     */
/*     */   public void setChildMovieDataReference(int paramInt1, int paramInt2, DataRef paramDataRef)
/*     */     throws StdQTException
/*     */   {
/* 185 */     int i = MovieMediaSetChildMovieDataReference(_ID(), paramInt1, paramInt2, paramDataRef.getBytes());
/* 186 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public void loadChildMovieFromDataReference(int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 200 */     int i = MovieMediaLoadChildMovieFromDataReference(_ID(), paramInt);
/* 201 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   private static native int MovieMediaGetCurrentMovieProperty(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native int MovieMediaGetCurrentMovieProperty(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int MovieMediaGetCurrentMovieProperty(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native int MovieMediaGetCurrentTrackProperty(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/*     */
/*     */   private static native int MovieMediaGetChildMovieDataReference(int paramInt1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte, int paramInt5, int paramInt6);
/*     */
/*     */   private static native int MovieMediaSetChildMovieDataReference(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte);
/*     */
/*     */   private static native int MovieMediaLoadChildMovieFromDataReference(int paramInt1, int paramInt2);
/*     */
/*     */   private static native void copyArrayToPointer(int[] paramArrayOfInt, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native int getIntFromArray(byte[] paramArrayOfByte, int paramInt);
/*     */ }

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

Related Classes of quicktime.std.movies.media.MovieMediaHandler

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.