/* */ package quicktime.std.image;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.util.ByteEncodedImage;
/* */ import quicktime.util.EncodedImage;
/* */ import quicktime.util.IntEncodedImage;
/* */ import quicktime.util.QTHandleRef;
/* */ import quicktime.util.RawEncodedImage;
/* */
/* */ public final class ImageSequenceDataSource extends QTObject
/* */ {
/* 31 */ private static boolean apriori = QTSession.apriori();
/* */
/* 71 */ private boolean isValid = true;
/* */
/* */ private static int allocate(CDSequence paramCDSequence, int paramInt1, int paramInt2, QTHandleRef paramQTHandleRef)
/* */ throws StdQTException
/* */ {
/* 35 */ int[] arrayOfInt = { 0 };
/* 36 */ StdQTException.checkError(CDSequenceNewDataSource(QTObject.ID(paramCDSequence), arrayOfInt, paramInt1, paramInt2, QTObject.ID(paramQTHandleRef), 0, 0));
/* */
/* 39 */ return arrayOfInt[0];
/* */ }
/* */
/* */ private static int allocate(CDSequence paramCDSequence, int paramInt1, int paramInt2) throws StdQTException {
/* 43 */ int[] arrayOfInt = { 0 };
/* 44 */ StdQTException.checkError(CDSequenceGetDataSource(QTObject.ID(paramCDSequence), arrayOfInt, paramInt1, paramInt2));
/* */
/* 47 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public ImageSequenceDataSource(CDSequence paramCDSequence, int paramInt1, int paramInt2, QTHandleRef paramQTHandleRef)
/* */ throws QTException
/* */ {
/* 58 */ super(allocate(paramCDSequence, paramInt1, paramInt2, paramQTHandleRef));
/* */ }
/* */
/* */ public ImageSequenceDataSource(CDSequence paramCDSequence, int paramInt1, int paramInt2)
/* */ throws QTException
/* */ {
/* 67 */ super(allocate(paramCDSequence, paramInt1, paramInt2));
/* */ }
/* */
/* */ public void changedSourceData()
/* */ throws StdQTException
/* */ {
/* 82 */ if (!this.isValid)
/* 83 */ throw new StdQTException(-50);
/* 84 */ StdQTException.checkError(CDSequenceChangedSourceData(_ID()));
/* */ }
/* */
/* */ public void setSourceData(EncodedImage paramEncodedImage)
/* */ throws StdQTException
/* */ {
/* 97 */ if (!this.isValid)
/* 98 */ throw new StdQTException(-50);
/* 99 */ int i = -50;
/* 100 */ if ((paramEncodedImage instanceof ByteEncodedImage))
/* 101 */ i = CDSequenceSetSourceData(_ID(), ((ByteEncodedImage)paramEncodedImage).getBytes(), paramEncodedImage.getSize());
/* 102 */ else if ((paramEncodedImage instanceof IntEncodedImage))
/* 103 */ i = CDSequenceSetSourceData(_ID(), ((IntEncodedImage)paramEncodedImage).getInts(), paramEncodedImage.getSize());
/* 104 */ else if ((paramEncodedImage instanceof RawEncodedImage))
/* 105 */ i = CDSequenceSetSourceData(_ID(), QTObject.ID((RawEncodedImage)paramEncodedImage), paramEncodedImage.getSize());
/* 106 */ StdQTException.checkError(i);
/* */ }
/* */
/* */ public void dispose()
/* */ throws StdQTException
/* */ {
/* 116 */ StdQTException.checkError(CDSequenceDisposeDataSource(_ID()));
/* 117 */ this.isValid = false;
/* */ }
/* */
/* */ private static native short CDSequenceNewDataSource(int paramInt1, int[] paramArrayOfInt, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6);
/* */
/* */ private static native short CDSequenceGetDataSource(int paramInt1, int[] paramArrayOfInt, int paramInt2, int paramInt3);
/* */
/* */ private static native short CDSequenceChangedSourceData(int paramInt);
/* */
/* */ private static native short CDSequenceSetSourceData(int paramInt1, byte[] paramArrayOfByte, int paramInt2);
/* */
/* */ private static native short CDSequenceSetSourceData(int paramInt1, int[] paramArrayOfInt, int paramInt2);
/* */
/* */ private static native short CDSequenceSetSourceData(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short CDSequenceDisposeDataSource(int paramInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.image.ImageSequenceDataSource
* JD-Core Version: 0.6.2
*/