class com.sun.javafx.tk.quantum.PixelUtils
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.javafx.tk.quantum.PixelUtils
super_class: java.lang.Object
{
private static com.sun.javafx.iio.ImageFormatDescription[] supportedFormats;
descriptor: [Lcom/sun/javafx/iio/ImageFormatDescription;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.javafx.iio.ImageStorage.getSupportedDescriptions:()[Lcom/sun/javafx/iio/ImageFormatDescription;
1: putstatic com.sun.javafx.tk.quantum.PixelUtils.supportedFormats:[Lcom/sun/javafx/iio/ImageFormatDescription;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/javafx/tk/quantum/PixelUtils;
protected static boolean supportedFormatType(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: getstatic com.sun.javafx.tk.quantum.PixelUtils.supportedFormats:[Lcom/sun/javafx/iio/ImageFormatDescription;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 8
StackMap locals: java.lang.String top int int com.sun.javafx.iio.ImageFormatDescription[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
invokeinterface com.sun.javafx.iio.ImageFormatDescription.getExtensions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: java.lang.String com.sun.javafx.iio.ImageFormatDescription int int com.sun.javafx.iio.ImageFormatDescription[] top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 0
aload 5
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
5: iconst_1
ireturn
end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 1 7: iinc 2 1
StackMap locals: java.lang.String top int int com.sun.javafx.iio.ImageFormatDescription[]
StackMap stack:
8: iload 2
iload 3
if_icmplt 1
9: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 type Ljava/lang/String;
2 7 1 ifd Lcom/sun/javafx/iio/ImageFormatDescription;
4 6 5 ext Ljava/lang/String;
MethodParameters:
Name Flags
type
public static com.sun.glass.ui.Pixels imageToPixels(com.sun.prism.Image);
descriptor: (Lcom/sun/prism/Image;)Lcom/sun/glass/ui/Pixels;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=10, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.prism.Image.getDataType:()Lcom/sun/prism/PixelFormat$DataType;
astore 1
start local 1 1: invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
astore 2
start local 2 2: invokestatic com.sun.glass.ui.Pixels.getNativeFormat:()I
istore 3
start local 3 3: aload 1
getstatic com.sun.prism.PixelFormat$DataType.BYTE:Lcom/sun/prism/PixelFormat$DataType;
if_acmpne 32
4: aload 0
invokevirtual com.sun.prism.Image.getPixelBuffer:()Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
astore 5
start local 5 5: aload 0
invokevirtual com.sun.prism.Image.getWidth:()I
istore 6
start local 6 6: aload 0
invokevirtual com.sun.prism.Image.getHeight:()I
istore 7
start local 7 7: aload 0
invokevirtual com.sun.prism.Image.getScanlineStride:()I
istore 8
start local 8 8: aload 0
invokevirtual com.sun.prism.Image.getBytesPerPixelUnit:()I
iconst_3
if_icmpne 26
9: iload 3
tableswitch { // 1 - 2
1: 17
2: 10
default: 24
}
10: StackMap locals: com.sun.prism.Image com.sun.prism.PixelFormat$DataType com.sun.glass.ui.Application int top java.nio.ByteBuffer int int int
StackMap stack:
iload 6
iload 7
imul
iconst_4
imul
newarray 8
astore 9
start local 9 11: invokestatic com.sun.javafx.image.impl.ByteRgb.ToByteArgbConverter:()Lcom/sun/javafx/image/ByteToBytePixelConverter;
aload 5
iconst_0
iload 8
12: aload 9
iconst_0
iload 6
iconst_4
imul
13: iload 6
iload 7
14: invokeinterface com.sun.javafx.image.ByteToBytePixelConverter.convert:(Ljava/nio/ByteBuffer;II[BIIII)V
15: aload 9
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 5
16: goto 28
end local 9 17: StackMap locals:
StackMap stack:
iload 6
iload 7
imul
iconst_4
imul
newarray 8
astore 9
start local 9 18: invokestatic com.sun.javafx.image.impl.ByteRgb.ToByteBgraPreConverter:()Lcom/sun/javafx/image/ByteToBytePixelConverter;
aload 5
iconst_0
iload 8
19: aload 9
iconst_0
iload 6
iconst_4
imul
20: iload 6
iload 7
21: invokeinterface com.sun.javafx.image.ByteToBytePixelConverter.convert:(Ljava/nio/ByteBuffer;II[BIIII)V
22: aload 9
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 5
23: goto 28
end local 9 24: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unhandled native format: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
goto 28
StackMap locals:
StackMap stack:
26: aload 0
invokevirtual com.sun.prism.Image.getPixelFormat:()Lcom/sun/prism/PixelFormat;
getstatic com.sun.prism.PixelFormat.BYTE_BGRA_PRE:Lcom/sun/prism/PixelFormat;
if_acmpeq 28
27: new java.lang.IllegalArgumentException
dup
ldc "non-RGB image format"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.sun.prism.Image.getWidth:()I
29: aload 0
invokevirtual com.sun.prism.Image.getHeight:()I
aload 5
30: invokevirtual com.sun.glass.ui.Application.createPixels:(IILjava/nio/ByteBuffer;)Lcom/sun/glass/ui/Pixels;
astore 4
start local 4 31: aload 4
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 32: StackMap locals: com.sun.prism.Image com.sun.prism.PixelFormat$DataType com.sun.glass.ui.Application int
StackMap stack:
aload 1
getstatic com.sun.prism.PixelFormat$DataType.INT:Lcom/sun/prism/PixelFormat$DataType;
if_acmpne 40
33: invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
if_acmpeq 35
34: new java.lang.UnsupportedOperationException
dup
ldc "INT_ARGB_PRE only supported for LITTLE_ENDIAN machines"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.prism.Image.getPixelBuffer:()Ljava/nio/Buffer;
checkcast java.nio.IntBuffer
astore 5
start local 5 36: aload 2
aload 0
invokevirtual com.sun.prism.Image.getWidth:()I
37: aload 0
invokevirtual com.sun.prism.Image.getHeight:()I
aload 5
38: invokevirtual com.sun.glass.ui.Application.createPixels:(IILjava/nio/IntBuffer;)Lcom/sun/glass/ui/Pixels;
astore 4
start local 4 39: aload 4
areturn
end local 5 end local 4 40: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unhandled image type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 image Lcom/sun/prism/Image;
1 41 1 pixelType Lcom/sun/prism/PixelFormat$DataType;
2 41 2 app Lcom/sun/glass/ui/Application;
3 41 3 nativeFormat I
31 32 4 pixels Lcom/sun/glass/ui/Pixels;
39 40 4 pixels Lcom/sun/glass/ui/Pixels;
5 32 5 bytes Ljava/nio/ByteBuffer;
6 32 6 w I
7 32 7 h I
8 32 8 scanBytes I
11 17 9 newbytes [B
18 24 9 newbytes [B
36 40 5 ints Ljava/nio/IntBuffer;
MethodParameters:
Name Flags
image
public static com.sun.prism.Image pixelsToImage(com.sun.glass.ui.Pixels);
descriptor: (Lcom/sun/glass/ui/Pixels;)Lcom/sun/prism/Image;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.glass.ui.Pixels.getPixels:()Ljava/nio/Buffer;
astore 1
start local 1 1: aload 0
invokevirtual com.sun.glass.ui.Pixels.getBytesPerComponent:()I
iconst_1
if_icmpne 6
2: aload 1
invokevirtual java.nio.Buffer.capacity:()I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 2
start local 2 3: aload 2
aload 1
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
4: aload 2
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
5: aload 2
aload 0
invokevirtual com.sun.glass.ui.Pixels.getWidth:()I
aload 0
invokevirtual com.sun.glass.ui.Pixels.getHeight:()I
invokestatic com.sun.prism.Image.fromByteBgraPreData:(Ljava/nio/ByteBuffer;II)Lcom/sun/prism/Image;
areturn
end local 2 6: StackMap locals: java.nio.Buffer
StackMap stack:
aload 0
invokevirtual com.sun.glass.ui.Pixels.getBytesPerComponent:()I
iconst_4
if_icmpne 13
7: aload 1
invokevirtual java.nio.Buffer.capacity:()I
invokestatic java.nio.IntBuffer.allocate:(I)Ljava/nio/IntBuffer;
astore 2
start local 2 8: aload 2
aload 1
checkcast java.nio.IntBuffer
invokevirtual java.nio.IntBuffer.put:(Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;
pop
9: aload 2
invokevirtual java.nio.IntBuffer.rewind:()Ljava/nio/Buffer;
pop
10: aload 1
checkcast java.nio.IntBuffer
11: aload 0
invokevirtual com.sun.glass.ui.Pixels.getWidth:()I
aload 0
invokevirtual com.sun.glass.ui.Pixels.getHeight:()I
12: invokestatic com.sun.prism.Image.fromIntArgbPreData:(Ljava/nio/IntBuffer;II)Lcom/sun/prism/Image;
areturn
end local 2 13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unhandled pixel buffer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 pix Lcom/sun/glass/ui/Pixels;
1 16 1 pixbuf Ljava/nio/Buffer;
3 6 2 buf Ljava/nio/ByteBuffer;
8 13 2 buf Ljava/nio/IntBuffer;
MethodParameters:
Name Flags
pix
}
SourceFile: "PixelUtils.java"
InnerClasses:
public final DataType = com.sun.prism.PixelFormat$DataType of com.sun.prism.PixelFormat