Package quicktime.std.image

Source Code of quicktime.std.image.Compressor

/*    */ package quicktime.std.image;
/*    */
/*    */ import quicktime.QTObject;
/*    */ import quicktime.QTSession;
/*    */ import quicktime.std.StdQTException;
/*    */ import quicktime.std.sg.SGVideoChannel;
/*    */ import quicktime.std.sg.SGVideoCompressorInfo;
/*    */
/*    */ public final class Compressor extends CodecComponent
/*    */ {
/* 27 */   private static boolean apriori = QTSession.apriori();
/*    */
/*    */   Compressor(int paramInt) {
/* 30 */     super(paramInt);
/*    */   }
/*    */
/*    */   public static SGVideoCompressorInfo fromSGVideoChannel(SGVideoChannel paramSGVideoChannel)
/*    */     throws StdQTException
/*    */   {
/* 39 */     short[] arrayOfShort = new short[1];
/* 40 */     int[] arrayOfInt1 = new int[1];
/* 41 */     int[] arrayOfInt2 = new int[1];
/* 42 */     int[] arrayOfInt3 = new int[1];
/* 43 */     int[] arrayOfInt4 = new int[1];
/*    */
/* 45 */     int i = SGGetVideoCompressor(QTObject.ID(paramSGVideoChannel), arrayOfShort, arrayOfInt1, arrayOfInt2, arrayOfInt3, arrayOfInt4);
/*    */
/* 47 */     StdQTException.checkError(i);
/*    */
/* 49 */     return new SGVideoCompressorInfo(arrayOfShort[0], new Compressor(arrayOfInt1[0]), arrayOfInt2[0], arrayOfInt3[0], arrayOfInt4[0]);
/*    */   }
/*    */
/*    */   public static Compressor findCodec(int paramInt, CodecComponent paramCodecComponent)
/*    */     throws StdQTException
/*    */   {
/* 61 */     int[] arrayOfInt = new int[1];
/* 62 */     int i = FindCodec(paramInt, QTObject.ID(paramCodecComponent), arrayOfInt, 0);
/* 63 */     StdQTException.checkError(i);
/* 64 */     Compressor localCompressor = new Compressor(arrayOfInt[0]);
/* 65 */     return localCompressor;
/*    */   }
/*    */
/*    */   private static native short FindCodec(int paramInt1, int paramInt2, int[] paramArrayOfInt, int paramInt3);
/*    */
/*    */   private static native int SGGetVideoCompressor(int paramInt, short[] paramArrayOfShort, int[] paramArrayOfInt1, int[] paramArrayOfInt2, int[] paramArrayOfInt3, int[] paramArrayOfInt4);
/*    */ }

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

Related Classes of quicktime.std.image.Compressor

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.