/* */ package quicktime.std.movies.media;
/* */
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.util.QTPointerRef;
/* */ import quicktime.util.QTUtils;
/* */ import quicktime.util.StringHandle;
/* */
/* */ public final class FlashMediaHandler extends VisualMediaHandler
/* */ {
/* 22 */ private static boolean apriori = QTSession.apriori();
/* */
/* */ FlashMediaHandler(int paramInt, Object paramObject)
/* */ {
/* 32 */ super(paramInt, paramObject);
/* */ }
/* */
/* */ public void setPan(short paramShort1, short paramShort2)
/* */ throws StdQTException
/* */ {
/* 45 */ int i = FlashMediaSetPan(_ID(), paramShort1, paramShort2);
/* 46 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setZoom(short paramShort)
/* */ throws StdQTException
/* */ {
/* 55 */ int i = FlashMediaSetZoom(_ID(), paramShort);
/* 56 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setZoomRect(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
/* */ throws StdQTException
/* */ {
/* 68 */ int i = FlashMediaSetZoomRect(_ID(), paramInt1, paramInt2, paramInt3, paramInt4);
/* 69 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QDRect getRefConBounds(int paramInt)
/* */ throws StdQTException
/* */ {
/* 80 */ int[] arrayOfInt1 = { 0 };
/* 81 */ int[] arrayOfInt2 = { 0 };
/* 82 */ int[] arrayOfInt3 = { 0 };
/* 83 */ int[] arrayOfInt4 = { 0 };
/* 84 */ int i = FlashMediaGetRefConBounds(_ID(), paramInt, arrayOfInt1, arrayOfInt2, arrayOfInt3, arrayOfInt4);
/* 85 */ StdQTException.checkError(i);
/* 86 */ return new QDRect(arrayOfInt1[0], arrayOfInt2[0], arrayOfInt3[0] - arrayOfInt1[0], arrayOfInt4[0] - arrayOfInt2[0]);
/* */ }
/* */
/* */ public int getRefConID(int paramInt)
/* */ throws StdQTException
/* */ {
/* 97 */ int[] arrayOfInt = { 0 };
/* 98 */ int i = FlashMediaGetRefConID(_ID(), paramInt, arrayOfInt);
/* 99 */ StdQTException.checkError(i);
/* 100 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int idToRefCon(int paramInt)
/* */ throws StdQTException
/* */ {
/* 111 */ int[] arrayOfInt = { 0 };
/* 112 */ int i = FlashMediaIDToRefCon(_ID(), paramInt, arrayOfInt);
/* 113 */ StdQTException.checkError(i);
/* 114 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int getDisplayedFrameNumber()
/* */ throws StdQTException
/* */ {
/* 123 */ int[] arrayOfInt = { 0 };
/* 124 */ int i = FlashMediaGetDisplayedFrameNumber(_ID(), arrayOfInt);
/* 125 */ StdQTException.checkError(i);
/* 126 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int frameNumberToMovieTime(int paramInt)
/* */ throws StdQTException
/* */ {
/* 136 */ int[] arrayOfInt = { 0 };
/* 137 */ int i = FlashMediaFrameNumberToMovieTime(_ID(), paramInt, arrayOfInt);
/* 138 */ StdQTException.checkError(i);
/* 139 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int frameLabelToMovieTime(QTPointerRef paramQTPointerRef)
/* */ throws StdQTException
/* */ {
/* 149 */ int[] arrayOfInt = { 0 };
/* 150 */ int i = FlashMediaFrameLabelToMovieTime(_ID(), QTObject.ID(paramQTPointerRef), arrayOfInt);
/* 151 */ StdQTException.checkError(i);
/* 152 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public String getFlashVariable(String paramString1, String paramString2)
/* */ throws StdQTException
/* */ {
/* 163 */ int[] arrayOfInt = { 0 };
/* 164 */ int i = FlashMediaGetFlashVariable(_ID(), QTUtils.String2CString(paramString1), QTUtils.String2CString(paramString2), arrayOfInt);
/* 165 */ StdQTException.checkError(i);
/* 166 */ myStringHandle localmyStringHandle = new myStringHandle(arrayOfInt[0], this);
/* */ try {
/* 168 */ return localmyStringHandle.toJavaString();
/* */ } catch (Exception localException) {
/* 170 */ localException.printStackTrace();
/* 171 */ }return null;
/* */ }
/* */
/* */ public String getSupportedSwfVersion()
/* */ throws StdQTException
/* */ {
/* 181 */ byte[] arrayOfByte = { 0 };
/* */
/* 183 */ int i = FlashMediaGetSupportedSwfVersion(_ID(), arrayOfByte);
/* 184 */ StdQTException.checkError(i);
/* 185 */ if (arrayOfByte.length == 1) {
/* 186 */ return new Byte(arrayOfByte[0]).toString();
/* */ }
/* 188 */ return QTUtils.CString2String(arrayOfByte, 0);
/* */ }
/* */
/* */ public void setFlashVariable(String paramString1, String paramString2, String paramString3, boolean paramBoolean)
/* */ throws StdQTException
/* */ {
/* 200 */ int i = FlashMediaSetFlashVariable(_ID(), QTUtils.String2CString(paramString1), QTUtils.String2CString(paramString2), QTUtils.String2CString(paramString3), (byte)(paramBoolean == true ? 1 : 0));
/* */
/* 202 */ StdQTException.checkError(i); }
/* */ private static native int FlashMediaSetPan(int paramInt, short paramShort1, short paramShort2);
/* */
/* */ private static native int FlashMediaSetZoom(int paramInt, short paramShort);
/* */
/* */ private static native int FlashMediaSetZoomRect(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native int FlashMediaGetRefConBounds(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3, int[] paramArrayOfInt4);
/* */
/* */ private static native int FlashMediaGetRefConID(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaIDToRefCon(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaGetDisplayedFrameNumber(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaFrameNumberToMovieTime(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaFrameLabelToMovieTime(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaGetFlashVariable(int paramInt, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, int[] paramArrayOfInt);
/* */
/* */ private static native int FlashMediaSetFlashVariable(int paramInt, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, byte[] paramArrayOfByte3, byte paramByte);
/* */
/* */ private static native int FlashMediaGetSupportedSwfVersion(int paramInt, byte[] paramArrayOfByte);
/* */
/* 207 */ class myStringHandle extends StringHandle { protected myStringHandle(int paramObject, Object arg3) { super(localObject, 1); }
/* */
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.movies.media.FlashMediaHandler
* JD-Core Version: 0.6.2
*/