Package quicktime.streaming

Source Code of quicktime.streaming.Presentation

/*     */ package quicktime.streaming;
/*     */
/*     */ import java.security.AccessController;
/*     */ import java.security.PrivilegedAction;
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.io.QTFile;
/*     */ import quicktime.qd.GDevice;
/*     */ import quicktime.qd.Pict;
/*     */ import quicktime.qd.QDColor;
/*     */ import quicktime.qd.QDDimension;
/*     */ import quicktime.qd.QDGraphics;
/*     */ import quicktime.qd.Region;
/*     */ import quicktime.std.clocks.TimeBase;
/*     */ import quicktime.std.comp.Component;
/*     */ import quicktime.std.image.GraphicsMode;
/*     */ import quicktime.std.image.Matrix;
/*     */ import quicktime.std.movies.media.DataRef;
/*     */ import quicktime.util.QTPointerRef;
/*     */ import quicktime.util.QTUtils;
/*     */
/*     */ public final class Presentation extends QTObject
/*     */ {
/*  34 */   private static boolean apriori = QTSession.apriori();
/*     */
/*     */   Presentation(int paramInt, Object paramObject)
/*     */   {
/*  46 */     super(paramInt, paramObject);
/*     */   }
/*     */
/*     */   private Presentation(int paramInt) {
/*  50 */     super(paramInt, null);
/*     */   }
/*     */
/*     */   public Presentation(NewPresentationParams paramNewPresentationParams)
/*     */     throws QTException
/*     */   {
/*  58 */     super(allocate(paramNewPresentationParams));
/*     */   }
/*     */
/*     */   private static int allocate(NewPresentationParams paramNewPresentationParams) throws QTException {
/*  62 */     int[] arrayOfInt = { 0 };
/*  63 */     QTException.checkError(QTSNewPresentation(QTObject.ID(paramNewPresentationParams), arrayOfInt));
/*  64 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public static Presentation fromData(int paramInt, QTPointerRef paramQTPointerRef, PresParams paramPresParams)
/*     */     throws QTException
/*     */   {
/*  74 */     long[] arrayOfLong = { paramQTPointerRef.getSize() };
/*  75 */     int[] arrayOfInt = { 0 };
/*  76 */     QTException.checkError(QTSNewPresentationFromData(paramInt, QTObject.ID(paramQTPointerRef), arrayOfLong, QTObject.ID(paramPresParams), arrayOfInt));
/*  77 */     return new Presentation(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public static Presentation fromFile(QTFile paramQTFile, PresParams paramPresParams)
/*     */     throws QTException
/*     */   {
/*  85 */     int[] arrayOfInt = { 0 };
/*  86 */     QTException.checkError(QTSNewPresentationFromFile(paramQTFile.getFSSpec(true, 256), QTObject.ID(paramPresParams), arrayOfInt));
/*  87 */     return new Presentation(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public static Presentation fromDataRef(DataRef paramDataRef, PresParams paramPresParams)
/*     */     throws QTException
/*     */   {
/*  95 */     int[] arrayOfInt = { 0 };
/*  96 */     QTException.checkError(QTSNewPresentationFromDataRef(QTObject.ID(paramDataRef), paramDataRef.getType(), QTObject.ID(paramPresParams), arrayOfInt));
/*  97 */     return new Presentation(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public void export(ExportParams paramExportParams)
/*     */     throws QTException
/*     */   {
/* 108 */     QTException.checkError(QTSPresExport(_ID(), 0, paramExportParams.getBytes()));
/*     */   }
/*     */
/*     */   public void export(ExportParams paramExportParams, Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 118 */     QTException.checkError(QTSPresExport(_ID(), QTObject.ID(paramStream), paramExportParams.getBytes()));
/*     */   }
/*     */
/*     */   public void setFlags(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 128 */     QTException.checkError(QTSPresSetFlags(_ID(), paramInt1, paramInt2));
/*     */   }
/*     */
/*     */   public int getFlags()
/*     */     throws QTException
/*     */   {
/* 137 */     int[] arrayOfInt = { 0 };
/* 138 */     QTException.checkError(QTSPresGetFlags(_ID(), arrayOfInt));
/* 139 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public TimeBase getTimeBase()
/*     */     throws QTException
/*     */   {
/* 147 */     return TimeBase.fromPresentation(this);
/*     */   }
/*     */
/*     */   public int getTimeScale()
/*     */     throws QTException
/*     */   {
/* 156 */     int[] arrayOfInt = { 0 };
/* 157 */     QTException.checkError(QTSPresGetTimeScale(_ID(), arrayOfInt));
/* 158 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   private void setInfo(int paramInt, byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/* 168 */     QTException.checkError(QTSPresSetInfo(_ID(), 0, paramInt, paramArrayOfByte));
/*     */   }
/*     */
/*     */   private void setInfo(Stream paramStream, int paramInt, byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/* 179 */     QTException.checkError(QTSPresSetInfo(_ID(), QTObject.ID(paramStream), paramInt, paramArrayOfByte));
/*     */   }
/*     */
/*     */   private byte[] getInfo(int paramInt)
/*     */     throws QTException
/*     */   {
/* 189 */     byte[] arrayOfByte = { 0 };
/* 190 */     QTException.checkError(QTSPresGetInfo(_ID(), 0, paramInt, arrayOfByte));
/* 191 */     return arrayOfByte;
/*     */   }
/*     */
/*     */   private byte[] getInfo(Stream paramStream, int paramInt)
/*     */     throws QTException
/*     */   {
/* 202 */     byte[] arrayOfByte = { 0 };
/* 203 */     QTException.checkError(QTSPresGetInfo(_ID(), QTObject.ID(paramStream), paramInt, arrayOfByte));
/* 204 */     return arrayOfByte;
/*     */   }
/*     */
/*     */   public int getTotalDataRate()
/*     */     throws QTException
/*     */   {
/* 211 */     int[] arrayOfInt = { 0 };
/* 212 */     QTException.checkError(QTSPresGetInfo(_ID(), 0, 1685222516, arrayOfInt));
/* 213 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public boolean hasCharacteristic(Stream paramStream, int paramInt)
/*     */     throws QTException
/*     */   {
/* 223 */     byte[] arrayOfByte = { 0 };
/* 224 */     QTException.checkError(QTSPresHasCharacteristic(_ID(), QTObject.ID(paramStream), paramInt, arrayOfByte));
/* 225 */     return arrayOfByte[0] != 0;
/*     */   }
/*     */
/*     */   public void preview()
/*     */     throws QTException
/*     */   {
/* 233 */     preview(0L, 65536.0F, 0);
/*     */   }
/*     */
/*     */   public void preview(long paramLong, float paramFloat, int paramInt)
/*     */     throws QTException
/*     */   {
/* 244 */     long[] arrayOfLong = { paramLong };
/* 245 */     QTException.checkError(QTSPresPreview(_ID(), 0, arrayOfLong, QTUtils.X2Fix(paramFloat), paramInt));
/*     */   }
/*     */
/*     */   public void preview(Stream paramStream, long paramLong, float paramFloat, int paramInt)
/*     */     throws QTException
/*     */   {
/* 258 */     long[] arrayOfLong = { paramLong };
/* 259 */     QTException.checkError(QTSPresPreview(_ID(), QTObject.ID(paramStream), arrayOfLong, QTUtils.X2Fix(paramFloat), paramInt));
/*     */   }
/*     */
/*     */   public void preroll()
/*     */     throws QTException
/*     */   {
/* 269 */     preroll(0, 65536.0F, 0);
/*     */   }
/*     */
/*     */   public void preroll(int paramInt1, float paramFloat, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 280 */     QTException.checkError(QTSPresPreroll(_ID(), 0, paramInt1, QTUtils.X2Fix(paramFloat), paramInt2));
/*     */   }
/*     */
/*     */   public void preroll(Stream paramStream, int paramInt1, float paramFloat, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 293 */     QTException.checkError(QTSPresPreroll(_ID(), QTObject.ID(paramStream), paramInt1, QTUtils.X2Fix(paramFloat), paramInt2));
/*     */   }
/*     */
/*     */   public void preroll(Stream paramStream, long paramLong, float paramFloat, int paramInt)
/*     */     throws QTException
/*     */   {
/* 306 */     long[] arrayOfLong = { paramLong };
/* 307 */     QTException.checkError(QTSPresPreroll64(_ID(), QTObject.ID(paramStream), arrayOfLong, QTUtils.X2Fix(paramFloat), paramInt));
/*     */   }
/*     */
/*     */   public void start()
/*     */     throws QTException
/*     */   {
/* 316 */     start(0);
/*     */   }
/*     */
/*     */   public void start(int paramInt)
/*     */     throws QTException
/*     */   {
/* 324 */     QTSPresStart(_ID(), 0, paramInt);
/*     */   }
/*     */
/*     */   public void start(Stream paramStream, int paramInt)
/*     */     throws QTException
/*     */   {
/* 334 */     QTException.checkError(QTSPresStart(_ID(), QTObject.ID(paramStream), paramInt));
/*     */   }
/*     */
/*     */   public void idle(PresIdleParams paramPresIdleParams)
/*     */   {
/* 347 */     QTSPresIdle(_ID(), QTObject.ID(paramPresIdleParams));
/*     */   }
/*     */
/*     */   public void invalidateRegion(Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 357 */     QTException.checkError(QTSPresInvalidateRegion(_ID(), QTObject.ID(paramRegion)));
/*     */   }
/*     */
/*     */   public void skipTo(int paramInt)
/*     */     throws QTException
/*     */   {
/* 368 */     QTException.checkError(QTSPresSkipTo(_ID(), paramInt));
/*     */   }
/*     */
/*     */   public void skipTo(long paramLong)
/*     */     throws QTException
/*     */   {
/* 378 */     long[] arrayOfLong = { paramLong };
/* 379 */     QTException.checkError(QTSPresSkipTo64(_ID(), arrayOfLong));
/*     */   }
/*     */
/*     */   public void stop()
/*     */     throws QTException
/*     */   {
/* 388 */     QTException.checkError(QTSPresStop(_ID(), 0, 0));
/*     */   }
/*     */
/*     */   public void stop(Stream paramStream, int paramInt)
/*     */     throws QTException
/*     */   {
/* 399 */     QTException.checkError(QTSPresStop(_ID(), QTObject.ID(paramStream), paramInt));
/*     */   }
/*     */
/*     */   public int getNumStreams()
/*     */   {
/* 409 */     return QTSPresGetNumStreams(_ID());
/*     */   }
/*     */
/*     */   public Stream getIndStream(int paramInt)
/*     */     throws QTException
/*     */   {
/* 419 */     int i = QTSPresGetIndStream(_ID(), paramInt);
/* 420 */     return new Stream(i, this);
/*     */   }
/*     */
/*     */   public void setPreferredRate(float paramFloat, int paramInt)
/*     */     throws QTException
/*     */   {
/* 430 */     QTException.checkError(QTSPresSetPreferredRate(_ID(), QTUtils.X2Fix(paramFloat), paramInt));
/*     */   }
/*     */
/*     */   public float getPreferredRate()
/*     */     throws QTException
/*     */   {
/* 440 */     int[] arrayOfInt = { 0 };
/* 441 */     QTException.checkError(QTSPresGetPreferredRate(_ID(), arrayOfInt));
/*     */
/* 443 */     return QTUtils.Fix2X(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public void setEnable(Stream paramStream, boolean paramBoolean)
/*     */     throws QTException
/*     */   {
/* 453 */     QTException.checkError(QTSPresSetEnable(_ID(), QTObject.ID(paramStream), (byte)(paramBoolean == true ? 1 : 0)));
/*     */   }
/*     */
/*     */   public boolean getEnable(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 464 */     byte[] arrayOfByte = { 0 };
/* 465 */     QTException.checkError(QTSPresGetEnable(_ID(), QTObject.ID(paramStream), arrayOfByte));
/*     */
/* 467 */     return arrayOfByte[0] != 0;
/*     */   }
/*     */
/*     */   public void setPresenting(Stream paramStream, boolean paramBoolean)
/*     */     throws QTException
/*     */   {
/* 477 */     QTException.checkError(QTSPresSetPresenting(_ID(), QTObject.ID(paramStream), (byte)(paramBoolean == true ? 1 : 0)));
/*     */   }
/*     */
/*     */   public boolean getPresenting(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 488 */     byte[] arrayOfByte = { 0 };
/* 489 */     QTException.checkError(QTSPresGetPresenting(_ID(), QTObject.ID(paramStream), arrayOfByte));
/*     */
/* 491 */     return arrayOfByte[0] != 0;
/*     */   }
/*     */
/*     */   public void setActiveSegment(Stream paramStream, long paramLong1, long paramLong2)
/*     */     throws QTException
/*     */   {
/* 502 */     long[] arrayOfLong1 = { paramLong1 };
/* 503 */     long[] arrayOfLong2 = { paramLong2 };
/* 504 */     QTException.checkError(QTSPresSetActiveSegment(_ID(), QTObject.ID(paramStream), arrayOfLong1, arrayOfLong2));
/*     */   }
/*     */
/*     */   public long getActiveSegmentStart(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 515 */     long[] arrayOfLong1 = { 0L };
/* 516 */     long[] arrayOfLong2 = { 0L };
/* 517 */     QTException.checkError(QTSPresGetActiveSegment(_ID(), QTObject.ID(paramStream), arrayOfLong1, arrayOfLong2));
/*     */
/* 519 */     return arrayOfLong1[0];
/*     */   }
/*     */
/*     */   public long getActiveSegmentDuration(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 529 */     long[] arrayOfLong1 = { 0L };
/* 530 */     long[] arrayOfLong2 = { 0L };
/* 531 */     QTException.checkError(QTSPresGetActiveSegment(_ID(), QTObject.ID(paramStream), arrayOfLong1, arrayOfLong2));
/*     */
/* 533 */     return arrayOfLong2[0];
/*     */   }
/*     */
/*     */   public void setPlayHints(Stream paramStream, int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 544 */     QTException.checkError(QTSPresSetPlayHints(_ID(), QTObject.ID(paramStream), paramInt1, paramInt2));
/*     */   }
/*     */
/*     */   public int getPlayHints(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 555 */     int[] arrayOfInt = { 0 };
/* 556 */     QTException.checkError(QTSPresGetPlayHints(_ID(), QTObject.ID(paramStream), arrayOfInt));
/*     */
/* 558 */     return arrayOfInt[0];
/*     */   }
/*     */
/*     */   public void setGWorld(Stream paramStream, QDGraphics paramQDGraphics, GDevice paramGDevice)
/*     */     throws QTException
/*     */   {
/* 569 */     QTException.checkError(QTSPresSetGWorld(_ID(), QTObject.ID(paramStream), QTObject.ID(paramQDGraphics), QTObject.ID(paramGDevice)));
/*     */   }
/*     */
/*     */   public void setGWorld(Stream paramStream, QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 581 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/* 583 */         return GDevice.getMain();
/*     */       }
/*     */     });
/* 587 */     setGWorld(paramStream, paramQDGraphics, localGDevice);
/*     */   }
/*     */
/*     */   public void setGWorld(QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 596 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/* 598 */         return GDevice.getMain();
/*     */       }
/*     */     });
/* 602 */     QTException.checkError(QTSPresSetGWorld(_ID(), 0, QTObject.ID(paramQDGraphics), QTObject.ID(localGDevice)));
/*     */   }
/*     */
/*     */   public QDGraphics getGWorld(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 612 */     return QDGraphics.fromPresentation(this, paramStream);
/*     */   }
/*     */
/*     */   public QDGraphics getGWorld()
/*     */     throws QTException
/*     */   {
/* 622 */     return QDGraphics.fromPresentation(this, null);
/*     */   }
/*     */
/*     */   public void setClip(Stream paramStream, Region paramRegion)
/*     */     throws QTException
/*     */   {
/* 633 */     QTException.checkError(QTSPresSetClip(_ID(), QTObject.ID(paramStream), QTObject.ID(paramRegion)));
/*     */   }
/*     */
/*     */   public Region getClip(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 643 */     return Region.fromPresentationClip(this, paramStream);
/*     */   }
/*     */
/*     */   public void setMatrix(Stream paramStream, Matrix paramMatrix)
/*     */     throws QTException
/*     */   {
/* 653 */     QTException.checkError(QTSPresSetMatrix(_ID(), QTObject.ID(paramStream), paramMatrix.getBytes()));
/*     */   }
/*     */
/*     */   public Matrix getMatrix(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 664 */     Matrix localMatrix = new Matrix();
/* 665 */     QTException.checkError(QTSPresSetMatrix(_ID(), QTObject.ID(paramStream), localMatrix.getBytes()));
/*     */
/* 667 */     return localMatrix;
/*     */   }
/*     */
/*     */   public void setDimensions(Stream paramStream, float paramFloat1, float paramFloat2)
/*     */     throws QTException
/*     */   {
/* 678 */     QTException.checkError(QTSPresSetDimensions(_ID(), QTObject.ID(paramStream), QTUtils.X2Fix(paramFloat1), QTUtils.X2Fix(paramFloat2)));
/*     */   }
/*     */
/*     */   public void setDimensions(Stream paramStream, QDDimension paramQDDimension)
/*     */     throws QTException
/*     */   {
/* 689 */     setDimensions(paramStream, paramQDDimension.getWidthF(), paramQDDimension.getHeightF());
/*     */   }
/*     */
/*     */   public QDDimension getDimensions(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 699 */     int[] arrayOfInt1 = { 0 };
/* 700 */     int[] arrayOfInt2 = { 0 };
/* 701 */     QTException.checkError(QTSPresGetDimensions(_ID(), QTObject.ID(paramStream), arrayOfInt1, arrayOfInt2));
/*     */
/* 703 */     return new QDDimension(QTUtils.Fix2X(arrayOfInt1[0]), QTUtils.Fix2X(arrayOfInt2[0]));
/*     */   }
/*     */
/*     */   public void setGraphicsMode(Stream paramStream, int paramInt, QDColor paramQDColor)
/*     */     throws QTException
/*     */   {
/* 715 */     QTException.checkError(QTSPresSetGraphicsMode(_ID(), QTObject.ID(paramStream), (short)paramInt, paramQDColor.getRGBColor()));
/*     */   }
/*     */
/*     */   public GraphicsMode getGraphicsMode(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 726 */     byte[] arrayOfByte = { 0 };
/* 727 */     short[] arrayOfShort = { 0 };
/* 728 */     QTException.checkError(QTSPresGetGraphicsMode(_ID(), QTObject.ID(paramStream), arrayOfShort, arrayOfByte));
/*     */
/* 730 */     return new GraphicsMode(arrayOfShort[0], QDColor.fromArray(arrayOfByte, 6));
/*     */   }
/*     */
/*     */   public Pict getPicture(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 739 */     return Pict.fromPresentation(this, paramStream);
/*     */   }
/*     */
/*     */   public void setVolumes(Stream paramStream, int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/* 750 */     QTException.checkError(QTSPresSetVolumes(_ID(), QTObject.ID(paramStream), (short)paramInt1, (short)paramInt2));
/*     */   }
/*     */
/*     */   public int getRightVolume(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 761 */     short[] arrayOfShort1 = { 0 };
/* 762 */     short[] arrayOfShort2 = { 0 };
/* 763 */     QTException.checkError(QTSPresGetVolumes(_ID(), QTObject.ID(paramStream), arrayOfShort1, arrayOfShort2));
/*     */
/* 765 */     return arrayOfShort2[0];
/*     */   }
/*     */
/*     */   public int getLeftVolume(Stream paramStream)
/*     */     throws QTException
/*     */   {
/* 775 */     short[] arrayOfShort1 = { 0 };
/* 776 */     short[] arrayOfShort2 = { 0 };
/* 777 */     QTException.checkError(QTSPresGetVolumes(_ID(), QTObject.ID(paramStream), arrayOfShort1, arrayOfShort2));
/*     */
/* 779 */     return arrayOfShort1[0];
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void addSource(Stream paramStream, Component paramComponent, int paramInt)
/*     */     throws QTException
/*     */   {
/* 791 */     addSourcer(paramStream, (Sourcer)paramComponent, paramInt);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void removeSource(Stream paramStream, Component paramComponent, int paramInt)
/*     */     throws QTException
/*     */   {
/* 803 */     removeSourcer(paramStream, (Sourcer)paramComponent, paramInt);
/*     */   }
/*     */
/*     */   public void addSourcer(Stream paramStream, Sourcer paramSourcer, int paramInt)
/*     */     throws QTException
/*     */   {
/* 815 */     QTException.checkError(QTSPresAddSourcer(_ID(), QTObject.ID(paramStream), QTObject.ID(paramSourcer), paramInt));
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public void removeSourcer(Stream paramStream, Sourcer paramSourcer, int paramInt)
/*     */     throws QTException
/*     */   {
/* 828 */     QTException.checkError(QTSPresRemoveSourcer(_ID(), QTObject.ID(paramStream), QTObject.ID(paramSourcer), paramInt));
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public int getNumSources(Stream paramStream)
/*     */   {
/* 840 */     return getNumSourcers(paramStream);
/*     */   }
/*     */
/*     */   public int getNumSourcers(Stream paramStream)
/*     */   {
/* 850 */     return QTSPresGetNumSourcers(_ID(), QTObject.ID(paramStream));
/*     */   }
/*     */
/*     */   public Sourcer getIndSourcer(Stream paramStream, int paramInt)
/*     */     throws QTException
/*     */   {
/* 861 */     int[] arrayOfInt = { 0 };
/* 862 */     QTException.checkError(QTSPresGetIndSourcer(_ID(), QTObject.ID(paramStream), paramInt, arrayOfInt));
/*     */
/* 865 */     return new Sourcer(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   private static native short QTSNewPresentation(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSNewPresentationFromData(int paramInt1, int paramInt2, long[] paramArrayOfLong, int paramInt3, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSNewPresentationFromFile(byte[] paramArrayOfByte, int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSNewPresentationFromDataRef(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresExport(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetFlags(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native short QTSPresGetFlags(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresGetTimeScale(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresSetInfo(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresGetInfo(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresGetInfo(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresHasCharacteristic(int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetNotificationProc(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresGetNotificationProc(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresPreview(int paramInt1, int paramInt2, long[] paramArrayOfLong, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresPreroll(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/*     */
/*     */   private static native short QTSPresPreroll64(int paramInt1, int paramInt2, long[] paramArrayOfLong, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresStart(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native void QTSPresIdle(int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTSPresInvalidateRegion(int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTSPresSkipTo(int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTSPresSkipTo64(int paramInt, long[] paramArrayOfLong);
/*     */
/*     */   private static native short QTSPresStop(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native int QTSPresGetNumStreams(int paramInt);
/*     */
/*     */   private static native int QTSPresGetIndStream(int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTSPresSetPreferredRate(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native short QTSPresGetPreferredRate(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresSetEnable(int paramInt1, int paramInt2, byte paramByte);
/*     */
/*     */   private static native short QTSPresGetEnable(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetPresenting(int paramInt1, int paramInt2, byte paramByte);
/*     */
/*     */   private static native short QTSPresGetPresenting(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetActiveSegment(int paramInt1, int paramInt2, long[] paramArrayOfLong1, long[] paramArrayOfLong2);
/*     */
/*     */   private static native short QTSPresGetActiveSegment(int paramInt1, int paramInt2, long[] paramArrayOfLong1, long[] paramArrayOfLong2);
/*     */
/*     */   private static native short QTSPresSetPlayHints(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresGetPlayHints(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresSetGWorld(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresGetGWorld(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/*     */
/*     */   private static native short QTSPresSetClip(int paramInt1, int paramInt2, int paramInt3);
/*     */
/*     */   private static native short QTSPresGetClip(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTSPresSetMatrix(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresGetMatrix(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetDimensions(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresGetDimensions(int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2);
/*     */
/*     */   private static native short QTSPresSetGraphicsMode(int paramInt1, int paramInt2, short paramShort, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresGetGraphicsMode(int paramInt1, int paramInt2, short[] paramArrayOfShort, byte[] paramArrayOfByte);
/*     */
/*     */   private static native short QTSPresSetVolumes(int paramInt1, int paramInt2, short paramShort1, short paramShort2);
/*     */
/*     */   private static native short QTSPresGetVolumes(int paramInt1, int paramInt2, short[] paramArrayOfShort1, short[] paramArrayOfShort2);
/*     */
/*     */   private static native short QTSPresAddSourcer(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresRemoveSourcer(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/*     */
/*     */   private static native short QTSPresGetNumSourcers(int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTSPresGetIndSourcer(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/*     */
/*     */   static
/*     */   {
/*  37 */     if (QTSession.hasSecurityRestrictions()) {
/*  38 */       throw new SecurityException("Only able to broadcast with security settings when class is signed");
/*     */     }
/*  40 */     if (QTSession.isCurrentOS(2))
/*  41 */       throw new RuntimeException("The broadcaster API is not supported on windows");
/*     */   }
/*     */ }

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

Related Classes of quicktime.streaming.Presentation

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.