public class org.apache.batik.ext.awt.image.rendered.ProfileRed extends org.apache.batik.ext.awt.image.rendered.AbstractRed
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.batik.ext.awt.image.rendered.ProfileRed
super_class: org.apache.batik.ext.awt.image.rendered.AbstractRed
{
private static final java.awt.color.ColorSpace sRGBCS;
descriptor: Ljava/awt/color/ColorSpace;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.awt.image.ColorModel sRGBCM;
descriptor: Ljava/awt/image/ColorModel;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace;
descriptor: Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=10, locals=0, args_size=0
0: sipush 1000
invokestatic java.awt.color.ColorSpace.getInstance:(I)Ljava/awt/color/ColorSpace;
1: putstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCS:Ljava/awt/color/ColorSpace;
2: new java.awt.image.DirectColorModel
dup
getstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCS:Ljava/awt/color/ColorSpace;
3: bipush 32
4: ldc 16711680
5: ldc 65280
6: sipush 255
7: ldc -16777216
8: iconst_0
9: iconst_3
10: invokespecial java.awt.image.DirectColorModel.<init>:(Ljava/awt/color/ColorSpace;IIIIIZI)V
11: putstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCM:Ljava/awt/image/ColorModel;
12: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.batik.ext.awt.image.rendered.CachableRed, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent);
descriptor: (Lorg/apache/batik/ext/awt/image/rendered/CachableRed;Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.batik.ext.awt.image.rendered.AbstractRed.<init>:()V
1: aload 0
aload 2
putfield org.apache.batik.ext.awt.image.rendered.ProfileRed.colorSpace:Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;
2: aload 0
aload 1
aload 1
invokeinterface org.apache.batik.ext.awt.image.rendered.CachableRed.getBounds:()Ljava/awt/Rectangle;
3: getstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCM:Ljava/awt/image/ColorModel;
getstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCM:Ljava/awt/image/ColorModel;
aload 1
invokeinterface org.apache.batik.ext.awt.image.rendered.CachableRed.getWidth:()I
4: aload 1
invokeinterface org.apache.batik.ext.awt.image.rendered.CachableRed.getHeight:()I
5: invokevirtual java.awt.image.ColorModel.createCompatibleSampleModel:(II)Ljava/awt/image/SampleModel;
6: aload 1
invokeinterface org.apache.batik.ext.awt.image.rendered.CachableRed.getTileGridXOffset:()I
aload 1
invokeinterface org.apache.batik.ext.awt.image.rendered.CachableRed.getTileGridYOffset:()I
aconst_null
7: invokevirtual org.apache.batik.ext.awt.image.rendered.ProfileRed.init:(Lorg/apache/batik/ext/awt/image/rendered/CachableRed;Ljava/awt/Rectangle;Ljava/awt/image/ColorModel;Ljava/awt/image/SampleModel;IILjava/util/Map;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/batik/ext/awt/image/rendered/ProfileRed;
0 9 1 src Lorg/apache/batik/ext/awt/image/rendered/CachableRed;
0 9 2 colorSpace Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;
MethodParameters:
Name Flags
src
colorSpace
public org.apache.batik.ext.awt.image.rendered.CachableRed getSource();
descriptor: ()Lorg/apache/batik/ext/awt/image/rendered/CachableRed;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.batik.ext.awt.image.rendered.ProfileRed.getSources:()Ljava/util/Vector;
iconst_0
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast org.apache.batik.ext.awt.image.rendered.CachableRed
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/batik/ext/awt/image/rendered/ProfileRed;
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster);
descriptor: (Ljava/awt/image/WritableRaster;)Ljava/awt/image/WritableRaster;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=24, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.batik.ext.awt.image.rendered.ProfileRed.getSource:()Lorg/apache/batik/ext/awt/image/rendered/CachableRed;
astore 2
start local 2 1: aload 2
invokeinterface java.awt.image.RenderedImage.getColorModel:()Ljava/awt/image/ColorModel;
astore 3
start local 3 2: aload 3
invokevirtual java.awt.image.ColorModel.getColorSpace:()Ljava/awt/color/ColorSpace;
astore 4
start local 4 3: aload 4
invokevirtual java.awt.color.ColorSpace.getNumComponents:()I
istore 5
start local 5 4: aload 0
getfield org.apache.batik.ext.awt.image.rendered.ProfileRed.colorSpace:Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;
invokevirtual org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent.getNumComponents:()I
istore 6
start local 6 5: iload 5
iload 6
if_icmpeq 9
6: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Input image and associated color profile have mismatching number of color components: conversion is not possible"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: aload 1
8: areturn
9: StackMap locals: org.apache.batik.ext.awt.image.rendered.ProfileRed java.awt.image.WritableRaster java.awt.image.RenderedImage java.awt.image.ColorModel java.awt.color.ColorSpace int int
StackMap stack:
aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
istore 7
start local 7 10: aload 1
invokevirtual java.awt.image.WritableRaster.getHeight:()I
istore 8
start local 8 11: aload 1
invokevirtual java.awt.image.WritableRaster.getMinX:()I
istore 9
start local 9 12: aload 1
invokevirtual java.awt.image.WritableRaster.getMinY:()I
istore 10
start local 10 13: aload 3
iload 7
iload 8
invokevirtual java.awt.image.ColorModel.createCompatibleWritableRaster:(II)Ljava/awt/image/WritableRaster;
14: astore 11
start local 11 15: aload 11
iload 9
iload 10
invokevirtual java.awt.image.WritableRaster.createWritableTranslatedChild:(II)Ljava/awt/image/WritableRaster;
astore 11
16: aload 2
aload 11
invokeinterface java.awt.image.RenderedImage.copyData:(Ljava/awt/image/WritableRaster;)Ljava/awt/image/WritableRaster;
pop
17: aload 3
instanceof java.awt.image.ComponentColorModel
ifeq 20
18: aload 2
invokeinterface java.awt.image.RenderedImage.getSampleModel:()Ljava/awt/image/SampleModel;
instanceof java.awt.image.BandedSampleModel
ifeq 20
19: aload 3
invokevirtual java.awt.image.ColorModel.hasAlpha:()Z
ifeq 49
aload 3
invokevirtual java.awt.image.ColorModel.isAlphaPremultiplied:()Z
ifeq 49
20: StackMap locals: org.apache.batik.ext.awt.image.rendered.ProfileRed java.awt.image.WritableRaster java.awt.image.RenderedImage java.awt.image.ColorModel java.awt.color.ColorSpace int int int int int int java.awt.image.WritableRaster
StackMap stack:
new java.awt.image.ComponentColorModel
dup
21: aload 4
22: aload 3
invokevirtual java.awt.image.ColorModel.getComponentSize:()[I
23: aload 3
invokevirtual java.awt.image.ColorModel.hasAlpha:()Z
24: iconst_0
25: aload 3
invokevirtual java.awt.image.ColorModel.getTransparency:()I
26: iconst_0
27: invokespecial java.awt.image.ComponentColorModel.<init>:(Ljava/awt/color/ColorSpace;[IZZII)V
28: astore 12
start local 12 29: iconst_0
30: aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 1
invokevirtual java.awt.image.WritableRaster.getHeight:()I
31: aload 12
invokevirtual java.awt.image.ComponentColorModel.getNumComponents:()I
32: new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
33: invokestatic java.awt.image.Raster.createBandedRaster:(IIIILjava/awt/Point;)Ljava/awt/image/WritableRaster;
astore 13
start local 13 34: new java.awt.image.BufferedImage
dup
35: aload 12
aload 13
aload 12
invokevirtual java.awt.image.ComponentColorModel.isAlphaPremultiplied:()Z
aconst_null
36: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 14
start local 14 37: new java.awt.image.BufferedImage
dup
38: aload 3
aload 11
iconst_0
iconst_0
invokevirtual java.awt.image.WritableRaster.createWritableTranslatedChild:(II)Ljava/awt/image/WritableRaster;
39: aload 3
invokevirtual java.awt.image.ColorModel.isAlphaPremultiplied:()Z
aconst_null
40: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 15
start local 15 41: aload 14
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 16
start local 16 42: aload 16
getstatic java.awt.RenderingHints.KEY_COLOR_RENDERING:Ljava/awt/RenderingHints$Key;
43: getstatic java.awt.RenderingHints.VALUE_COLOR_RENDER_QUALITY:Ljava/lang/Object;
44: invokevirtual java.awt.Graphics2D.setRenderingHint:(Ljava/awt/RenderingHints$Key;Ljava/lang/Object;)V
45: aload 16
aload 15
iconst_0
iconst_0
aconst_null
invokevirtual java.awt.Graphics2D.drawImage:(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z
pop
46: aload 14
astore 2
47: aload 12
astore 3
48: aload 13
iload 9
iload 10
invokevirtual java.awt.image.WritableRaster.createWritableTranslatedChild:(II)Ljava/awt/image/WritableRaster;
astore 11
end local 16 end local 15 end local 14 end local 13 end local 12 49: StackMap locals:
StackMap stack:
new java.awt.image.ComponentColorModel
dup
50: aload 0
getfield org.apache.batik.ext.awt.image.rendered.ProfileRed.colorSpace:Lorg/apache/xmlgraphics/java2d/color/ICCColorSpaceWithIntent;
51: aload 3
invokevirtual java.awt.image.ColorModel.getComponentSize:()[I
52: iconst_0
53: iconst_0
54: iconst_1
55: iconst_0
56: invokespecial java.awt.image.ComponentColorModel.<init>:(Ljava/awt/color/ColorSpace;[IZZII)V
astore 12
start local 12 57: aload 11
invokevirtual java.awt.image.WritableRaster.getDataBuffer:()Ljava/awt/image/DataBuffer;
checkcast java.awt.image.DataBufferByte
astore 13
start local 13 58: aload 13
aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 1
invokevirtual java.awt.image.WritableRaster.getHeight:()I
59: aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
iconst_3
newarray 10
dup
iconst_1
iconst_1
iastore
dup
iconst_2
iconst_2
iastore
60: iconst_3
newarray 10
new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
61: invokestatic java.awt.image.Raster.createBandedRaster:(Ljava/awt/image/DataBuffer;III[I[ILjava/awt/Point;)Ljava/awt/image/WritableRaster;
astore 11
62: new java.awt.image.BufferedImage
dup
63: aload 12
aload 11
aload 12
invokevirtual java.awt.image.ComponentColorModel.isAlphaPremultiplied:()Z
aconst_null
64: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 14
start local 14 65: new java.awt.image.ComponentColorModel
dup
66: sipush 1000
invokestatic java.awt.color.ColorSpace.getInstance:(I)Ljava/awt/color/ColorSpace;
67: iconst_3
newarray 10
dup
iconst_0
bipush 8
iastore
dup
iconst_1
bipush 8
iastore
dup
iconst_2
bipush 8
iastore
68: iconst_0
69: iconst_0
70: iconst_1
71: iconst_0
72: invokespecial java.awt.image.ComponentColorModel.<init>:(Ljava/awt/color/ColorSpace;[IZZII)V
astore 15
start local 15 73: iconst_0
aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 1
invokevirtual java.awt.image.WritableRaster.getHeight:()I
74: aload 15
invokevirtual java.awt.image.ComponentColorModel.getNumComponents:()I
new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
75: invokestatic java.awt.image.Raster.createBandedRaster:(IIIILjava/awt/Point;)Ljava/awt/image/WritableRaster;
astore 16
start local 16 76: new java.awt.image.BufferedImage
dup
77: aload 15
aload 16
iconst_0
aconst_null
78: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 17
start local 17 79: new java.awt.image.ColorConvertOp
dup
aconst_null
invokespecial java.awt.image.ColorConvertOp.<init>:(Ljava/awt/RenderingHints;)V
astore 18
start local 18 80: aload 18
aload 14
aload 17
invokevirtual java.awt.image.ColorConvertOp.filter:(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
pop
81: aload 3
invokevirtual java.awt.image.ColorModel.hasAlpha:()Z
ifeq 106
82: aload 16
invokevirtual java.awt.image.WritableRaster.getDataBuffer:()Ljava/awt/image/DataBuffer;
checkcast java.awt.image.DataBufferByte
astore 19
start local 19 83: aload 13
invokevirtual java.awt.image.DataBufferByte.getBankData:()[[B
astore 20
start local 20 84: aload 19
invokevirtual java.awt.image.DataBufferByte.getBankData:()[[B
astore 21
start local 21 85: iconst_4
anewarray byte[]
dup
iconst_0
aload 21
iconst_0
aaload
aastore
dup
iconst_1
aload 21
iconst_1
aaload
aastore
dup
iconst_2
86: aload 21
iconst_2
aaload
aastore
dup
iconst_3
aload 20
iconst_3
aaload
aastore
87: astore 22
start local 22 88: new java.awt.image.DataBufferByte
dup
aload 22
aload 20
iconst_0
aaload
arraylength
invokespecial java.awt.image.DataBufferByte.<init>:([[BI)V
astore 23
start local 23 89: aload 23
aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
aload 1
invokevirtual java.awt.image.WritableRaster.getHeight:()I
90: aload 1
invokevirtual java.awt.image.WritableRaster.getWidth:()I
iconst_4
newarray 10
dup
iconst_1
iconst_1
iastore
dup
iconst_2
iconst_2
iastore
dup
iconst_3
iconst_3
iastore
91: iconst_4
newarray 10
new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
92: invokestatic java.awt.image.Raster.createBandedRaster:(Ljava/awt/image/DataBuffer;III[I[ILjava/awt/Point;)Ljava/awt/image/WritableRaster;
astore 11
93: new java.awt.image.ComponentColorModel
dup
94: sipush 1000
invokestatic java.awt.color.ColorSpace.getInstance:(I)Ljava/awt/color/ColorSpace;
95: iconst_4
newarray 10
dup
iconst_0
bipush 8
iastore
dup
iconst_1
bipush 8
iastore
dup
iconst_2
bipush 8
iastore
dup
iconst_3
bipush 8
iastore
96: iconst_1
97: iconst_0
98: iconst_3
99: iconst_0
100: invokespecial java.awt.image.ComponentColorModel.<init>:(Ljava/awt/color/ColorSpace;[IZZII)V
astore 15
101: new java.awt.image.BufferedImage
dup
aload 15
102: aload 11
103: iconst_0
104: aconst_null
105: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 17
end local 23 end local 22 end local 21 end local 20 end local 19 106: StackMap locals: org.apache.batik.ext.awt.image.rendered.ProfileRed java.awt.image.WritableRaster java.awt.image.RenderedImage java.awt.image.ColorModel java.awt.color.ColorSpace int int int int int int java.awt.image.WritableRaster java.awt.image.ComponentColorModel java.awt.image.DataBufferByte java.awt.image.BufferedImage java.awt.image.ComponentColorModel java.awt.image.WritableRaster java.awt.image.BufferedImage java.awt.image.ColorConvertOp
StackMap stack:
new java.awt.image.BufferedImage
dup
getstatic org.apache.batik.ext.awt.image.rendered.ProfileRed.sRGBCM:Ljava/awt/image/ColorModel;
107: aload 1
iconst_0
iconst_0
invokevirtual java.awt.image.WritableRaster.createWritableTranslatedChild:(II)Ljava/awt/image/WritableRaster;
108: iconst_0
109: aconst_null
110: invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 19
start local 19 111: aload 19
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 20
start local 20 112: aload 20
getstatic java.awt.RenderingHints.KEY_COLOR_RENDERING:Ljava/awt/RenderingHints$Key;
113: getstatic java.awt.RenderingHints.VALUE_COLOR_RENDER_QUALITY:Ljava/lang/Object;
114: invokevirtual java.awt.Graphics2D.setRenderingHint:(Ljava/awt/RenderingHints$Key;Ljava/lang/Object;)V
115: aload 20
aload 17
iconst_0
iconst_0
aconst_null
invokevirtual java.awt.Graphics2D.drawImage:(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z
pop
116: aload 20
invokevirtual java.awt.Graphics2D.dispose:()V
117: aload 1
118: areturn
end local 20 end local 19 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 119: StackMap locals: org.apache.batik.ext.awt.image.rendered.ProfileRed java.awt.image.WritableRaster
StackMap stack: java.lang.Exception
astore 2
start local 2 120: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
121: new java.lang.RuntimeException
dup
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 122 0 this Lorg/apache/batik/ext/awt/image/rendered/ProfileRed;
0 122 1 argbWR Ljava/awt/image/WritableRaster;
1 119 2 img Ljava/awt/image/RenderedImage;
2 119 3 imgCM Ljava/awt/image/ColorModel;
3 119 4 imgCS Ljava/awt/color/ColorSpace;
4 119 5 nImageComponents I
5 119 6 nProfileComponents I
10 119 7 w I
11 119 8 h I
12 119 9 minX I
13 119 10 minY I
15 119 11 srcWR Ljava/awt/image/WritableRaster;
29 49 12 imgCompCM Ljava/awt/image/ComponentColorModel;
34 49 13 wr Ljava/awt/image/WritableRaster;
37 49 14 imgComp Ljava/awt/image/BufferedImage;
41 49 15 srcImg Ljava/awt/image/BufferedImage;
42 49 16 g Ljava/awt/Graphics2D;
57 119 12 newCM Ljava/awt/image/ComponentColorModel;
58 119 13 data Ljava/awt/image/DataBufferByte;
65 119 14 newImg Ljava/awt/image/BufferedImage;
73 119 15 sRGBCompCM Ljava/awt/image/ComponentColorModel;
76 119 16 wr Ljava/awt/image/WritableRaster;
79 119 17 sRGBImage Ljava/awt/image/BufferedImage;
80 119 18 colorConvertOp Ljava/awt/image/ColorConvertOp;
83 106 19 rgbData Ljava/awt/image/DataBufferByte;
84 106 20 imgBanks [[B
85 106 21 rgbBanks [[B
88 106 22 argbBanks [[B
89 106 23 argbData Ljava/awt/image/DataBufferByte;
111 119 19 result Ljava/awt/image/BufferedImage;
112 119 20 g Ljava/awt/Graphics2D;
120 122 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 8 119 Class java.lang.Exception
9 118 119 Class java.lang.Exception
MethodParameters:
Name Flags
argbWR
}
SourceFile: "ProfileRed.java"
InnerClasses:
public abstract Key = java.awt.RenderingHints$Key of java.awt.RenderingHints