public final class com.sun.imageio.plugins.png.PNGImageWriter extends javax.imageio.ImageWriter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.imageio.plugins.png.PNGImageWriter
super_class: javax.imageio.ImageWriter
{
private static final int DEFAULT_COMPRESSION_LEVEL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
javax.imageio.stream.ImageOutputStream stream;
descriptor: Ljavax/imageio/stream/ImageOutputStream;
flags: (0x0000)
com.sun.imageio.plugins.png.PNGMetadata metadata;
descriptor: Lcom/sun/imageio/plugins/png/PNGMetadata;
flags: (0x0000)
int sourceXOffset;
descriptor: I
flags: (0x0000)
int sourceYOffset;
descriptor: I
flags: (0x0000)
int sourceWidth;
descriptor: I
flags: (0x0000)
int sourceHeight;
descriptor: I
flags: (0x0000)
int[] sourceBands;
descriptor: [I
flags: (0x0000)
int periodX;
descriptor: I
flags: (0x0000)
int periodY;
descriptor: I
flags: (0x0000)
int numBands;
descriptor: I
flags: (0x0000)
int bpp;
descriptor: I
flags: (0x0000)
com.sun.imageio.plugins.png.RowFilter rowFilter;
descriptor: Lcom/sun/imageio/plugins/png/RowFilter;
flags: (0x0000)
byte[] prevRow;
descriptor: [B
flags: (0x0000)
byte[] currRow;
descriptor: [B
flags: (0x0000)
byte[][] filteredRows;
descriptor: [[B
flags: (0x0000)
int[] sampleSize;
descriptor: [I
flags: (0x0000)
int scalingBitDepth;
descriptor: I
flags: (0x0000)
byte[][] scale;
descriptor: [[B
flags: (0x0000)
byte[] scale0;
descriptor: [B
flags: (0x0000)
byte[][] scaleh;
descriptor: [[B
flags: (0x0000)
byte[][] scalel;
descriptor: [[B
flags: (0x0000)
int totalPixels;
descriptor: I
flags: (0x0000)
int pixelsDone;
descriptor: I
flags: (0x0000)
public void <init>(javax.imageio.spi.ImageWriterSpi);
descriptor: (Ljavax/imageio/spi/ImageWriterSpi;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.imageio.ImageWriter.<init>:(Ljavax/imageio/spi/ImageWriterSpi;)V
1: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
2: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
3: aload 0
iconst_0
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
4: aload 0
iconst_0
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
5: aload 0
iconst_0
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
6: aload 0
iconst_0
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
7: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
8: aload 0
iconst_1
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
9: aload 0
iconst_1
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
10: aload 0
new com.sun.imageio.plugins.png.RowFilter
dup
invokespecial com.sun.imageio.plugins.png.RowFilter.<init>:()V
putfield com.sun.imageio.plugins.png.PNGImageWriter.rowFilter:Lcom/sun/imageio/plugins/png/RowFilter;
11: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.prevRow:[B
12: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
13: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.filteredRows:[[B
14: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.sampleSize:[I
15: aload 0
iconst_m1
putfield com.sun.imageio.plugins.png.PNGImageWriter.scalingBitDepth:I
16: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
17: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
18: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
19: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
20: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 21 1 originatingProvider Ljavax/imageio/spi/ImageWriterSpi;
MethodParameters:
Name Flags
originatingProvider
public void setOutput(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.imageio.ImageWriter.setOutput:(Ljava/lang/Object;)V
1: aload 1
ifnull 6
2: aload 1
instanceof javax.imageio.stream.ImageOutputStream
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "output not an ImageOutputStream!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast javax.imageio.stream.ImageOutputStream
putfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 8 1 output Ljava/lang/Object;
MethodParameters:
Name Flags
output
public javax.imageio.ImageWriteParam getDefaultWriteParam();
descriptor: ()Ljavax/imageio/ImageWriteParam;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.sun.imageio.plugins.png.PNGImageWriteParam
dup
aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.getLocale:()Ljava/util/Locale;
invokespecial com.sun.imageio.plugins.png.PNGImageWriteParam.<init>:(Ljava/util/Locale;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
public javax.imageio.metadata.IIOMetadata getDefaultStreamMetadata(javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 1 1 param Ljavax/imageio/ImageWriteParam;
MethodParameters:
Name Flags
param
public javax.imageio.metadata.IIOMetadata getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier, javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/ImageTypeSpecifier;Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new com.sun.imageio.plugins.png.PNGMetadata
dup
invokespecial com.sun.imageio.plugins.png.PNGMetadata.<init>:()V
astore 3
start local 3 1: aload 3
aload 1
aload 1
invokevirtual javax.imageio.ImageTypeSpecifier.getSampleModel:()Ljava/awt/image/SampleModel;
invokevirtual java.awt.image.SampleModel.getNumBands:()I
invokevirtual com.sun.imageio.plugins.png.PNGMetadata.initialize:(Ljavax/imageio/ImageTypeSpecifier;I)V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 3 1 imageType Ljavax/imageio/ImageTypeSpecifier;
0 3 2 param Ljavax/imageio/ImageWriteParam;
1 3 3 m Lcom/sun/imageio/plugins/png/PNGMetadata;
MethodParameters:
Name Flags
imageType
param
public javax.imageio.metadata.IIOMetadata convertStreamMetadata(javax.imageio.metadata.IIOMetadata, javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 1 1 inData Ljavax/imageio/metadata/IIOMetadata;
0 1 2 param Ljavax/imageio/ImageWriteParam;
MethodParameters:
Name Flags
inData
param
public javax.imageio.metadata.IIOMetadata convertImageMetadata(javax.imageio.metadata.IIOMetadata, javax.imageio.ImageTypeSpecifier, javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/ImageTypeSpecifier;Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof com.sun.imageio.plugins.png.PNGMetadata
ifeq 2
1: aload 1
checkcast com.sun.imageio.plugins.png.PNGMetadata
invokevirtual com.sun.imageio.plugins.png.PNGMetadata.clone:()Ljava/lang/Object;
checkcast com.sun.imageio.plugins.png.PNGMetadata
areturn
2: StackMap locals:
StackMap stack:
new com.sun.imageio.plugins.png.PNGMetadata
dup
aload 1
invokespecial com.sun.imageio.plugins.png.PNGMetadata.<init>:(Ljavax/imageio/metadata/IIOMetadata;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 3 1 inData Ljavax/imageio/metadata/IIOMetadata;
0 3 2 imageType Ljavax/imageio/ImageTypeSpecifier;
0 3 3 param Ljavax/imageio/ImageWriteParam;
MethodParameters:
Name Flags
inData
imageType
param
private void write_magic();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: bipush 8
newarray 8
dup
iconst_0
bipush -119
bastore
dup
iconst_1
bipush 80
bastore
dup
iconst_2
bipush 78
bastore
dup
iconst_3
bipush 71
bastore
dup
iconst_4
bipush 13
bastore
dup
iconst_5
bipush 10
bastore
dup
bipush 6
bipush 26
bastore
dup
bipush 7
bipush 10
bastore
astore 1
start local 1 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
aload 1
invokeinterface javax.imageio.stream.ImageOutputStream.write:([B)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 3 1 magic [B
Exceptions:
throws java.io.IOException
private void write_IHDR();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1229472850
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 1: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_width:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_height:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
3: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
4: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
5: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_compressionMethod:I
ifeq 9
6: new javax.imageio.IIOException
dup
7: ldc "Only compression method 0 is defined in PNG 1.1"
8: invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: com.sun.imageio.plugins.png.ChunkStream
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_compressionMethod:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
10: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_filterMethod:I
ifeq 14
11: new javax.imageio.IIOException
dup
12: ldc "Only filter method 0 is defined in PNG 1.1"
13: invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_filterMethod:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
15: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
iflt 17
16: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
iconst_1
if_icmple 20
17: StackMap locals:
StackMap stack:
new javax.imageio.IIOException
dup
18: ldc "Only interlace methods 0 (node) and 1 (adam7) are defined in PNG 1.1"
19: invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
21: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
22: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 23 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_cHRM();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_present:Z
ifeq 11
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1665684045
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_whitePointX:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
3: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_whitePointY:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
4: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_redX:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
5: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_redY:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
6: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_greenX:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
7: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_greenY:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
8: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_blueX:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
9: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.cHRM_blueY:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
10: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 11 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_gAMA();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.gAMA_present:Z
ifeq 4
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1732332865
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.gAMA_gamma:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
3: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 4 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_iCCP();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iCCP_present:Z
ifeq 9
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1766015824
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iCCP_profileName:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
bipush 79
if_icmple 4
3: new javax.imageio.IIOException
dup
ldc "iCCP profile name is longer than 79"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: com.sun.imageio.plugins.png.ChunkStream
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iCCP_profileName:Ljava/lang/String;
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
5: aload 1
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
6: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iCCP_compressionMethod:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
7: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iCCP_compressedProfile:[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
8: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 9 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_sBIT();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_present:Z
ifeq 22
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1933723988
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
istore 2
start local 2 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_colorType:I
iload 2
if_icmpeq 8
4: aload 0
iconst_0
5: ldc "sBIT metadata has wrong color type.\nThe chunk will not be written."
6: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWarningOccurred:(ILjava/lang/String;)V
7: return
8: StackMap locals: com.sun.imageio.plugins.png.ChunkStream int
StackMap stack:
iload 2
ifeq 10
9: iload 2
iconst_4
if_icmpne 12
10: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_grayBits:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
11: goto 18
StackMap locals:
StackMap stack:
12: iload 2
iconst_2
if_icmpeq 15
13: iload 2
iconst_3
if_icmpeq 15
14: iload 2
bipush 6
if_icmpne 18
15: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_redBits:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
16: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_greenBits:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
17: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_blueBits:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
18: StackMap locals:
StackMap stack:
iload 2
iconst_4
if_icmpeq 20
19: iload 2
bipush 6
if_icmpne 21
20: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sBIT_alphaBits:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 2 end local 1 22: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 22 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
3 22 2 colorType I
Exceptions:
throws java.io.IOException
private void write_sRGB();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sRGB_present:Z
ifeq 4
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1934772034
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sRGB_renderingIntent:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
3: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 4 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_PLTE();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_present:Z
ifeq 20
1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
ifeq 3
2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
iconst_4
if_icmpne 7
3: StackMap locals:
StackMap stack:
aload 0
iconst_0
4: ldc "A PLTE chunk may not appear in a gray or gray alpha image.\nThe chunk will not be written"
5: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWarningOccurred:(ILjava/lang/String;)V
6: return
7: StackMap locals:
StackMap stack:
new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1347179589
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 8: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_red:[B
arraylength
istore 2
start local 2 9: iload 2
iconst_3
imul
newarray 8
astore 3
start local 3 10: iconst_0
istore 4
start local 4 11: iconst_0
istore 5
start local 5 12: goto 17
13: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter com.sun.imageio.plugins.png.ChunkStream int byte[] int int
StackMap stack:
aload 3
iload 4
iinc 4 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_red:[B
iload 5
baload
bastore
14: aload 3
iload 4
iinc 4 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_green:[B
iload 5
baload
bastore
15: aload 3
iload 4
iinc 4 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_blue:[B
iload 5
baload
bastore
16: iinc 5 1
StackMap locals:
StackMap stack:
17: iload 5
iload 2
if_icmplt 13
end local 5 18: aload 1
aload 3
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
19: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 4 end local 3 end local 2 end local 1 20: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
8 20 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
9 20 2 numEntries I
10 20 3 palette [B
11 20 4 index I
12 18 5 i I
Exceptions:
throws java.io.IOException
private void write_hIST();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.hIST_present:Z
ifeq 8
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1749635924
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_present:Z
ifne 4
3: new javax.imageio.IIOException
dup
ldc "hIST chunk without PLTE chunk!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: com.sun.imageio.plugins.png.ChunkStream
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.hIST_histogram:[C
5: iconst_0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.hIST_histogram:[C
arraylength
6: invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeChars:([CII)V
7: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 8 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException, javax.imageio.IIOException
private void write_tRNS();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_present:Z
ifeq 32
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1951551059
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
istore 2
start local 2 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_colorType:I
istore 3
start local 3 4: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_red:I
istore 4
start local 4 5: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_green:I
istore 5
start local 5 6: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_blue:I
istore 6
start local 6 7: iload 2
iconst_2
if_icmpne 12
8: iload 3
ifne 12
9: iload 2
istore 3
10: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_gray:I
11: dup
istore 6
dup
istore 5
istore 4
12: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter com.sun.imageio.plugins.png.ChunkStream int int int int int
StackMap stack:
iload 3
iload 2
if_icmpeq 17
13: aload 0
iconst_0
14: ldc "tRNS metadata has incompatible color type.\nThe chunk will not be written."
15: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWarningOccurred:(ILjava/lang/String;)V
16: return
17: StackMap locals:
StackMap stack:
iload 2
iconst_3
if_icmpne 22
18: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_present:Z
ifne 20
19: new javax.imageio.IIOException
dup
ldc "tRNS chunk without PLTE chunk!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_alpha:[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
21: goto 31
StackMap locals:
StackMap stack:
22: iload 2
ifne 25
23: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tRNS_gray:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
24: goto 31
StackMap locals:
StackMap stack:
25: iload 2
iconst_2
if_icmpne 30
26: aload 1
iload 4
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
27: aload 1
iload 5
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
28: aload 1
iload 6
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
29: goto 31
30: StackMap locals:
StackMap stack:
new javax.imageio.IIOException
dup
ldc "tRNS chunk for color type 4 or 6!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 32: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 32 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
3 32 2 colorType I
4 32 3 chunkType I
5 32 4 chunkRed I
6 32 5 chunkGreen I
7 32 6 chunkBlue I
Exceptions:
throws java.io.IOException, javax.imageio.IIOException
private void write_bKGD();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_present:Z
ifeq 28
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1649100612
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
iconst_3
iand
istore 2
start local 2 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_colorType:I
istore 3
start local 3 4: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_red:I
istore 4
start local 4 5: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_green:I
istore 5
start local 5 6: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_blue:I
istore 6
start local 6 7: iload 2
iconst_2
if_icmpne 12
8: iload 3
ifne 12
9: iload 2
istore 3
10: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_gray:I
11: dup
istore 6
dup
istore 5
istore 4
12: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter com.sun.imageio.plugins.png.ChunkStream int int int int int
StackMap stack:
iload 3
iload 2
if_icmpeq 17
13: aload 0
iconst_0
14: ldc "bKGD metadata has incompatible color type.\nThe chunk will not be written."
15: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWarningOccurred:(ILjava/lang/String;)V
16: return
17: StackMap locals:
StackMap stack:
iload 2
iconst_3
if_icmpne 20
18: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_index:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
19: goto 27
StackMap locals:
StackMap stack:
20: iload 2
ifeq 22
21: iload 2
iconst_4
if_icmpne 24
22: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.bKGD_gray:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
23: goto 27
24: StackMap locals:
StackMap stack:
aload 1
iload 4
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
25: aload 1
iload 5
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
26: aload 1
iload 6
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
27: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 28: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 28 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
3 28 2 colorType I
4 28 3 chunkType I
5 28 4 chunkRed I
6 28 5 chunkGreen I
7 28 6 chunkBlue I
Exceptions:
throws java.io.IOException
private void write_pHYs();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.pHYs_present:Z
ifeq 6
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1883789683
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.pHYs_pixelsPerUnitXAxis:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
3: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.pHYs_pixelsPerUnitYAxis:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeInt:(I)V
4: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.pHYs_unitSpecifier:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
5: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 6 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_sPLT();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_present:Z
ifeq 29
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1934642260
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_paletteName:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
bipush 79
if_icmple 4
3: new javax.imageio.IIOException
dup
ldc "sPLT palette name is longer than 79"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: com.sun.imageio.plugins.png.ChunkStream
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_paletteName:Ljava/lang/String;
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
5: aload 1
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
6: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_sampleDepth:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
7: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_red:[I
arraylength
istore 2
start local 2 8: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_sampleDepth:I
bipush 8
if_icmpne 19
9: iconst_0
istore 3
start local 3 10: goto 17
11: StackMap locals: int int
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_red:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
12: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_green:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
13: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_blue:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
14: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_alpha:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
15: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_frequency:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
16: iinc 3 1
StackMap locals:
StackMap stack:
17: iload 3
iload 2
if_icmplt 11
end local 3 18: goto 28
19: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 20: goto 27
21: StackMap locals: int
StackMap stack:
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_red:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
22: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_green:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
23: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_blue:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
24: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_alpha:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
25: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.sPLT_frequency:[I
iload 3
iaload
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
26: iinc 3 1
StackMap locals:
StackMap stack:
27: iload 3
iload 2
if_icmplt 21
end local 3 28: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 2 end local 1 29: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 29 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
8 29 2 numEntries I
10 18 3 i I
20 28 3 i I
Exceptions:
throws java.io.IOException
private void write_tIME();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_present:Z
ifeq 9
1: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1950960965
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_year:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeShort:(I)V
3: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_month:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
4: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_day:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
5: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_hour:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
6: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_minute:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
7: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tIME_second:I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
8: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
2 9 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private void write_tEXt();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tEXt_keyword:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.tEXt_text:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: goto 12
3: StackMap locals: java.util.Iterator java.util.Iterator
StackMap stack:
new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1950701684
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 3
start local 3 4: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 5: aload 4
invokevirtual java.lang.String.length:()I
bipush 79
if_icmple 7
6: new javax.imageio.IIOException
dup
ldc "tEXt keyword is longer than 79"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: com.sun.imageio.plugins.png.ChunkStream java.lang.String
StackMap stack:
aload 3
aload 4
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
8: aload 3
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
9: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 10: aload 3
aload 5
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
11: aload 3
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 5 end local 4 end local 3 12: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 14 1 keywordIter Ljava/util/Iterator<Ljava/lang/String;>;
2 14 2 textIter Ljava/util/Iterator<Ljava/lang/String;>;
4 12 3 cs Lcom/sun/imageio/plugins/png/ChunkStream;
5 12 4 keyword Ljava/lang/String;
10 12 5 text Ljava/lang/String;
Exceptions:
throws java.io.IOException
private byte[] deflate(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: new java.util.zip.DeflaterOutputStream
dup
aload 2
invokespecial java.util.zip.DeflaterOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 3
start local 3 2: aload 3
aload 1
invokevirtual java.util.zip.DeflaterOutputStream.write:([B)V
3: aload 3
invokevirtual java.util.zip.DeflaterOutputStream.close:()V
4: aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 5 1 b [B
1 5 2 baos Ljava/io/ByteArrayOutputStream;
2 5 3 dos Ljava/util/zip/DeflaterOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
private void write_iTXt();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=11, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_keyword:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_compressionFlag:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_compressionMethod:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_languageTag:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 4
start local 4 4: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_translatedKeyword:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
5: astore 5
start local 5 6: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.iTXt_text:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 6
start local 6 7: goto 29
8: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator
StackMap stack:
new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1767135348
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 7
start local 7 9: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 10: aload 8
invokevirtual java.lang.String.length:()I
bipush 79
if_icmple 12
11: new javax.imageio.IIOException
dup
ldc "iTXt keyword is longer than 79"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: com.sun.imageio.plugins.png.ChunkStream java.lang.String
StackMap stack:
aload 7
aload 8
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
13: aload 7
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
14: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Boolean
astore 9
start local 9 15: aload 7
aload 9
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 16
iconst_1
goto 17
StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator com.sun.imageio.plugins.png.ChunkStream java.lang.String java.lang.Boolean
StackMap stack: com.sun.imageio.plugins.png.ChunkStream
16: iconst_0
StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator com.sun.imageio.plugins.png.ChunkStream java.lang.String java.lang.Boolean
StackMap stack: com.sun.imageio.plugins.png.ChunkStream int
17: invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
18: aload 7
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
19: aload 7
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
20: aload 7
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
21: aload 7
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
ldc "UTF8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
22: aload 7
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
23: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 24: aload 9
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 27
25: aload 7
aload 0
aload 10
ldc "UTF8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.deflate:([B)[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
26: goto 28
27: StackMap locals: java.lang.String
StackMap stack:
aload 7
aload 10
ldc "UTF8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
28: StackMap locals:
StackMap stack:
aload 7
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 10 end local 9 end local 8 end local 7 29: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
30: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 31 1 keywordIter Ljava/util/Iterator<Ljava/lang/String;>;
2 31 2 flagIter Ljava/util/Iterator<Ljava/lang/Boolean;>;
3 31 3 methodIter Ljava/util/Iterator<Ljava/lang/Integer;>;
4 31 4 languageIter Ljava/util/Iterator<Ljava/lang/String;>;
6 31 5 translatedKeywordIter Ljava/util/Iterator<Ljava/lang/String;>;
7 31 6 textIter Ljava/util/Iterator<Ljava/lang/String;>;
9 29 7 cs Lcom/sun/imageio/plugins/png/ChunkStream;
10 29 8 keyword Ljava/lang/String;
15 29 9 compressed Ljava/lang/Boolean;
24 29 10 text Ljava/lang/String;
Exceptions:
throws java.io.IOException
private void write_zTXt();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.zTXt_keyword:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.zTXt_compressionMethod:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.zTXt_text:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 15
4: StackMap locals: java.util.Iterator java.util.Iterator java.util.Iterator
StackMap stack:
new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 2052348020
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 4
start local 4 5: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 6: aload 5
invokevirtual java.lang.String.length:()I
bipush 79
if_icmple 8
7: new javax.imageio.IIOException
dup
ldc "tEXt keyword is longer than 79"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: com.sun.imageio.plugins.png.ChunkStream java.lang.String
StackMap stack:
aload 4
aload 5
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeBytes:(Ljava/lang/String;)V
9: aload 4
iconst_0
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
10: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 6
start local 6 11: aload 4
iload 6
invokevirtual com.sun.imageio.plugins.png.ChunkStream.writeByte:(I)V
12: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 13: aload 4
aload 0
aload 7
ldc "ISO-8859-1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.deflate:([B)[B
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
14: aload 4
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 7 end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 17 1 keywordIter Ljava/util/Iterator<Ljava/lang/String;>;
2 17 2 methodIter Ljava/util/Iterator<Ljava/lang/Integer;>;
3 17 3 textIter Ljava/util/Iterator<Ljava/lang/String;>;
5 15 4 cs Lcom/sun/imageio/plugins/png/ChunkStream;
6 15 5 keyword Ljava/lang/String;
11 15 6 compressionMethod I
13 15 7 text Ljava/lang/String;
Exceptions:
throws java.io.IOException
private void writeUnknownChunks();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.unknownChunkType:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.unknownChunkData:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: goto 8
3: StackMap locals: java.util.Iterator java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: new com.sun.imageio.plugins.png.ChunkStream
dup
aload 3
invokestatic com.sun.imageio.plugins.png.PNGImageWriter.chunkType:(Ljava/lang/String;)I
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 4
start local 4 5: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 6: aload 4
aload 5
invokevirtual com.sun.imageio.plugins.png.ChunkStream.write:([B)V
7: aload 4
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
end local 5 end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 9
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 10 1 typeIter Ljava/util/Iterator<Ljava/lang/String;>;
2 10 2 dataIter Ljava/util/Iterator<[B>;
4 8 3 type Ljava/lang/String;
5 8 4 cs Lcom/sun/imageio/plugins/png/ChunkStream;
6 8 5 data [B
Exceptions:
throws java.io.IOException
private static int chunkType(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 1
start local 1 1: aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
istore 2
start local 2 2: aload 0
iconst_2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 3: aload 0
iconst_3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: iload 1
bipush 24
ishl
iload 2
bipush 16
ishl
ior
iload 3
bipush 8
ishl
ior
iload 4
ior
istore 5
start local 5 5: iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 typeString Ljava/lang/String;
1 6 1 c0 C
2 6 2 c1 C
3 6 3 c2 C
4 6 4 c3 C
5 6 5 type I
MethodParameters:
Name Flags
typeString
private void encodePass(javax.imageio.stream.ImageOutputStream, java.awt.image.RenderedImage, int, int, int, int);
descriptor: (Ljavax/imageio/stream/ImageOutputStream;Ljava/awt/image/RenderedImage;IIII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=29, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
istore 7
start local 7 1: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
istore 8
start local 8 2: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
istore 9
start local 9 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
istore 10
start local 10 4: iload 3
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
imul
istore 3
5: iload 5
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
imul
istore 5
6: iload 4
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
imul
istore 4
7: iload 6
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
imul
istore 6
8: iload 9
iload 3
isub
iload 5
iadd
iconst_1
isub
iload 5
idiv
istore 11
start local 11 9: iload 10
iload 4
isub
iload 6
iadd
iconst_1
isub
iload 6
idiv
istore 12
start local 12 10: iload 11
ifeq 11
iload 12
ifne 12
11: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int
StackMap stack:
return
12: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
imul
istore 3
13: iload 5
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
imul
istore 5
14: bipush 8
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
idiv
istore 13
start local 13 15: iload 9
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
imul
istore 14
start local 14 16: iload 14
newarray 10
astore 15
start local 15 17: iload 11
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
imul
istore 16
start local 16 18: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
bipush 8
if_icmpge 21
19: iload 16
iload 13
iadd
iconst_1
isub
iload 13
idiv
istore 16
20: goto 23
StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int
StackMap stack:
21: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
bipush 16
if_icmpne 23
22: iload 16
iconst_2
imul
istore 16
23: StackMap locals:
StackMap stack:
aconst_null
astore 17
start local 17 24: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
iconst_4
if_icmpne 28
25: aload 2
invokeinterface java.awt.image.RenderedImage.getColorModel:()Ljava/awt/image/ColorModel;
instanceof java.awt.image.IndexColorModel
ifeq 28
26: iload 16
iconst_2
imul
istore 16
27: aload 2
invokeinterface java.awt.image.RenderedImage.getColorModel:()Ljava/awt/image/ColorModel;
checkcast java.awt.image.IndexColorModel
astore 17
28: StackMap locals: java.awt.image.IndexColorModel
StackMap stack:
aload 0
iload 16
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
iadd
newarray 8
putfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
29: aload 0
iload 16
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
iadd
newarray 8
putfield com.sun.imageio.plugins.png.PNGImageWriter.prevRow:[B
30: aload 0
iconst_5
iload 16
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
iadd
multianewarray [[B 2
putfield com.sun.imageio.plugins.png.PNGImageWriter.filteredRows:[[B
31: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
istore 18
start local 18 32: iload 8
iload 4
iadd
istore 19
start local 19 33: goto 124
34: StackMap locals: int int
StackMap stack:
new java.awt.Rectangle
dup
iload 7
iload 19
iload 9
iconst_1
invokespecial java.awt.Rectangle.<init>:(IIII)V
astore 20
start local 20 35: aload 2
aload 20
invokeinterface java.awt.image.RenderedImage.getData:(Ljava/awt/Rectangle;)Ljava/awt/image/Raster;
astore 21
start local 21 36: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
ifnull 40
37: aload 21
iload 7
iload 19
iload 9
iconst_1
iload 7
iload 19
38: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
39: invokevirtual java.awt.image.Raster.createChild:(IIIIII[I)Ljava/awt/image/Raster;
astore 21
40: StackMap locals: java.awt.Rectangle java.awt.image.Raster
StackMap stack:
aload 21
iload 7
iload 19
iload 9
iconst_1
aload 15
invokevirtual java.awt.image.Raster.getPixels:(IIII[I)[I
pop
41: aload 2
invokeinterface java.awt.image.RenderedImage.getColorModel:()Ljava/awt/image/ColorModel;
invokevirtual java.awt.image.ColorModel.isAlphaPremultiplied:()Z
ifeq 52
42: aload 21
invokevirtual java.awt.image.Raster.createCompatibleWritableRaster:()Ljava/awt/image/WritableRaster;
astore 22
start local 22 43: aload 22
aload 22
invokevirtual java.awt.image.WritableRaster.getMinX:()I
aload 22
invokevirtual java.awt.image.WritableRaster.getMinY:()I
44: aload 22
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 22
invokevirtual java.awt.image.WritableRaster.getHeight:()I
45: aload 15
46: invokevirtual java.awt.image.WritableRaster.setPixels:(IIII[I)V
47: aload 2
invokeinterface java.awt.image.RenderedImage.getColorModel:()Ljava/awt/image/ColorModel;
aload 22
iconst_0
invokevirtual java.awt.image.ColorModel.coerceData:(Ljava/awt/image/WritableRaster;Z)Ljava/awt/image/ColorModel;
pop
48: aload 22
aload 22
invokevirtual java.awt.image.WritableRaster.getMinX:()I
aload 22
invokevirtual java.awt.image.WritableRaster.getMinY:()I
49: aload 22
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 22
invokevirtual java.awt.image.WritableRaster.getHeight:()I
50: aload 15
51: invokevirtual java.awt.image.WritableRaster.getPixels:(IIII[I)[I
pop
end local 22 52: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.PLTE_order:[I
astore 22
start local 22 53: aload 22
ifnull 59
54: iconst_0
istore 23
start local 23 55: goto 58
56: StackMap locals: int[] int
StackMap stack:
aload 15
iload 23
aload 22
aload 15
iload 23
iaload
iaload
iastore
57: iinc 23 1
StackMap locals:
StackMap stack:
58: iload 23
iload 14
if_icmplt 56
end local 23 59: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
istore 23
start local 23 60: iconst_0
istore 24
start local 24 61: iconst_0
istore 25
start local 25 62: iload 18
lookupswitch { // 5
1: 63
2: 63
4: 63
8: 78
16: 99
default: 109
}
63: StackMap locals: int int int
StackMap stack:
iload 13
iconst_1
isub
istore 26
start local 26 64: iload 3
istore 27
start local 27 65: goto 73
66: StackMap locals: int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
aload 15
iload 27
iaload
baload
istore 28
start local 28 67: iload 25
iload 18
ishl
iload 28
ior
istore 25
68: iload 24
iinc 24 1
iload 26
iand
iload 26
if_icmpne 72
69: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
iload 25
i2b
bastore
70: iconst_0
istore 25
71: iconst_0
istore 24
end local 28 72: StackMap locals:
StackMap stack:
iload 27
iload 5
iadd
istore 27
StackMap locals:
StackMap stack:
73: iload 27
iload 14
if_icmplt 66
end local 27 74: iload 24
iload 26
iand
ifeq 109
75: iload 25
bipush 8
iload 18
idiv
iload 24
isub
iload 18
imul
ishl
istore 25
76: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
iload 25
i2b
bastore
77: goto 109
end local 26 78: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
iconst_1
if_icmpne 89
79: iload 3
istore 27
start local 27 80: goto 87
81: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int top int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
aload 15
iload 27
iaload
baload
bastore
82: aload 17
ifnull 86
83: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
84: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
aload 17
sipush 255
aload 15
iload 27
iaload
iand
invokevirtual java.awt.image.IndexColorModel.getAlpha:(I)I
baload
85: bastore
86: StackMap locals:
StackMap stack:
iload 27
iload 5
iadd
istore 27
StackMap locals:
StackMap stack:
87: iload 27
iload 14
if_icmplt 81
end local 27 88: goto 109
89: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int
StackMap stack:
iload 3
istore 27
start local 27 90: goto 97
91: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int top int
StackMap stack:
iconst_0
istore 28
start local 28 92: goto 95
93: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
iload 28
aaload
aload 15
iload 27
iload 28
iadd
iaload
baload
bastore
94: iinc 28 1
StackMap locals:
StackMap stack:
95: iload 28
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
if_icmplt 93
end local 28 96: iload 27
iload 5
iadd
istore 27
StackMap locals:
StackMap stack:
97: iload 27
iload 14
if_icmplt 91
end local 27 98: goto 109
99: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int
StackMap stack:
iload 3
istore 27
start local 27 100: goto 108
101: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int top int
StackMap stack:
iconst_0
istore 28
start local 28 102: goto 106
103: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
iload 28
aaload
aload 15
iload 27
iload 28
iadd
iaload
baload
bastore
104: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
iload 23
iinc 23 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
iload 28
aaload
aload 15
iload 27
iload 28
iadd
iaload
baload
bastore
105: iinc 28 1
StackMap locals:
StackMap stack:
106: iload 28
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
if_icmplt 103
end local 28 107: iload 27
iload 5
iadd
istore 27
StackMap locals:
StackMap stack:
108: iload 27
iload 14
if_icmplt 101
end local 27 109: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int java.awt.Rectangle java.awt.image.Raster int[] int int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.rowFilter:Lcom/sun/imageio/plugins/png/RowFilter;
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_colorType:I
110: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.prevRow:[B
111: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.filteredRows:[[B
112: iload 16
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
113: invokevirtual com.sun.imageio.plugins.png.RowFilter.filterRow:(I[B[B[[BII)I
istore 26
start local 26 114: aload 1
iload 26
invokeinterface javax.imageio.stream.ImageOutputStream.write:(I)V
115: aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.filteredRows:[[B
iload 26
aaload
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
iload 16
invokeinterface javax.imageio.stream.ImageOutputStream.write:([BII)V
116: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
astore 27
start local 27 117: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.prevRow:[B
putfield com.sun.imageio.plugins.png.PNGImageWriter.currRow:[B
118: aload 0
aload 27
putfield com.sun.imageio.plugins.png.PNGImageWriter.prevRow:[B
119: aload 0
dup
getfield com.sun.imageio.plugins.png.PNGImageWriter.pixelsDone:I
iload 11
iadd
putfield com.sun.imageio.plugins.png.PNGImageWriter.pixelsDone:I
120: aload 0
ldc 100.0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.pixelsDone:I
i2f
fmul
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.totalPixels:I
i2f
fdiv
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processImageProgress:(F)V
121: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.abortRequested:()Z
ifeq 123
122: return
end local 27 end local 26 end local 25 end local 24 end local 23 end local 22 end local 21 end local 20 123: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.stream.ImageOutputStream java.awt.image.RenderedImage int int int int int int int int int int int int int[] int java.awt.image.IndexColorModel int int
StackMap stack:
iload 19
iload 6
iadd
istore 19
StackMap locals:
StackMap stack:
124: iload 19
iload 8
iload 10
iadd
if_icmplt 34
end local 19 125: return
end local 18 end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 126 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 126 1 os Ljavax/imageio/stream/ImageOutputStream;
0 126 2 image Ljava/awt/image/RenderedImage;
0 126 3 xOffset I
0 126 4 yOffset I
0 126 5 xSkip I
0 126 6 ySkip I
1 126 7 minX I
2 126 8 minY I
3 126 9 width I
4 126 10 height I
9 126 11 hpixels I
10 126 12 vpixels I
15 126 13 samplesPerByte I
16 126 14 numSamples I
17 126 15 samples [I
18 126 16 bytesPerRow I
24 126 17 icm_gray_alpha Ljava/awt/image/IndexColorModel;
32 126 18 bitDepth I
33 125 19 row I
35 123 20 rect Ljava/awt/Rectangle;
36 123 21 ras Ljava/awt/image/Raster;
43 52 22 wr Ljava/awt/image/WritableRaster;
53 123 22 paletteOrder [I
55 59 23 i I
60 123 23 count I
61 123 24 pos I
62 123 25 tmp I
64 78 26 mask I
65 74 27 s I
67 72 28 val B
80 88 27 s I
90 98 27 s I
92 96 28 b I
100 109 27 s I
102 107 28 b I
114 123 26 filterType I
117 123 27 swap [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
os
image
xOffset
yOffset
xSkip
ySkip
private void write_IDAT(java.awt.image.RenderedImage, int);
descriptor: (Ljava/awt/image/RenderedImage;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new com.sun.imageio.plugins.png.IDATOutputStream
dup
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
ldc 32768
1: iload 2
2: invokespecial com.sun.imageio.plugins.png.IDATOutputStream.<init>:(Ljavax/imageio/stream/ImageOutputStream;II)V
astore 3
start local 3 3: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
iconst_1
if_icmpne 17
4: iconst_0
istore 4
start local 4 5: goto 15
6: StackMap locals: com.sun.imageio.plugins.png.IDATOutputStream int
StackMap stack:
aload 0
aload 3
aload 1
7: getstatic com.sun.imageio.plugins.png.PNGImageReader.adam7XOffset:[I
iload 4
iaload
8: getstatic com.sun.imageio.plugins.png.PNGImageReader.adam7YOffset:[I
iload 4
iaload
9: getstatic com.sun.imageio.plugins.png.PNGImageReader.adam7XSubsampling:[I
iload 4
iaload
10: getstatic com.sun.imageio.plugins.png.PNGImageReader.adam7YSubsampling:[I
iload 4
iaload
11: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.encodePass:(Ljavax/imageio/stream/ImageOutputStream;Ljava/awt/image/RenderedImage;IIII)V
12: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.abortRequested:()Z
ifeq 14
13: goto 22
14: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
bipush 7
if_icmplt 6
end local 4 16: goto 22
17: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 1
iconst_0
iconst_0
iconst_1
iconst_1
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.encodePass:(Ljavax/imageio/stream/ImageOutputStream;Ljava/awt/image/RenderedImage;IIII)V
18: goto 22
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 5
20: aload 3
invokevirtual com.sun.imageio.plugins.png.IDATOutputStream.finish:()V
21: aload 5
athrow
22: StackMap locals:
StackMap stack:
aload 3
invokevirtual com.sun.imageio.plugins.png.IDATOutputStream.finish:()V
23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 24 1 image Ljava/awt/image/RenderedImage;
0 24 2 deflaterLevel I
3 24 3 ios Lcom/sun/imageio/plugins/png/IDATOutputStream;
5 16 4 i I
Exception table:
from to target type
3 19 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
image
deflaterLevel
private void writeIEND();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: new com.sun.imageio.plugins.png.ChunkStream
dup
ldc 1229278788
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
invokespecial com.sun.imageio.plugins.png.ChunkStream.<init>:(ILjavax/imageio/stream/ImageOutputStream;)V
astore 1
start local 1 1: aload 1
invokevirtual com.sun.imageio.plugins.png.ChunkStream.finish:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
1 3 1 cs Lcom/sun/imageio/plugins/png/ChunkStream;
Exceptions:
throws java.io.IOException
private boolean equals(int[], int[]);
descriptor: ([I[I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
arraylength
aload 2
arraylength
if_icmpeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 5: goto 9
6: StackMap locals: int
StackMap stack:
aload 1
iload 3
iaload
aload 2
iload 3
iaload
if_icmpeq 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 1
arraylength
if_icmplt 6
end local 3 10: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 11 1 s0 [I
0 11 2 s1 [I
5 10 3 i I
MethodParameters:
Name Flags
s0
s1
private void initializeScaleTables(int[]);
descriptor: ([I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
istore 2
start local 2 1: iload 2
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scalingBitDepth:I
if_icmpne 4
2: aload 0
aload 1
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sampleSize:[I
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.equals:([I[I)Z
ifeq 4
3: return
4: StackMap locals: int
StackMap stack:
aload 0
aload 1
putfield com.sun.imageio.plugins.png.PNGImageWriter.sampleSize:[I
5: aload 0
iload 2
putfield com.sun.imageio.plugins.png.PNGImageWriter.scalingBitDepth:I
6: iconst_1
iload 2
ishl
iconst_1
isub
istore 3
start local 3 7: iload 2
bipush 8
if_icmpgt 26
8: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
anewarray byte[]
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
9: iconst_0
istore 4
start local 4 10: goto 22
11: StackMap locals: int int
StackMap stack:
iconst_1
aload 1
iload 4
iaload
ishl
iconst_1
isub
istore 5
start local 5 12: iload 5
iconst_2
idiv
istore 6
start local 6 13: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
iload 4
iload 5
iconst_1
iadd
newarray 8
aastore
14: iconst_0
istore 7
start local 7 15: goto 20
16: StackMap locals: int int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
iload 4
aaload
iload 7
17: iload 7
iload 3
imul
iload 6
iadd
iload 5
idiv
i2b
18: bastore
19: iinc 7 1
StackMap locals:
StackMap stack:
20: iload 7
iload 5
if_icmple 16
end local 7 end local 6 end local 5 21: iinc 4 1
StackMap locals:
StackMap stack:
22: iload 4
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
if_icmplt 11
end local 4 23: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
iconst_0
aaload
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
24: aload 0
aload 0
aconst_null
dup_x1
putfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
putfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
25: goto 45
26: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
anewarray byte[]
putfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
27: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
anewarray byte[]
putfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
28: iconst_0
istore 4
start local 4 29: goto 42
30: StackMap locals: int
StackMap stack:
iconst_1
aload 1
iload 4
iaload
ishl
iconst_1
isub
istore 5
start local 5 31: iload 5
iconst_2
idiv
istore 6
start local 6 32: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
iload 4
iload 5
iconst_1
iadd
newarray 8
aastore
33: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
iload 4
iload 5
iconst_1
iadd
newarray 8
aastore
34: iconst_0
istore 7
start local 7 35: goto 40
36: StackMap locals: int int int
StackMap stack:
iload 7
iload 3
imul
iload 6
iadd
iload 5
idiv
istore 8
start local 8 37: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scaleh:[[B
iload 4
aaload
iload 7
iload 8
bipush 8
ishr
i2b
bastore
38: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.scalel:[[B
iload 4
aaload
iload 7
iload 8
sipush 255
iand
i2b
bastore
end local 8 39: iinc 7 1
StackMap locals:
StackMap stack:
40: iload 7
iload 5
if_icmple 36
end local 7 end local 6 end local 5 41: iinc 4 1
StackMap locals:
StackMap stack:
42: iload 4
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
if_icmplt 30
end local 4 43: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale:[[B
44: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.scale0:[B
45: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 46 1 sampleSize [I
1 46 2 bitDepth I
7 46 3 maxOutSample I
10 23 4 b I
12 21 5 maxInSample I
13 21 6 halfMaxInSample I
15 21 7 s I
29 43 4 b I
31 41 5 maxInSample I
32 41 6 halfMaxInSample I
35 41 7 s I
37 39 8 val I
MethodParameters:
Name Flags
sampleSize
public void write(javax.imageio.metadata.IIOMetadata, javax.imageio.IIOImage, javax.imageio.ImageWriteParam);
descriptor: (Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/IIOImage;Ljavax/imageio/ImageWriteParam;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.stream:Ljavax/imageio/stream/ImageOutputStream;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "output == null!"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
ldc "image == null!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.imageio.IIOImage.hasRaster:()Z
ifeq 6
5: new java.lang.UnsupportedOperationException
dup
ldc "image has a Raster!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.imageio.IIOImage.getRenderedImage:()Ljava/awt/image/RenderedImage;
astore 4
start local 4 7: aload 4
invokeinterface java.awt.image.RenderedImage.getSampleModel:()Ljava/awt/image/SampleModel;
astore 5
start local 5 8: aload 0
aload 5
invokevirtual java.awt.image.SampleModel.getNumBands:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
9: aload 0
aload 4
invokeinterface java.awt.image.RenderedImage.getMinX:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
10: aload 0
aload 4
invokeinterface java.awt.image.RenderedImage.getMinY:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
11: aload 0
aload 4
invokeinterface java.awt.image.RenderedImage.getWidth:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
12: aload 0
aload 4
invokeinterface java.awt.image.RenderedImage.getHeight:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
13: aload 0
aconst_null
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
14: aload 0
iconst_1
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
15: aload 0
iconst_1
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
16: aload 3
ifnull 41
17: aload 3
invokevirtual javax.imageio.ImageWriteParam.getSourceRegion:()Ljava/awt/Rectangle;
astore 6
start local 6 18: aload 6
ifnull 29
19: new java.awt.Rectangle
dup
aload 4
invokeinterface java.awt.image.RenderedImage.getMinX:()I
20: aload 4
invokeinterface java.awt.image.RenderedImage.getMinY:()I
21: aload 4
invokeinterface java.awt.image.RenderedImage.getWidth:()I
22: aload 4
invokeinterface java.awt.image.RenderedImage.getHeight:()I
23: invokespecial java.awt.Rectangle.<init>:(IIII)V
astore 7
start local 7 24: aload 6
aload 7
invokevirtual java.awt.Rectangle.intersection:(Ljava/awt/Rectangle;)Ljava/awt/Rectangle;
astore 6
25: aload 0
aload 6
getfield java.awt.Rectangle.x:I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
26: aload 0
aload 6
getfield java.awt.Rectangle.y:I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
27: aload 0
aload 6
getfield java.awt.Rectangle.width:I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
28: aload 0
aload 6
getfield java.awt.Rectangle.height:I
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
end local 7 29: StackMap locals: java.awt.image.RenderedImage java.awt.image.SampleModel java.awt.Rectangle
StackMap stack:
aload 3
invokevirtual javax.imageio.ImageWriteParam.getSubsamplingXOffset:()I
istore 7
start local 7 30: aload 3
invokevirtual javax.imageio.ImageWriteParam.getSubsamplingYOffset:()I
istore 8
start local 8 31: aload 0
dup
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
iload 7
iadd
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceXOffset:I
32: aload 0
dup
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
iload 8
iadd
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceYOffset:I
33: aload 0
dup
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
iload 7
isub
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
34: aload 0
dup
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
iload 8
isub
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
35: aload 0
aload 3
invokevirtual javax.imageio.ImageWriteParam.getSourceXSubsampling:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
36: aload 0
aload 3
invokevirtual javax.imageio.ImageWriteParam.getSourceYSubsampling:()I
putfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
37: aload 3
invokevirtual javax.imageio.ImageWriteParam.getSourceBands:()[I
astore 9
start local 9 38: aload 9
ifnull 41
39: aload 0
aload 9
putfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
40: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceBands:[I
arraylength
putfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
end local 9 end local 8 end local 7 end local 6 41: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceWidth:I
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
iadd
iconst_1
isub
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodX:I
idiv
istore 6
start local 6 42: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.sourceHeight:I
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
iadd
iconst_1
isub
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.periodY:I
idiv
istore 7
start local 7 43: iload 6
ifle 44
iload 7
ifgt 45
44: StackMap locals: int int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Empty source region!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
45: StackMap locals:
StackMap stack:
aload 0
iload 6
iload 7
imul
putfield com.sun.imageio.plugins.png.PNGImageWriter.totalPixels:I
46: aload 0
iconst_0
putfield com.sun.imageio.plugins.png.PNGImageWriter.pixelsDone:I
47: aload 2
invokevirtual javax.imageio.IIOImage.getMetadata:()Ljavax/imageio/metadata/IIOMetadata;
astore 8
start local 8 48: aload 8
ifnull 54
49: aload 0
aload 0
aload 8
50: aload 4
invokestatic javax.imageio.ImageTypeSpecifier.createFromRenderedImage:(Ljava/awt/image/RenderedImage;)Ljavax/imageio/ImageTypeSpecifier;
51: aconst_null
52: invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.convertImageMetadata:(Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/ImageTypeSpecifier;Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
checkcast com.sun.imageio.plugins.png.PNGMetadata
putfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
53: goto 55
54: StackMap locals: javax.imageio.metadata.IIOMetadata
StackMap stack:
aload 0
new com.sun.imageio.plugins.png.PNGMetadata
dup
invokespecial com.sun.imageio.plugins.png.PNGMetadata.<init>:()V
putfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
55: StackMap locals:
StackMap stack:
iconst_4
istore 9
start local 9 56: aload 3
ifnull 67
57: aload 3
invokevirtual javax.imageio.ImageWriteParam.getCompressionMode:()I
tableswitch { // 0 - 2
0: 58
1: 63
2: 60
default: 63
}
58: StackMap locals: int
StackMap stack:
iconst_0
istore 9
59: goto 63
60: StackMap locals:
StackMap stack:
aload 3
invokevirtual javax.imageio.ImageWriteParam.getCompressionQuality:()F
fstore 10
start local 10 61: fload 10
fconst_0
fcmpl
iflt 63
fload 10
fconst_1
fcmpg
ifgt 63
62: bipush 9
ldc 9.0
fload 10
fmul
invokestatic java.lang.Math.round:(F)I
isub
istore 9
end local 10 63: StackMap locals:
StackMap stack:
aload 3
invokevirtual javax.imageio.ImageWriteParam.getProgressiveMode:()I
tableswitch { // 0 - 1
0: 66
1: 64
default: 67
}
64: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
iconst_1
putfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
65: goto 67
66: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
iconst_0
putfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_interlaceMethod:I
67: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
new javax.imageio.ImageTypeSpecifier
dup
aload 4
invokespecial javax.imageio.ImageTypeSpecifier.<init>:(Ljava/awt/image/RenderedImage;)V
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
invokevirtual com.sun.imageio.plugins.png.PNGMetadata.initialize:(Ljavax/imageio/ImageTypeSpecifier;I)V
68: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
iload 6
putfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_width:I
69: aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
iload 7
putfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_height:I
70: aload 0
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.numBands:I
aload 0
getfield com.sun.imageio.plugins.png.PNGImageWriter.metadata:Lcom/sun/imageio/plugins/png/PNGMetadata;
getfield com.sun.imageio.plugins.png.PNGMetadata.IHDR_bitDepth:I
bipush 16
if_icmpne 71
iconst_2
goto 72
StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.metadata.IIOMetadata javax.imageio.IIOImage javax.imageio.ImageWriteParam java.awt.image.RenderedImage java.awt.image.SampleModel int int javax.imageio.metadata.IIOMetadata int
StackMap stack: com.sun.imageio.plugins.png.PNGImageWriter int
71: iconst_1
StackMap locals: com.sun.imageio.plugins.png.PNGImageWriter javax.imageio.metadata.IIOMetadata javax.imageio.IIOImage javax.imageio.ImageWriteParam java.awt.image.RenderedImage java.awt.image.SampleModel int int javax.imageio.metadata.IIOMetadata int
StackMap stack: com.sun.imageio.plugins.png.PNGImageWriter int int
72: imul
putfield com.sun.imageio.plugins.png.PNGImageWriter.bpp:I
73: aload 0
aload 5
invokevirtual java.awt.image.SampleModel.getSampleSize:()[I
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.initializeScaleTables:([I)V
74: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.clearAbortRequest:()V
75: aload 0
iconst_0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processImageStarted:(I)V
76: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.abortRequested:()Z
ifeq 79
77: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWriteAborted:()V
78: goto 106
79: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_magic:()V
80: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR:()V
81: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_cHRM:()V
82: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_gAMA:()V
83: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_iCCP:()V
84: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_sBIT:()V
85: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_sRGB:()V
86: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_PLTE:()V
87: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_hIST:()V
88: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_tRNS:()V
89: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_bKGD:()V
90: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_pHYs:()V
91: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_sPLT:()V
92: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_tIME:()V
93: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_tEXt:()V
94: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_iTXt:()V
95: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_zTXt:()V
96: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.writeUnknownChunks:()V
97: aload 0
aload 4
iload 9
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT:(Ljava/awt/image/RenderedImage;I)V
98: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.abortRequested:()Z
ifeq 101
99: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processWriteAborted:()V
100: goto 106
101: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.writeIEND:()V
102: aload 0
invokevirtual com.sun.imageio.plugins.png.PNGImageWriter.processImageComplete:()V
103: goto 106
StackMap locals:
StackMap stack: java.io.IOException
104: astore 10
start local 10 105: new javax.imageio.IIOException
dup
ldc "I/O error writing PNG file!"
aload 10
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 10 106: StackMap locals:
StackMap stack:
return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 107 0 this Lcom/sun/imageio/plugins/png/PNGImageWriter;
0 107 1 streamMetadata Ljavax/imageio/metadata/IIOMetadata;
0 107 2 image Ljavax/imageio/IIOImage;
0 107 3 param Ljavax/imageio/ImageWriteParam;
7 107 4 im Ljava/awt/image/RenderedImage;
8 107 5 sampleModel Ljava/awt/image/SampleModel;
18 41 6 sourceRegion Ljava/awt/Rectangle;
24 29 7 imageBounds Ljava/awt/Rectangle;
30 41 7 gridX I
31 41 8 gridY I
38 41 9 sBands [I
42 107 6 destWidth I
43 107 7 destHeight I
48 107 8 imd Ljavax/imageio/metadata/IIOMetadata;
56 107 9 deflaterLevel I
61 63 10 quality F
105 106 10 e Ljava/io/IOException;
Exception table:
from to target type
79 103 104 Class java.io.IOException
Exceptions:
throws javax.imageio.IIOException
MethodParameters:
Name Flags
streamMetadata
image
param
}
SourceFile: "PNGImageWriter.java"