/* */ package quicktime.std.movies.media;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.qd.QDColor;
/* */ import quicktime.qd.QDPoint;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.image.GraphicsMode;
/* */ import quicktime.util.QTPointer;
/* */
/* */ public class VisualMediaHandler extends MediaHandler
/* */ {
/* */ protected VisualMediaHandler(int paramInt, Object paramObject)
/* */ {
/* 25 */ super(paramInt, paramObject);
/* */ }
/* */
/* */ public final void setGraphicsMode(GraphicsMode paramGraphicsMode)
/* */ throws StdQTException
/* */ {
/* 35 */ StdQTException.checkError(MediaSetGraphicsMode(_ID(), paramGraphicsMode.getGraphicsMode(), paramGraphicsMode.getColor().getRGBColor()));
/* */ }
/* */
/* */ public final GraphicsMode getGraphicsMode()
/* */ throws StdQTException
/* */ {
/* 49 */ int[] arrayOfInt = new int[1];
/* 50 */ byte[] arrayOfByte = new byte[6];
/* 51 */ StdQTException.checkError(MediaGetGraphicsMode(_ID(), arrayOfInt, arrayOfByte));
/* */
/* 54 */ return new GraphicsMode(arrayOfInt[0], QDColor.fromArray(arrayOfByte, 6));
/* */ }
/* */
/* */ public final boolean getTrackOpaque()
/* */ throws StdQTException
/* */ {
/* 63 */ byte[] arrayOfByte = { 0 };
/* 64 */ StdQTException.checkError(MediaGetTrackOpaque(_ID(), arrayOfByte));
/* */
/* 67 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public final int hitTestForTargetRefCon(int paramInt, QDPoint paramQDPoint)
/* */ throws StdQTException
/* */ {
/* 76 */ int[] arrayOfInt = { 0 };
/* 77 */ StdQTException.checkError(MediaHitTestForTargetRefCon(_ID(), paramInt, paramQDPoint.getPoint(), arrayOfInt));
/* */
/* 80 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public final boolean hitTestTargetRefCon(int paramInt1, int paramInt2, QDPoint paramQDPoint)
/* */ throws StdQTException
/* */ {
/* 89 */ byte[] arrayOfByte = { 0 };
/* 90 */ StdQTException.checkError(MediaHitTestTargetRefCon(_ID(), paramInt1, paramInt2, paramQDPoint.getPoint(), arrayOfByte));
/* */
/* 93 */ return arrayOfByte[0] != 0;
/* */ }
/* */
/* */ public void setPublicInfo(int paramInt, QTPointer paramQTPointer)
/* */ throws StdQTException
/* */ {
/* 101 */ StdQTException.checkError(MediaSetPublicInfo(_ID(), paramInt, QTObject.ID(paramQTPointer), paramQTPointer.getSize()));
/* */ }
/* */
/* */ public QTPointer getPublicInfo(int paramInt)
/* */ throws QTException
/* */ {
/* 111 */ byte[] arrayOfByte = { 0 };
/* 112 */ int[] arrayOfInt = { 0 };
/* 113 */ StdQTException.checkError(MediaGetPublicInfo(_ID(), paramInt, arrayOfByte, arrayOfInt));
/* */
/* 116 */ return new QTPointer(arrayOfByte);
/* */ }
/* */
/* */ private static native int MediaHitTestForTargetRefCon(int paramInt1, long paramLong, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int MediaHitTestTargetRefCon(int paramInt1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte);
/* */
/* */ private static native int MediaSetGraphicsMode(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int MediaGetGraphicsMode(int paramInt, int[] paramArrayOfInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int MediaGetTrackOpaque(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int MediaSetPublicInfo(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native int MediaGetPublicInfo(int paramInt1, int paramInt2, byte[] paramArrayOfByte, int[] paramArrayOfInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.media.VisualMediaHandler
* JD-Core Version: 0.6.2
*/