public class javafx.scene.image.PixelBuffer<T extends java.nio.Buffer>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javafx.scene.image.PixelBuffer
super_class: java.lang.Object
{
private final T buffer;
descriptor: Ljava/nio/Buffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
private final int width;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int height;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javafx.scene.image.PixelFormat<T> pixelFormat;
descriptor: Ljavafx/scene/image/PixelFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljavafx/scene/image/PixelFormat<TT;>;
private final java.util.List<java.lang.ref.WeakReference<javafx.scene.image.WritableImage>> imageRefs;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/ref/WeakReference<Ljavafx/scene/image/WritableImage;>;>;
private static volatile int[] $SWITCH_TABLE$javafx$scene$image$PixelFormat$Type;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(int, int, T, javafx.scene.image.PixelFormat<T>);
descriptor: (IILjava/nio/Buffer;Ljavafx/scene/image/PixelFormat;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 3
ldc "buffer must not be null."
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 4
ldc "pixelFormat must not be null."
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
3: iload 1
ifle 4
iload 2
ifgt 5
4: StackMap locals: javafx.scene.image.PixelBuffer int int java.nio.Buffer javafx.scene.image.PixelFormat
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "PixelBuffer dimensions must be positive (w,h > 0)"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
invokestatic javafx.scene.image.PixelBuffer.$SWITCH_TABLE$javafx$scene$image$PixelFormat$Type:()[I
aload 4
invokevirtual javafx.scene.image.PixelFormat.getType:()Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 10
2: 14
3: 6
default: 14
}
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.Buffer.capacity:()I
iload 1
idiv
iconst_4
idiv
iload 2
if_icmpge 8
7: new java.lang.IllegalArgumentException
dup
ldc "Insufficient memory allocated for ByteBuffer."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 3
instanceof java.nio.ByteBuffer
ifne 15
9: new java.lang.IllegalArgumentException
dup
ldc "PixelFormat<ByteBuffer> requires a ByteBuffer."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.Buffer.capacity:()I
iload 1
idiv
iload 2
if_icmpge 12
11: new java.lang.IllegalArgumentException
dup
ldc "Insufficient memory allocated for IntBuffer."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 3
instanceof java.nio.IntBuffer
ifne 15
13: new java.lang.IllegalArgumentException
dup
ldc "PixelFormat<IntBuffer> requires an IntBuffer."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported PixelFormat: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual javafx.scene.image.PixelFormat.getType:()Ljavafx/scene/image/PixelFormat$Type;
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
15: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield javafx.scene.image.PixelBuffer.buffer:Ljava/nio/Buffer;
16: aload 0
iload 1
putfield javafx.scene.image.PixelBuffer.width:I
17: aload 0
iload 2
putfield javafx.scene.image.PixelBuffer.height:I
18: aload 0
aload 4
putfield javafx.scene.image.PixelBuffer.pixelFormat:Ljavafx/scene/image/PixelFormat;
19: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield javafx.scene.image.PixelBuffer.imageRefs:Ljava/util/List;
20: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
0 21 1 width I
0 21 2 height I
0 21 3 buffer TT;
0 21 4 pixelFormat Ljavafx/scene/image/PixelFormat<TT;>;
Signature: (IITT;Ljavafx/scene/image/PixelFormat<TT;>;)V
MethodParameters:
Name Flags
width
height
buffer
pixelFormat
public T getBuffer();
descriptor: ()Ljava/nio/Buffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.image.PixelBuffer.buffer:Ljava/nio/Buffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
Signature: ()TT;
public int getWidth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.image.PixelBuffer.width:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
public int getHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.image.PixelBuffer.height:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
public javafx.scene.image.PixelFormat<T> getPixelFormat();
descriptor: ()Ljavafx/scene/image/PixelFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.image.PixelBuffer.pixelFormat:Ljavafx/scene/image/PixelFormat;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
Signature: ()Ljavafx/scene/image/PixelFormat<TT;>;
public void updateBuffer(javafx.util.Callback<javafx.scene.image.PixelBuffer<T>, javafx.geometry.Rectangle2D>);
descriptor: (Ljavafx/util/Callback;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=2
start local 0 start local 1 0: invokestatic com.sun.javafx.tk.Toolkit.getToolkit:()Lcom/sun/javafx/tk/Toolkit;
invokevirtual com.sun.javafx.tk.Toolkit.checkFxUserThread:()V
1: aload 1
ldc "callback must not be null."
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 1
aload 0
invokeinterface javafx.util.Callback.call:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javafx.geometry.Rectangle2D
astore 2
start local 2 3: aload 2
ifnull 11
4: aload 2
invokevirtual javafx.geometry.Rectangle2D.getWidth:()D
dconst_0
dcmpl
ifle 12
aload 2
invokevirtual javafx.geometry.Rectangle2D.getHeight:()D
dconst_0
dcmpl
ifle 12
5: aload 2
invokevirtual javafx.geometry.Rectangle2D.getMinX:()D
invokestatic java.lang.Math.floor:(D)D
d2i
istore 3
start local 3 6: aload 2
invokevirtual javafx.geometry.Rectangle2D.getMinY:()D
invokestatic java.lang.Math.floor:(D)D
d2i
istore 4
start local 4 7: aload 2
invokevirtual javafx.geometry.Rectangle2D.getMaxX:()D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 5
start local 5 8: aload 2
invokevirtual javafx.geometry.Rectangle2D.getMaxY:()D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 6
start local 6 9: aload 0
new com.sun.javafx.geom.Rectangle
dup
iload 3
iload 4
iload 5
iload 3
isub
iload 6
iload 4
isub
invokespecial com.sun.javafx.geom.Rectangle.<init>:(IIII)V
invokevirtual javafx.scene.image.PixelBuffer.bufferDirty:(Lcom/sun/javafx/geom/Rectangle;)V
end local 6 end local 5 end local 4 end local 3 10: goto 12
11: StackMap locals: javafx.geometry.Rectangle2D
StackMap stack:
aload 0
aconst_null
invokevirtual javafx.scene.image.PixelBuffer.bufferDirty:(Lcom/sun/javafx/geom/Rectangle;)V
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
0 13 1 callback Ljavafx/util/Callback<Ljavafx/scene/image/PixelBuffer<TT;>;Ljavafx/geometry/Rectangle2D;>;
3 13 2 rect2D Ljavafx/geometry/Rectangle2D;
6 10 3 x1 I
7 10 4 y1 I
8 10 5 x2 I
9 10 6 y2 I
Signature: (Ljavafx/util/Callback<Ljavafx/scene/image/PixelBuffer<TT;>;Ljavafx/geometry/Rectangle2D;>;)V
MethodParameters:
Name Flags
callback
private void bufferDirty(com.sun.javafx.geom.Rectangle);
descriptor: (Lcom/sun/javafx/geom/Rectangle;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.image.PixelBuffer.imageRefs:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 7
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javafx.scene.image.WritableImage
astore 3
start local 3 3: aload 3
ifnull 6
4: aload 3
aload 1
invokevirtual javafx.scene.image.WritableImage.bufferDirty:(Lcom/sun/javafx/geom/Rectangle;)V
5: goto 7
6: StackMap locals: javafx.scene.image.WritableImage
StackMap stack:
aload 2
invokeinterface java.util.Iterator.remove:()V
end local 3 7: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
0 9 1 rect Lcom/sun/javafx/geom/Rectangle;
1 9 2 iter Ljava/util/Iterator<Ljava/lang/ref/WeakReference<Ljavafx/scene/image/WritableImage;>;>;
3 7 3 image Ljavafx/scene/image/WritableImage;
MethodParameters:
Name Flags
rect
void addImage(javafx.scene.image.WritableImage);
descriptor: (Ljavafx/scene/image/WritableImage;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.scene.image.PixelBuffer.imageRefs:Ljava/util/List;
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield javafx.scene.image.PixelBuffer.imageRefs:Ljava/util/List;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
javafx/scene/image/PixelBuffer.lambda$0(Ljava/lang/ref/WeakReference;)Z (6)
(Ljava/lang/ref/WeakReference;)Z
invokeinterface java.util.List.removeIf:(Ljava/util/function/Predicate;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/scene/image/PixelBuffer<TT;>;
0 3 1 image Ljavafx/scene/image/WritableImage;
MethodParameters:
Name Flags
image
static int[] $SWITCH_TABLE$javafx$scene$image$PixelFormat$Type();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic javafx.scene.image.PixelBuffer.$SWITCH_TABLE$javafx$scene$image$PixelFormat$Type:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic javafx.scene.image.PixelFormat$Type.values:()[Ljavafx/scene/image/PixelFormat$Type;
arraylength
newarray 10
astore 0
2: aload 0
getstatic javafx.scene.image.PixelFormat$Type.BYTE_BGRA:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic javafx.scene.image.PixelFormat$Type.BYTE_BGRA_PRE:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic javafx.scene.image.PixelFormat$Type.BYTE_INDEXED:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
bipush 6
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic javafx.scene.image.PixelFormat$Type.BYTE_RGB:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iconst_5
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic javafx.scene.image.PixelFormat$Type.INT_ARGB:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic javafx.scene.image.PixelFormat$Type.INT_ARGB_PRE:Ljavafx/scene/image/PixelFormat$Type;
invokevirtual javafx.scene.image.PixelFormat$Type.ordinal:()I
iconst_1
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
dup
putstatic javafx.scene.image.PixelBuffer.$SWITCH_TABLE$javafx$scene$image$PixelFormat$Type:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
private static boolean lambda$0(java.lang.ref.WeakReference);
descriptor: (Ljava/lang/ref/WeakReference;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 imageRef Ljava/lang/ref/WeakReference<Ljavafx/scene/image/WritableImage;>;
}
Signature: <T:Ljava/nio/Buffer;>Ljava/lang/Object;
SourceFile: "PixelBuffer.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Type = javafx.scene.image.PixelFormat$Type of javafx.scene.image.PixelFormat