public class sun.lwawt.macosx.CImage extends sun.lwawt.macosx.CFRetainedResource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.lwawt.macosx.CImage
super_class: sun.lwawt.macosx.CFRetainedResource
{
static sun.lwawt.macosx.CImage$Creator creator;
descriptor: Lsun/lwawt/macosx/CImage$Creator;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.lwawt.macosx.CImage$Creator
dup
invokespecial sun.lwawt.macosx.CImage$Creator.<init>:()V
putstatic sun.lwawt.macosx.CImage.creator:Lsun/lwawt/macosx/CImage$Creator;
return
LocalVariableTable:
Start End Slot Name Signature
private static native long nativeCreateNSImageFromArray(int[], int, int);
descriptor: ([III)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
buffer
w
h
private static native long nativeCreateNSImageFromBytes(byte[]);
descriptor: ([B)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
buffer
private static native long nativeCreateNSImageFromArrays(int[][], int[], int[]);
descriptor: ([[I[I[I)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
buffers
w
h
private static native long nativeCreateNSImageFromFileContents(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
file
private static native long nativeCreateNSImageOfFileFromLaunchServices(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
file
private static native long nativeCreateNSImageFromImageName(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
name
private static native long nativeCreateNSImageFromIconSelector(int);
descriptor: (I)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
selector
private static native byte[] nativeGetPlatformImageBytes(int[], int, int);
descriptor: ([III)[B
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
buffer
w
h
private static native void nativeCopyNSImageIntoArray(long, int[], int, int, int, int);
descriptor: (J[IIIII)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
image
buffer
sw
sh
dw
dh
private static native java.awt.geom.Dimension2D nativeGetNSImageSize(long);
descriptor: (J)Ljava/awt/geom/Dimension2D;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
image
private static native void nativeSetNSImageSize(long, double, double);
descriptor: (JDD)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
image
w
h
private static native void nativeResizeNSImageRepresentations(long, double, double);
descriptor: (JDD)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
image
w
h
private static native java.awt.geom.Dimension2D[] nativeGetNSImageRepresentationSizes(long, double, double);
descriptor: (JDD)[Ljava/awt/geom/Dimension2D;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
image
w
h
public static sun.lwawt.macosx.CImage$Creator getCreator();
descriptor: ()Lsun/lwawt/macosx/CImage$Creator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.lwawt.macosx.CImage.creator:Lsun/lwawt/macosx/CImage$Creator;
areturn
LocalVariableTable:
Start End Slot Name Signature
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
iconst_1
invokespecial sun.lwawt.macosx.CFRetainedResource.<init>:(JZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CImage;
0 2 1 nsImagePtr J
MethodParameters:
Name Flags
nsImagePtr
private java.awt.Image toImage();
descriptor: ()Ljava/awt/Image;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=7, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CImage.ptr:J
lconst_0
lcmp
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
astore 1
start local 1 3: aload 0
aload 1
invokedynamic run(Ljava/util/concurrent/atomic/AtomicReference;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CImage.lambda$0(Ljava/util/concurrent/atomic/AtomicReference;J)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
4: aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.awt.geom.Dimension2D
astore 2
start local 2 5: aload 2
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: java.util.concurrent.atomic.AtomicReference java.awt.geom.Dimension2D
StackMap stack:
aload 2
invokevirtual java.awt.geom.Dimension2D.getWidth:()D
d2i
istore 3
start local 3 8: aload 2
invokevirtual java.awt.geom.Dimension2D.getHeight:()D
d2i
istore 4
start local 4 9: new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
astore 5
start local 5 10: aload 0
aload 5
aload 2
invokedynamic run(Ljava/util/concurrent/atomic/AtomicReference;Ljava/awt/geom/Dimension2D;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CImage.lambda$1(Ljava/util/concurrent/atomic/AtomicReference;Ljava/awt/geom/Dimension2D;J)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
11: aload 5
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.awt.geom.Dimension2D[]
astore 6
start local 6 12: aload 6
ifnull 13
aload 6
arraylength
iconst_2
if_icmpge 15
13: StackMap locals: sun.lwawt.macosx.CImage java.util.concurrent.atomic.AtomicReference java.awt.geom.Dimension2D int int java.util.concurrent.atomic.AtomicReference java.awt.geom.Dimension2D[]
StackMap stack:
new sun.awt.image.MultiResolutionCachedImage
dup
iload 3
iload 4
aload 0
iload 3
iload 4
invokedynamic apply(Lsun/lwawt/macosx/CImage;II)Ljava/util/function/BiFunction;
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;Ljava/lang/Object;)Ljava/lang/Object;
sun/lwawt/macosx/CImage.lambda$2(IILjava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image; (7)
(Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image;
invokespecial sun.awt.image.MultiResolutionCachedImage.<init>:(IILjava/util/function/BiFunction;)V
14: goto 16
15: StackMap locals:
StackMap stack:
new sun.awt.image.MultiResolutionCachedImage
dup
iload 3
iload 4
aload 6
aload 0
iload 3
iload 4
invokedynamic apply(Lsun/lwawt/macosx/CImage;II)Ljava/util/function/BiFunction;
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;Ljava/lang/Object;)Ljava/lang/Object;
sun/lwawt/macosx/CImage.lambda$3(IILjava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image; (7)
(Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image;
invokespecial sun.awt.image.MultiResolutionCachedImage.<init>:(II[Ljava/awt/geom/Dimension2D;Ljava/util/function/BiFunction;)V
16: StackMap locals:
StackMap stack: sun.awt.image.MultiResolutionCachedImage
areturn
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 17 0 this Lsun/lwawt/macosx/CImage;
3 17 1 sizeRef Ljava/util/concurrent/atomic/AtomicReference<Ljava/awt/geom/Dimension2D;>;
5 17 2 size Ljava/awt/geom/Dimension2D;
8 17 3 w I
9 17 4 h I
10 17 5 repRef Ljava/util/concurrent/atomic/AtomicReference<[Ljava/awt/geom/Dimension2D;>;
12 17 6 sizes [Ljava/awt/geom/Dimension2D;
private java.awt.image.BufferedImage toImage(int, int, int, int);
descriptor: (IIII)Ljava/awt/image/BufferedImage;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.awt.image.BufferedImage
dup
iload 3
iload 4
iconst_3
invokespecial java.awt.image.BufferedImage.<init>:(III)V
astore 5
start local 5 1: aload 5
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
invokevirtual java.awt.image.WritableRaster.getDataBuffer:()Ljava/awt/image/DataBuffer;
checkcast java.awt.image.DataBufferInt
astore 6
start local 6 2: aload 6
iconst_0
invokestatic sun.awt.image.SunWritableRaster.stealData:(Ljava/awt/image/DataBufferInt;I)[I
astore 7
start local 7 3: aload 0
aload 7
iload 1
iload 2
iload 3
iload 4
invokedynamic run([IIIII)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CImage.lambda$4([IIIIIJ)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
4: aload 6
invokestatic sun.awt.image.SunWritableRaster.markDirty:(Ljava/awt/image/DataBuffer;)V
5: aload 5
areturn
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 6 0 this Lsun/lwawt/macosx/CImage;
0 6 1 srcWidth I
0 6 2 srcHeight I
0 6 3 dstWidth I
0 6 4 dstHeight I
1 6 5 bimg Ljava/awt/image/BufferedImage;
2 6 6 dbi Ljava/awt/image/DataBufferInt;
3 6 7 buffer [I
MethodParameters:
Name Flags
srcWidth
srcHeight
dstWidth
dstHeight
sun.lwawt.macosx.CImage resize(double, double);
descriptor: (DD)Lsun/lwawt/macosx/CImage;
flags: (0x0000)
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
dload 1
dload 3
invokedynamic run(DD)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CImage.lambda$5(DDJ)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CImage;
0 2 1 w D
0 2 3 h D
MethodParameters:
Name Flags
w final
h final
void resizeRepresentations(double, double);
descriptor: (DD)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
dload 1
dload 3
invokedynamic run(DD)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CImage.lambda$6(DDJ)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CImage;
0 2 1 w D
0 2 3 h D
MethodParameters:
Name Flags
w
h
private static void lambda$0(java.util.concurrent.atomic.AtomicReference, long);
descriptor: (Ljava/util/concurrent/atomic/AtomicReference;J)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
start local 1 0: aload 0
lload 1
invokestatic sun.lwawt.macosx.CImage.nativeGetNSImageSize:(J)Ljava/awt/geom/Dimension2D;
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
1: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 ptr J
private static void lambda$1(java.util.concurrent.atomic.AtomicReference, java.awt.geom.Dimension2D, long);
descriptor: (Ljava/util/concurrent/atomic/AtomicReference;Ljava/awt/geom/Dimension2D;J)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=4, args_size=3
start local 2 0: aload 0
lload 2
aload 1
invokevirtual java.awt.geom.Dimension2D.getWidth:()D
1: aload 1
invokevirtual java.awt.geom.Dimension2D.getHeight:()D
2: invokestatic sun.lwawt.macosx.CImage.nativeGetNSImageRepresentationSizes:(JDD)[Ljava/awt/geom/Dimension2D;
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
3: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 4 2 ptr J
private java.awt.Image lambda$2(int, int, java.lang.Integer, java.lang.Integer);
descriptor: (IILjava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 0
iload 1
iload 2
aload 3
invokevirtual java.lang.Integer.intValue:()I
aload 4
invokevirtual java.lang.Integer.intValue:()I
invokevirtual sun.lwawt.macosx.CImage.toImage:(IIII)Ljava/awt/image/BufferedImage;
areturn
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CImage;
0 1 3 width Ljava/lang/Integer;
0 1 4 height Ljava/lang/Integer;
private java.awt.Image lambda$3(int, int, java.lang.Integer, java.lang.Integer);
descriptor: (IILjava/lang/Integer;Ljava/lang/Integer;)Ljava/awt/Image;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 0
iload 1
iload 2
aload 3
invokevirtual java.lang.Integer.intValue:()I
aload 4
invokevirtual java.lang.Integer.intValue:()I
invokevirtual sun.lwawt.macosx.CImage.toImage:(IIII)Ljava/awt/image/BufferedImage;
areturn
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CImage;
0 1 3 width Ljava/lang/Integer;
0 1 4 height Ljava/lang/Integer;
private static void lambda$4(int[], int, int, int, int, long);
descriptor: ([IIIIIJ)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=7, args_size=6
start local 5 0: lload 5
aload 0
iload 1
iload 2
iload 3
iload 4
invokestatic sun.lwawt.macosx.CImage.nativeCopyNSImageIntoArray:(J[IIIII)V
return
end local 5 LocalVariableTable:
Start End Slot Name Signature
0 1 5 ptr J
private static void lambda$5(double, double, long);
descriptor: (DDJ)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=3
start local 4 0: lload 4
dload 0
dload 2
invokestatic sun.lwawt.macosx.CImage.nativeSetNSImageSize:(JDD)V
return
end local 4 LocalVariableTable:
Start End Slot Name Signature
0 1 4 ptr J
private static void lambda$6(double, double, long);
descriptor: (DDJ)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=3
start local 4 0: lload 4
dload 0
dload 2
invokestatic sun.lwawt.macosx.CImage.nativeResizeNSImageRepresentations:(JDD)V
return
end local 4 LocalVariableTable:
Start End Slot Name Signature
0 1 4 ptr J
}
SourceFile: "CImage.java"
NestMembers:
sun.lwawt.macosx.CImage$Creator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract CFNativeAction = sun.lwawt.macosx.CFRetainedResource$CFNativeAction of sun.lwawt.macosx.CFRetainedResource
public Creator = sun.lwawt.macosx.CImage$Creator of sun.lwawt.macosx.CImage