D bindings to the GraphicsMagick library.
Revisión | 73cf63ac22c68f67e9d07a842da40c41d15fab28 (tree) |
---|---|
Tiempo | 2023-06-25 13:45:34 |
Autor | Mio <stigma@disr...> |
Commiter | Mio |
[graphicsmagick] gem in -> const scope
@@ -21,67 +21,67 @@ version (GMagick_Static) | ||
21 | 21 | { |
22 | 22 | @system @nogc nothrow extern (C): |
23 | 23 | |
24 | - double ExpandAffine(in AffineMatrix*); | |
25 | - double GenerateDifferentialNoise(in Quantum pixel, in NoiseType noise_type, | |
24 | + double ExpandAffine(const scope AffineMatrix*); | |
25 | + double GenerateDifferentialNoise(const scope Quantum pixel, const scope NoiseType noise_type, | |
26 | 26 | uint* seed); |
27 | 27 | |
28 | - int GetOptimalKernelWidth(in double, in double); | |
29 | - int GetOptimalKernelWidth1D(in double, in double); | |
30 | - int GetOptimalKernelWidth2D(in double, in double); | |
28 | + int GetOptimalKernelWidth(const scope double, const scope double); | |
29 | + int GetOptimalKernelWidth1D(const scope double, const scope double); | |
30 | + int GetOptimalKernelWidth2D(const scope double, const scope double); | |
31 | 31 | |
32 | - PixelPacket InterpolateColor(in Image* image, in double x_offset, | |
33 | - in double y_offset, ExceptionInfo* exception); | |
32 | + PixelPacket InterpolateColor(const scope Image* image, const scope double x_offset, | |
33 | + const scope double y_offset, ExceptionInfo* exception); | |
34 | 34 | |
35 | - Quantum GenerateNoise(in Quantum, in NoiseType); | |
35 | + Quantum GenerateNoise(const scope Quantum, const scope NoiseType); | |
36 | 36 | |
37 | - void Contrast(in int, Quantum*, Quantum*, Quantum*); | |
38 | - void HSLTransform(in double, in double, in double, Quantum*, Quantum*, | |
37 | + void Contrast(const scope int, Quantum*, Quantum*, Quantum*); | |
38 | + void HSLTransform(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
39 | 39 | Quantum*); |
40 | - void HWBTransform(in double, in double, in double, Quantum*, Quantum*, | |
40 | + void HWBTransform(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
41 | 41 | Quantum*); |
42 | - void Hull(in c_long, in c_long, in c_ulong, in c_ulong, Quantum*, | |
43 | - Quantum*, in int); | |
42 | + void Hull(const scope c_long, const scope c_long, const scope c_ulong, const scope c_ulong, Quantum*, | |
43 | + Quantum*, const scope int); | |
44 | 44 | void IdentityAffine(AffineMatrix*); |
45 | - void InterpolateViewColor(in ViewInfo* view, PixelPacket* color, | |
46 | - in double x_offset, in double y_offset, ExceptionInfo* exception); | |
47 | - void Modulate(in double, in double, in double, Quantum*, Quantum*, | |
45 | + void InterpolateViewColor(const scope ViewInfo* view, PixelPacket* color, | |
46 | + const scope double x_offset, const scope double y_offset, ExceptionInfo* exception); | |
47 | + void Modulate(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
48 | 48 | Quantum*); |
49 | - void TransformHSL(in Quantum, in Quantum, in Quantum, double*, double*, | |
49 | + void TransformHSL(const scope Quantum, const scope Quantum, const scope Quantum, double*, double*, | |
50 | 50 | double*); |
51 | - void TransformHWB(in Quantum, in Quantum, in Quantum, double*, double*, | |
51 | + void TransformHWB(const scope Quantum, const scope Quantum, const scope Quantum, double*, double*, | |
52 | 52 | double*); |
53 | 53 | } // version (GMagick_Static) |
54 | 54 | else |
55 | 55 | { |
56 | 56 | @system @nogc nothrow extern (C) |
57 | 57 | { |
58 | - alias mExpandAffine = double function(in AffineMatrix*); | |
59 | - alias mGenerateDifferentialNoise = double function(in Quantum, in NoiseType, uint*); | |
58 | + alias mExpandAffine = double function(const scope AffineMatrix*); | |
59 | + alias mGenerateDifferentialNoise = double function(const scope Quantum, const scope NoiseType, uint*); | |
60 | 60 | |
61 | - alias mGetOptimalKernelWidth = int function(in double, in double); | |
62 | - alias mGetOptimalKernelWidth1D = int function(in double, in double); | |
63 | - alias mGetOptimalKernelWidth2D = int function(in double, in double); | |
61 | + alias mGetOptimalKernelWidth = int function(const scope double, const scope double); | |
62 | + alias mGetOptimalKernelWidth1D = int function(const scope double, const scope double); | |
63 | + alias mGetOptimalKernelWidth2D = int function(const scope double, const scope double); | |
64 | 64 | |
65 | - alias mInterpolateColor = PixelPacket function(in Image*, in double, in double, | |
65 | + alias mInterpolateColor = PixelPacket function(const scope Image*, const scope double, const scope double, | |
66 | 66 | ExceptionInfo*); |
67 | 67 | |
68 | - alias mGenerateNoise = Quantum function(in Quantum, in NoiseType); | |
68 | + alias mGenerateNoise = Quantum function(const scope Quantum, const scope NoiseType); | |
69 | 69 | |
70 | - alias mContrast = void function(in int, Quantum*, Quantum*, Quantum*); | |
71 | - alias mHSLTransform = void function(in double, in double, in double, Quantum*, Quantum*, | |
70 | + alias mContrast = void function(const scope int, Quantum*, Quantum*, Quantum*); | |
71 | + alias mHSLTransform = void function(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
72 | 72 | Quantum*); |
73 | - alias mHWBTransform = void function(in double, in double, in double, Quantum*, Quantum*, | |
73 | + alias mHWBTransform = void function(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
74 | 74 | Quantum*); |
75 | - alias mHull = void function(in c_long, in c_long, in c_ulong, in c_ulong, Quantum*, | |
76 | - Quantum*, in int); | |
75 | + alias mHull = void function(const scope c_long, const scope c_long, const scope c_ulong, const scope c_ulong, Quantum*, | |
76 | + Quantum*, const scope int); | |
77 | 77 | alias mIdentityAffine = void function(AffineMatrix*); |
78 | - alias mInterpolateViewColor = void function(in ViewInfo*, PixelPacket*, in double, | |
79 | - in double, ExceptionInfo*); | |
80 | - alias mModulate = void function(in double, in double, in double, Quantum*, Quantum*, | |
78 | + alias mInterpolateViewColor = void function(const scope ViewInfo*, PixelPacket*, const scope double, | |
79 | + const scope double, ExceptionInfo*); | |
80 | + alias mModulate = void function(const scope double, const scope double, const scope double, Quantum*, Quantum*, | |
81 | 81 | Quantum*); |
82 | - alias mTransformHSL = void function(in Quantum, in Quantum, in Quantum, double*, double*, | |
82 | + alias mTransformHSL = void function(const scope Quantum, const scope Quantum, const scope Quantum, double*, double*, | |
83 | 83 | double*); |
84 | - alias mTransformHWB = void function(in Quantum, in Quantum, in Quantum, double*, double*, | |
84 | + alias mTransformHWB = void function(const scope Quantum, const scope Quantum, const scope Quantum, double*, double*, | |
85 | 85 | double*); |
86 | 86 | } |
87 | 87 |