public class sun.awt.image.OffScreenImageSource implements java.awt.image.ImageProducer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.image.OffScreenImageSource
super_class: java.lang.Object
{
java.awt.image.BufferedImage image;
descriptor: Ljava/awt/image/BufferedImage;
flags: (0x0000)
int width;
descriptor: I
flags: (0x0000)
int height;
descriptor: I
flags: (0x0000)
java.util.Hashtable<?, ?> properties;
descriptor: Ljava/util/Hashtable;
flags: (0x0000)
Signature: Ljava/util/Hashtable<**>;
private java.awt.image.ImageConsumer theConsumer;
descriptor: Ljava/awt/image/ImageConsumer;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.awt.image.BufferedImage, java.util.Hashtable<?, ?>);
descriptor: (Ljava/awt/image/BufferedImage;Ljava/util/Hashtable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
2: aload 2
ifnull 5
3: aload 0
aload 2
putfield sun.awt.image.OffScreenImageSource.properties:Ljava/util/Hashtable;
4: goto 6
5: StackMap locals: sun.awt.image.OffScreenImageSource java.awt.image.BufferedImage java.util.Hashtable
StackMap stack:
aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield sun.awt.image.OffScreenImageSource.properties:Ljava/util/Hashtable;
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.awt.image.BufferedImage.getWidth:()I
putfield sun.awt.image.OffScreenImageSource.width:I
7: aload 0
aload 1
invokevirtual java.awt.image.BufferedImage.getHeight:()I
putfield sun.awt.image.OffScreenImageSource.height:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/awt/image/OffScreenImageSource;
0 9 1 image Ljava/awt/image/BufferedImage;
0 9 2 properties Ljava/util/Hashtable<**>;
Signature: (Ljava/awt/image/BufferedImage;Ljava/util/Hashtable<**>;)V
MethodParameters:
Name Flags
image
properties
public void <init>(java.awt.image.BufferedImage);
descriptor: (Ljava/awt/image/BufferedImage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial sun.awt.image.OffScreenImageSource.<init>:(Ljava/awt/image/BufferedImage;Ljava/util/Hashtable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/image/OffScreenImageSource;
0 2 1 image Ljava/awt/image/BufferedImage;
MethodParameters:
Name Flags
image
public synchronized void addConsumer(java.awt.image.ImageConsumer);
descriptor: (Ljava/awt/image/ImageConsumer;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
1: aload 0
invokevirtual sun.awt.image.OffScreenImageSource.produce:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/image/OffScreenImageSource;
0 3 1 ic Ljava/awt/image/ImageConsumer;
MethodParameters:
Name Flags
ic
public synchronized boolean isConsumer(java.awt.image.ImageConsumer);
descriptor: (Ljava/awt/image/ImageConsumer;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/image/OffScreenImageSource;
0 2 1 ic Ljava/awt/image/ImageConsumer;
MethodParameters:
Name Flags
ic
public synchronized void removeConsumer(java.awt.image.ImageConsumer);
descriptor: (Ljava/awt/image/ImageConsumer;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 1
if_acmpne 2
1: aload 0
aconst_null
putfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/image/OffScreenImageSource;
0 3 1 ic Ljava/awt/image/ImageConsumer;
MethodParameters:
Name Flags
ic
public void startProduction(java.awt.image.ImageConsumer);
descriptor: (Ljava/awt/image/ImageConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.awt.image.OffScreenImageSource.addConsumer:(Ljava/awt/image/ImageConsumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/image/OffScreenImageSource;
0 2 1 ic Ljava/awt/image/ImageConsumer;
MethodParameters:
Name Flags
ic
public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer);
descriptor: (Ljava/awt/image/ImageConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/image/OffScreenImageSource;
0 1 1 ic Ljava/awt/image/ImageConsumer;
MethodParameters:
Name Flags
ic
private void sendPixels();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=11, args_size=1
start local 0 0: aload 0
getfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getColorModel:()Ljava/awt/image/ColorModel;
astore 1
start local 1 1: aload 0
getfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
astore 2
start local 2 2: aload 2
invokevirtual java.awt.image.WritableRaster.getNumDataElements:()I
istore 3
start local 3 3: aload 2
invokevirtual java.awt.image.WritableRaster.getDataBuffer:()Ljava/awt/image/DataBuffer;
invokevirtual java.awt.image.DataBuffer.getDataType:()I
istore 4
start local 4 4: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iload 3
imul
newarray 10
astore 5
start local 5 5: iconst_1
istore 6
start local 6 6: aload 1
instanceof java.awt.image.IndexColorModel
ifeq 48
7: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
newarray 8
astore 7
start local 7 8: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 1
invokeinterface java.awt.image.ImageConsumer.setColorModel:(Ljava/awt/image/ColorModel;)V
9: aload 2
instanceof sun.awt.image.ByteComponentRaster
ifeq 20
10: iconst_0
istore 6
11: iconst_0
istore 8
start local 8 12: goto 18
13: StackMap locals: sun.awt.image.OffScreenImageSource java.awt.image.ColorModel java.awt.image.WritableRaster int int int[] int byte[] int
StackMap stack:
aload 2
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 7
invokevirtual java.awt.image.WritableRaster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
pop
14: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 7
iconst_0
15: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
16: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[BII)V
17: iinc 8 1
StackMap locals:
StackMap stack:
18: iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 13
end local 8 19: goto 92
20: StackMap locals:
StackMap stack:
aload 2
instanceof sun.awt.image.BytePackedRaster
ifeq 36
21: iconst_0
istore 6
22: iconst_0
istore 8
start local 8 23: goto 34
24: StackMap locals: int
StackMap stack:
aload 2
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 5
invokevirtual java.awt.image.WritableRaster.getPixels:(IIII[I)[I
pop
25: iconst_0
istore 9
start local 9 26: goto 29
27: StackMap locals: int
StackMap stack:
aload 7
iload 9
aload 5
iload 9
iaload
i2b
bastore
28: iinc 9 1
StackMap locals:
StackMap stack:
29: iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
if_icmplt 27
end local 9 30: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 7
iconst_0
31: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
32: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[BII)V
33: iinc 8 1
StackMap locals:
StackMap stack:
34: iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 24
end local 8 35: goto 92
36: StackMap locals:
StackMap stack:
iload 4
iconst_2
if_icmpeq 38
37: iload 4
iconst_3
if_icmpne 92
38: StackMap locals:
StackMap stack:
iconst_0
istore 6
39: iconst_0
istore 8
start local 8 40: goto 46
41: StackMap locals: int
StackMap stack:
aload 2
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 5
invokevirtual java.awt.image.WritableRaster.getPixels:(IIII[I)[I
pop
42: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 5
iconst_0
43: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
44: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[III)V
45: iinc 8 1
StackMap locals:
StackMap stack:
46: iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 41
end local 8 end local 7 47: goto 92
48: StackMap locals:
StackMap stack:
aload 1
instanceof java.awt.image.DirectColorModel
ifeq 92
49: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 1
invokeinterface java.awt.image.ImageConsumer.setColorModel:(Ljava/awt/image/ColorModel;)V
50: iconst_0
istore 6
51: iload 4
tableswitch { // 0 - 3
0: 61
1: 76
2: 91
3: 52
default: 91
}
52: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 53: goto 59
54: StackMap locals: int
StackMap stack:
aload 2
iconst_0
iload 7
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 5
invokevirtual java.awt.image.WritableRaster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
pop
55: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 7
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 5
iconst_0
56: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
57: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[III)V
58: iinc 7 1
StackMap locals:
StackMap stack:
59: iload 7
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 54
end local 7 60: goto 92
61: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
newarray 8
astore 7
start local 7 62: iconst_0
istore 8
start local 8 63: goto 74
64: StackMap locals: byte[] int
StackMap stack:
aload 2
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 7
invokevirtual java.awt.image.WritableRaster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
pop
65: iconst_0
istore 9
start local 9 66: goto 69
67: StackMap locals: int
StackMap stack:
aload 5
iload 9
aload 7
iload 9
baload
sipush 255
iand
iastore
68: iinc 9 1
StackMap locals:
StackMap stack:
69: iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
if_icmplt 67
end local 9 70: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 5
iconst_0
71: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
72: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[III)V
73: iinc 8 1
StackMap locals:
StackMap stack:
74: iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 64
end local 8 75: goto 92
end local 7 76: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
newarray 9
astore 8
start local 8 77: iconst_0
istore 9
start local 9 78: goto 89
79: StackMap locals: sun.awt.image.OffScreenImageSource java.awt.image.ColorModel java.awt.image.WritableRaster int int int[] int top short[] int
StackMap stack:
aload 2
iconst_0
iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 8
invokevirtual java.awt.image.WritableRaster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
pop
80: iconst_0
istore 10
start local 10 81: goto 84
82: StackMap locals: int
StackMap stack:
aload 5
iload 10
aload 8
iload 10
saload
ldc 65535
iand
iastore
83: iinc 10 1
StackMap locals:
StackMap stack:
84: iload 10
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
if_icmplt 82
end local 10 85: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 1
aload 5
iconst_0
86: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
87: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[III)V
88: iinc 9 1
StackMap locals:
StackMap stack:
89: iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 79
end local 9 90: goto 92
end local 8 91: StackMap locals: sun.awt.image.OffScreenImageSource java.awt.image.ColorModel java.awt.image.WritableRaster int int int[] int
StackMap stack:
iconst_1
istore 6
92: StackMap locals:
StackMap stack:
iload 6
ifeq 107
93: invokestatic java.awt.image.ColorModel.getRGBdefault:()Ljava/awt/image/ColorModel;
astore 7
start local 7 94: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 7
invokeinterface java.awt.image.ImageConsumer.setColorModel:(Ljava/awt/image/ColorModel;)V
95: iconst_0
istore 8
start local 8 96: goto 106
97: StackMap locals: java.awt.image.ColorModel int
StackMap stack:
iconst_0
istore 9
start local 9 98: goto 101
99: StackMap locals: int
StackMap stack:
aload 5
iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
iload 9
iload 8
invokevirtual java.awt.image.BufferedImage.getRGB:(II)I
iastore
100: iinc 9 1
StackMap locals:
StackMap stack:
101: iload 9
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
if_icmplt 99
end local 9 102: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_0
iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
iconst_1
aload 7
aload 5
iconst_0
103: aload 0
getfield sun.awt.image.OffScreenImageSource.width:I
104: invokeinterface java.awt.image.ImageConsumer.setPixels:(IIIILjava/awt/image/ColorModel;[III)V
105: iinc 8 1
StackMap locals:
StackMap stack:
106: iload 8
aload 0
getfield sun.awt.image.OffScreenImageSource.height:I
if_icmplt 97
end local 8 end local 7 107: StackMap locals:
StackMap stack:
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 108 0 this Lsun/awt/image/OffScreenImageSource;
1 108 1 cm Ljava/awt/image/ColorModel;
2 108 2 raster Ljava/awt/image/WritableRaster;
3 108 3 numDataElements I
4 108 4 dataType I
5 108 5 scanline [I
6 108 6 needToCvt Z
8 47 7 pixels [B
12 19 8 y I
23 35 8 y I
26 30 9 x I
40 47 8 y I
53 60 7 y I
62 76 7 bscanline [B
63 75 8 y I
66 70 9 x I
77 91 8 sscanline [S
78 90 9 y I
81 85 10 x I
94 107 7 newcm Ljava/awt/image/ColorModel;
96 107 8 y I
98 102 9 x I
private void produce();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 0
getfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getWidth:()I
aload 0
getfield sun.awt.image.OffScreenImageSource.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getHeight:()I
invokeinterface java.awt.image.ImageConsumer.setDimensions:(II)V
1: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
aload 0
getfield sun.awt.image.OffScreenImageSource.properties:Ljava/util/Hashtable;
invokeinterface java.awt.image.ImageConsumer.setProperties:(Ljava/util/Hashtable;)V
2: aload 0
invokevirtual sun.awt.image.OffScreenImageSource.sendPixels:()V
3: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_2
invokeinterface java.awt.image.ImageConsumer.imageComplete:(I)V
4: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
ifnull 14
5: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_3
invokeinterface java.awt.image.ImageConsumer.imageComplete:(I)V
6: goto 14
StackMap locals:
StackMap stack: java.lang.RuntimeException
7: astore 1
start local 1 8: aload 1
invokevirtual java.lang.RuntimeException.printStackTrace:()V
end local 1 9: goto 14
StackMap locals:
StackMap stack: java.lang.NullPointerException
10: astore 1
start local 1 11: aload 1
invokevirtual java.lang.NullPointerException.printStackTrace:()V
12: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
ifnull 14
13: aload 0
getfield sun.awt.image.OffScreenImageSource.theConsumer:Ljava/awt/image/ImageConsumer;
iconst_1
invokeinterface java.awt.image.ImageConsumer.imageComplete:(I)V
end local 1 14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/awt/image/OffScreenImageSource;
8 9 1 e Ljava/lang/RuntimeException;
11 14 1 e Ljava/lang/NullPointerException;
Exception table:
from to target type
5 6 7 Class java.lang.RuntimeException
0 9 10 Class java.lang.NullPointerException
}
SourceFile: "OffScreenImageSource.java"