/* */ package quicktime.std.sg;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.qd.QDRect;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.image.Compressor;
/* */ import quicktime.std.image.ImageDescription;
/* */ import quicktime.std.movies.media.SampleDescription;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class SGVideoChannel extends VisualChannel
/* */ {
/* 33 */ private static boolean apriori = QTSession.apriori();
/* */
/* */ SGVideoChannel(int paramInt, SequenceGrabber paramSequenceGrabber) throws StdQTException
/* */ {
/* 37 */ super(paramInt, paramSequenceGrabber);
/* */ }
/* */
/* */ public SGVideoChannel(SequenceGrabber paramSequenceGrabber)
/* */ throws StdQTException
/* */ {
/* 47 */ super(paramSequenceGrabber, 1986618469);
/* */ }
/* */
/* */ final SampleDescription makeDescription() throws QTException
/* */ {
/* 52 */ return new ImageDescription(0);
/* */ }
/* */
/* */ public final ImageDescription getImageDescription()
/* */ throws QTException
/* */ {
/* 61 */ return (ImageDescription)getSampleDescription();
/* */ }
/* */
/* */ public void setCompressorType(int paramInt)
/* */ throws StdQTException
/* */ {
/* 70 */ int i = SGSetVideoCompressorType(_ID(), paramInt);
/* 71 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public int getCompressorType()
/* */ throws StdQTException
/* */ {
/* 80 */ int[] arrayOfInt = new int[1];
/* 81 */ int i = SGGetVideoCompressorType(_ID(), arrayOfInt);
/* 82 */ StdQTException.checkError(i);
/* */
/* 84 */ return arrayOfInt[0];
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setCompressor(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5)
/* */ throws StdQTException
/* */ {
/* 100 */ int i = SGSetVideoCompressor(_ID(), (short)paramInt1, paramInt2, paramInt3, paramInt4, paramInt5);
/* 101 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void setCompressor(int paramInt1, Compressor paramCompressor, int paramInt2, int paramInt3, int paramInt4)
/* */ throws StdQTException
/* */ {
/* 117 */ int i = SGSetVideoCompressor(_ID(), (short)paramInt1, QTObject.ID(paramCompressor), paramInt2, paramInt3, paramInt4);
/* 118 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public SGVideoCompressorInfo getCompressor()
/* */ throws StdQTException
/* */ {
/* 128 */ return Compressor.fromSGVideoChannel(this);
/* */ }
/* */
/* */ public VideoDigitizer getDigitizerComponent()
/* */ {
/* 138 */ int i = SGGetVideoDigitizerComponent(_ID());
/* 139 */ return VideoDigitizer.makeVideoDigitizer(i, this);
/* */ }
/* */
/* */ public void setDigitizerComponent(VideoDigitizer paramVideoDigitizer)
/* */ throws StdQTException
/* */ {
/* 148 */ StdQTException.checkError(SGSetVideoDigitizerComponent(_ID(), QTObject.ID(paramVideoDigitizer)));
/* */ }
/* */
/* */ public void digitizerChanged()
/* */ throws StdQTException
/* */ {
/* 159 */ StdQTException.checkError(SGVideoDigitizerChanged(_ID()));
/* */ }
/* */
/* */ public void setVideoRect(QDRect paramQDRect)
/* */ throws StdQTException
/* */ {
/* 170 */ int i = SGSetVideoRect(_ID(), paramQDRect.getRect());
/* 171 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public QDRect getVideoRect()
/* */ throws StdQTException
/* */ {
/* 180 */ QDRect localQDRect = new QDRect();
/* 181 */ int i = SGGetVideoRect(_ID(), localQDRect.getRect());
/* 182 */ StdQTException.checkError(i);
/* 183 */ return localQDRect;
/* */ }
/* */
/* */ public QDRect getSrcVideoBounds()
/* */ throws StdQTException
/* */ {
/* 192 */ QDRect localQDRect = new QDRect();
/* 193 */ int i = SGGetSrcVideoBounds(_ID(), localQDRect.getRect());
/* 194 */ StdQTException.checkError(i);
/* 195 */ return localQDRect;
/* */ }
/* */
/* */ public void setFrameRate(float paramFloat)
/* */ throws StdQTException
/* */ {
/* 204 */ int i = SGSetFrameRate(_ID(), QTUtils.X2Fix(paramFloat));
/* 205 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public float getFrameRate()
/* */ throws StdQTException
/* */ {
/* 214 */ int[] arrayOfInt = { 0 };
/* 215 */ int i = SGGetFrameRate(_ID(), arrayOfInt);
/* 216 */ StdQTException.checkError(i);
/* 217 */ return QTUtils.Fix2X(arrayOfInt[0]);
/* */ }
/* */
/* */ private static native int SGSetVideoCompressorType(int paramInt1, int paramInt2);
/* */
/* */ private static native int SGGetVideoCompressorType(int paramInt, int[] paramArrayOfInt);
/* */
/* */ private static native int SGSetVideoCompressor(int paramInt1, short paramShort, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native int SGGetVideoDigitizerComponent(int paramInt);
/* */
/* */ private static native int SGSetVideoDigitizerComponent(int paramInt1, int paramInt2);
/* */
/* */ private static native int SGVideoDigitizerChanged(int paramInt);
/* */
/* */ private static native int SGSetVideoRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int SGGetVideoRect(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int SGGetSrcVideoBounds(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native int SGSetFrameRate(int paramInt1, int paramInt2);
/* */
/* */ private static native int SGGetFrameRate(int paramInt, int[] paramArrayOfInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.sg.SGVideoChannel
* JD-Core Version: 0.6.2
*/