int frames = pics.length;
int rawImageSize = QTImage.getMaxCompressionSize(gw, gRect,
gw.getPixMap().getPixelSize(), StdQTConstants.codecLosslessQuality,
CODEC_TYPE, CodecComponent.bestFidelityCodec);
QTHandle imageHandle = new QTHandle(rawImageSize, true);
imageHandle.lock();
RawEncodedImage compressed = RawEncodedImage.fromQTHandle(imageHandle);
CSequence seq = new CSequence(gw, gRect, gw.getPixMap().getPixelSize(),
CODEC_TYPE, CodecComponent.bestFidelityCodec,
StdQTConstants.codecLosslessQuality,
StdQTConstants.codecLosslessQuality,