/* */
/* 167 */ QDGraphics localQDGraphics1 = null;
/* 168 */ QDGraphics localQDGraphics2 = null;
/* 169 */ PixMap localPixMap2 = null;
/* 170 */ ImageDescription localImageDescription = null;
/* 171 */ ImageSequenceDataSource localImageSequenceDataSource = null;
/* 172 */ if (j != 0) {
/* 173 */ localQDGraphics1 = new QDGraphics(localQDRect);
/* 174 */ localQDGraphics2 = new QDGraphics(8, localQDRect);
/* 175 */ localPixMap2 = localQDGraphics2.getPixMap();
/* 176 */ localImageDescription = new ImageDescription(localPixMap2);
/* 177 */ localImageDescription.lock();
/* */ }
/* */
/* 180 */ if ((paramImageSpec instanceof ImageDataSequence)) {
/* 181 */ ImageDataSequence localImageDataSequence2 = (ImageDataSequence)paramImageSpec;
/* 182 */ for (int k = 1; k <= localImageDataSequence2.size(); k++)
/* */ {
/* 184 */ if (j != 0) {
/* 185 */ localCSequenceToMemory.begin(localQDGraphics1, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/* */
/* 196 */ localImageSequenceDataSource = new ImageSequenceDataSource(localCSequenceToMemory.getSequence(), 1768776048, 1, localImageDescription);
/* 197 */ localImageSequenceDataSource.setSourceData(RawEncodedImage.fromPixMap(localPixMap2));
/* */
/* 199 */ localQDGraphics1.setBackColor(paramQDColor);
/* 200 */ localQDGraphics1.eraseRect(null);
/* 201 */ localQDGraphics2.setBackColor(QDColor.white);
/* 202 */ localQDGraphics2.eraseRect(null);
/* 203 */ localQDGraphics2.setForeColor(QDColor.black);
/* 204 */ localQDGraphics2.paintRgn(paramRegion != null ? paramRegion : paramArrayOfRegion[(k - 1)]);
/* */
/* 207 */ localCSequenceToMemory.compressFrame(localQDGraphics1, localQDRect, 0);
/* */
/* 209 */ localCSequenceToMemory.getSequence().setPrev(localQDGraphics1, null);
/* */
/* 211 */ paramQDGraphics.setBackColor(paramQDColor);
/* 212 */ paramQDGraphics.eraseRect(null);
/* */ } else {
/* 214 */ localCSequenceToMemory.begin(paramQDGraphics, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/* */
/* 225 */ paramQDGraphics.setBackColor(paramQDColor);
/* 226 */ paramQDGraphics.eraseRect(null);
/* */
/* 228 */ localCSequenceToMemory.compressFrame(paramQDGraphics, localQDRect, 4);
/* */ }
/* */
/* 232 */ localDSequenceFromMemory.redraw(null);
/* */
/* 234 */ localCSequenceToMemory.compressFrame(paramQDGraphics, localQDRect, j != 0 ? 0 : 4);
/* */
/* 237 */ if (k == 1) {
/* 238 */ localImageDataSequence1.setDescription(localCSequenceToMemory.getDescription());
/* 239 */ localImageDataSequence1.getDescription().setFrameCount(localImageDataSequence2.size());
/* */ }
/* */
/* 243 */ localImageDataSequence1.append((EncodedImage)localCSequenceToMemory.getFrames().elementAt(1));
/* */
/* 245 */ localDSequenceFromMemory.setFrameNext();
/* */
/* 247 */ if (k % 3 == 0) QTUtils.reclaimMemory();
/* */ }
/* */ }
/* 250 */ else { if (j != 0) {
/* 251 */ localCSequenceToMemory.begin(localQDGraphics1, localQDRect, i, 1919706400, CodecComponent.anyCodec, 1024, 1024, 2, paramImageSpec.getDescription().getCTable(), 0);
/* */
/* 261 */ localImageSequenceDataSource = new ImageSequenceDataSource(localCSequenceToMemory.getSequence(), 1768776048, 1, localImageDescription);
/* 262 */ localImageSequenceDataSource.setSourceData(RawEncodedImage.fromPixMap(localPixMap2));
/* */
/* 264 */ localQDGraphics1.setBackColor(paramQDColor);
/* 265 */ localQDGraphics1.eraseRect(null);
/* 266 */ localQDGraphics2.setBackColor(QDColor.white);
/* 267 */ localQDGraphics2.eraseRect(null);