D bindings to the GraphicsMagick library.
Revisión | 90a9b63717c7e7d78988751f16f5abce7e889e11 (tree) |
---|---|
Tiempo | 2023-06-25 13:56:27 |
Autor | Mio <stigma@disr...> |
Commiter | Mio |
[graphicsmagick] quantize in -> const scope
@@ -2,11 +2,11 @@ | ||
2 | 2 | Copyright (C) 2003 GraphicsMagick Group |
3 | 3 | Copyright (C) 2002 ImageMagick Studio |
4 | 4 | Copyright 1991-1999 E. I. du Pont de Nemours and Company |
5 | - | |
5 | + | |
6 | 6 | This program is covered by multiple licenses, which are described in |
7 | 7 | Copyright.txt. You should have received a copy of Copyright.txt with this |
8 | 8 | package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. |
9 | - | |
9 | + | |
10 | 10 | Methods to Reduce the Number of Unique Colors in an Image. |
11 | 11 | */ |
12 | 12 | // Complete graphicsmagick_c wrapper for version 1.3. |
@@ -47,17 +47,17 @@ version (GMagick_Static) | ||
47 | 47 | { |
48 | 48 | @system @nogc nothrow extern(C): |
49 | 49 | |
50 | - QuantizeInfo* CloneQuantizeInfo(in QuantizeInfo*); | |
50 | + QuantizeInfo* CloneQuantizeInfo(const scope QuantizeInfo*); | |
51 | 51 | |
52 | 52 | uint GetImageQuantizeError(Image*); |
53 | - uint MapImage(Image*, in Image*, in uint); | |
54 | - uint MapImages(Image*, in Image*, in uint); | |
53 | + uint MapImage(Image*, const scope Image*, const scope uint); | |
54 | + uint MapImages(Image*, const scope Image*, const scope uint); | |
55 | 55 | uint OrderedDitherImage(Image*); |
56 | - uint QuantizeImage(in QuantizeInfo*, Image*); | |
57 | - uint QuantizeImages(in QuantizeInfo*, Image*); | |
58 | - uint SegmentImage(Image*, in ColorspaceType, in uint, in double, | |
59 | - in double); | |
60 | - | |
56 | + uint QuantizeImage(const scope QuantizeInfo*, Image*); | |
57 | + uint QuantizeImages(const scope QuantizeInfo*, Image*); | |
58 | + uint SegmentImage(Image*, const scope ColorspaceType, const scope uint, const scope double, | |
59 | + const scope double); | |
60 | + | |
61 | 61 | void CompressImageColormap(Image*); |
62 | 62 | void DestroyQuantizeInfo(QuantizeInfo*); |
63 | 63 | void GetQuantizeInfo(QuantizeInfo*); |
@@ -67,17 +67,17 @@ else | ||
67 | 67 | { |
68 | 68 | @system @nogc nothrow extern (C) |
69 | 69 | { |
70 | - alias mCloneQuantizeInfo = QuantizeInfo* function(in QuantizeInfo*); | |
70 | + alias mCloneQuantizeInfo = QuantizeInfo* function(const scope QuantizeInfo*); | |
71 | 71 | |
72 | 72 | alias mGetImageQuantizeError = uint function(Image*); |
73 | - alias mMapImage = uint function(Image*, in Image*, in uint); | |
74 | - alias mMapImages = uint function(Image*, in Image*, in uint); | |
73 | + alias mMapImage = uint function(Image*, const scope Image*, const scope uint); | |
74 | + alias mMapImages = uint function(Image*, const scope Image*, const scope uint); | |
75 | 75 | alias mOrderedDitherImage = uint function(Image*); |
76 | - alias mQuantizeImage = uint function(in QuantizeInfo*, Image*); | |
77 | - alias mQuantizeImages = uint function(in QuantizeInfo*, Image*); | |
78 | - alias mSegmentImage = uint function(Image*, in ColorspaceType, in uint, in double, | |
79 | - in double); | |
80 | - | |
76 | + alias mQuantizeImage = uint function(const scope QuantizeInfo*, Image*); | |
77 | + alias mQuantizeImages = uint function(const scope QuantizeInfo*, Image*); | |
78 | + alias mSegmentImage = uint function(Image*, const scope ColorspaceType, const scope uint, const scope double, | |
79 | + const scope double); | |
80 | + | |
81 | 81 | alias mCompressImageColormap = void function(Image*); |
82 | 82 | alias mDestroyQuantizeInfo = void function(QuantizeInfo*); |
83 | 83 | alias mGetQuantizeInfo = void function(QuantizeInfo*); |