Home
last modified time | relevance | path

Searched refs:number_colors (Results 1 – 25 of 27) sorted by relevance

12

/external/ImageMagick/MagickCore/
Dhistogram.c555 size_t *number_colors,ExceptionInfo *exception) in GetImageHistogram() argument
563 *number_colors=0; in GetImageHistogram()
578 *number_colors=cube_info->colors; in GetImageHistogram()
1056 number_colors; in GetNumberColors() local
1058 number_colors=0; in GetNumberColors()
1066 number_colors=cube_info->colors; in GetNumberColors()
1068 return(number_colors); in GetNumberColors()
1070 histogram=GetImageHistogram(image,&number_colors,exception); in GetNumberColors()
1072 return(number_colors); in GetNumberColors()
1073 qsort((void *) histogram,(size_t) number_colors,sizeof(*histogram), in GetNumberColors()
[all …]
Dquantize.c642 if ((cube_info->quantize_info->number_colors == 2) && in AssignImageColors()
746 if ((cube_info->quantize_info->number_colors == 2) && in SetAssociatedAlpha()
1058 clone_info->number_colors=quantize_info->number_colors; in CloneQuantizeInfo()
1206 quantize_info.number_colors=image->colors; in CompressImageColormap()
2301 quantize_info->number_colors=256; in GetQuantizeInfo()
2367 static KmeansInfo **AcquireKmeansThreadSet(const size_t number_colors) in AcquireKmeansThreadSet() argument
2386 kmeans_info[i]=(KmeansInfo *) AcquireQuantumMemory(number_colors, in AcquireKmeansThreadSet()
2439 const size_t number_colors,const size_t max_iterations,const double tolerance, in KmeansImage() argument
2491 quantize_info->number_colors=number_colors; in KmeansImage()
2493 colors=number_colors; in KmeansImage()
[all …]
Dquantize.h38 number_colors; /* desired maximum number of colors */ member
Dcolor.c1283 size_t *number_colors,ExceptionInfo *exception) in GetColorInfoList() argument
1299 assert(number_colors != (size_t *) NULL); in GetColorInfoList()
1300 *number_colors=0; in GetColorInfoList()
1324 *number_colors=(size_t) i; in GetColorInfoList()
1376 size_t *number_colors,ExceptionInfo *exception) in GetColorList() argument
1392 assert(number_colors != (size_t *) NULL); in GetColorList()
1393 *number_colors=0; in GetColorList()
1417 *number_colors=(size_t) i; in GetColorList()
1886 number_colors; in ListColorInfo() local
1893 color_info=GetColorInfoList("*",&number_colors,exception); in ListColorInfo()
[all …]
Dxwindow.c1032 XColor *colors,unsigned int number_colors,XColor *color) in XBestPixel() argument
1068 colors=(XColor *) AcquireQuantumMemory(number_colors,sizeof(*colors)); in XBestPixel()
1075 for (i=0; i < (int) number_colors; i++) in XBestPixel()
1077 if (number_colors > 256) in XBestPixel()
1078 number_colors=256; in XBestPixel()
1079 (void) XQueryColors(display,colormap,colors,(int) number_colors); in XBestPixel()
1084 for (i=0; i < (int) number_colors; i++) in XBestPixel()
4172 number_colors; in XGetWindowImage() local
4221 number_colors=0; in XGetWindowImage()
4231 number_colors=(unsigned int) window_info[id].visual->map_entries; in XGetWindowImage()
[all …]
Ddistort.c3050 number_colors; in SparseColorImage() local
3060 number_colors=0; in SparseColorImage()
3062 number_colors++; in SparseColorImage()
3064 number_colors++; in SparseColorImage()
3066 number_colors++; in SparseColorImage()
3069 number_colors++; in SparseColorImage()
3072 number_colors++; in SparseColorImage()
3085 arguments, number_colors, exception); in SparseColorImage()
3288 for(k=0; k<number_arguments; k+=2+number_colors) { in SparseColorImage()
3334 for(k=0; k<number_arguments; k+=2+number_colors) { in SparseColorImage()
[all …]
Dattribute.c2169 quantize_info->number_colors=2; in SetImageType()
2195 quantize_info->number_colors=256; in SetImageType()
Deffect.c2785 quantize_info.number_colors=colors; in PreviewImage()
2798 quantize_info.number_colors=colors; in PreviewImage()
Dwidget.c1946 number_colors; in XColorBrowserWidget() local
1964 checklist=GetColorList(glob_pattern,&number_colors,exception); in XColorBrowserWidget()
1965 if (number_colors == 0) in XColorBrowserWidget()
1977 colors=number_colors; in XColorBrowserWidget()
/external/ImageMagick/coders/
Dpes.c460 number_colors, in ReadPESImage() local
504 number_colors=(size_t) ReadBlobByte(image)+1; in ReadPESImage()
505 for (i=0; i < (ssize_t) number_colors; i++) in ReadPESImage()
516 if (DiscardBlobBytes(image,532L-number_colors-21) == MagickFalse) in ReadPESImage()
Dicon.c131 number_colors, member
331 icon_info.number_colors=ReadBlobLSBLong(image); in ReadICONImage()
332 if (icon_info.number_colors > GetBlobSize(image)) in ReadICONImage()
360 " colors = %.20g",(double ) icon_info.number_colors); in ReadICONImage()
366 if ((icon_info.number_colors != 0) || (icon_info.bits_per_pixel <= 16U)) in ReadICONImage()
369 image->colors=icon_info.number_colors; in ReadICONImage()
1036 icon_info.number_colors=0; in WriteICONImage()
1054 icon_info.number_colors=one << icon_info.bits_per_pixel; in WriteICONImage()
1055 if (icon_info.number_colors < next->colors) in WriteICONImage()
1058 icon_info.number_colors=0; in WriteICONImage()
[all …]
Ddib.c93 number_colors, member
538 dib_info.number_colors=ReadBlobLSBLong(image); in ReadDIBImage()
564 (dib_info.number_colors > (unsigned int) (1UL << dib_info.bits_per_pixel))) in ReadDIBImage()
591 if ((dib_info.number_colors > 256) || (dib_info.colors_important > 256)) in ReadDIBImage()
593 if ((dib_info.number_colors != 0) && (dib_info.bits_per_pixel > 8)) in ReadDIBImage()
597 if ((dib_info.number_colors != 0) || (dib_info.bits_per_pixel < 8)) in ReadDIBImage()
603 image->colors=dib_info.number_colors; in ReadDIBImage()
1146 dib_info.number_colors=0; in WriteDIBImage()
1159 dib_info.number_colors=(unsigned int) (dib_info.bits_per_pixel == 16 ? 0 : in WriteDIBImage()
1188 dib_info.colors_important=dib_info.number_colors; in WriteDIBImage()
[all …]
Dbmp.c145 number_colors, member
642 bmp_info.number_colors=0; in ReadBMPImage()
670 bmp_info.number_colors=ReadBlobLSBLong(image); in ReadBMPImage()
671 if ((MagickSizeType) bmp_info.number_colors > blob_size) in ReadBMPImage()
730 " Number of colors: %u",bmp_info.number_colors); in ReadBMPImage()
860 bmp_info.number_colors > (1U << bmp_info.bits_per_pixel)) in ReadBMPImage()
898 image->colors=bmp_info.number_colors; in ReadBMPImage()
1767 bmp_info.number_colors=1U << bmp_info.bits_per_pixel; in WriteBMPImage()
1771 if ((size_t) bmp_info.number_colors < image->colors) in WriteBMPImage()
1789 bmp_info.number_colors=0; in WriteBMPImage()
[all …]
Dpng.c2165 number_colors, in ReadOnePNGImage() local
2359 number_colors=0; in ReadOnePNGImage()
2987 (void) png_get_PLTE(ping,ping_info,&palette,&number_colors); in ReadOnePNGImage()
2989 if ((number_colors == 0) && in ReadOnePNGImage()
3292 (void) png_get_PLTE(ping,ping_info,&palette,&number_colors); in ReadOnePNGImage()
3293 image->colors=(size_t) number_colors; in ReadOnePNGImage()
3297 " Reading PNG PLTE chunk: number_colors: %d.",number_colors); in ReadOnePNGImage()
3314 (void) png_get_PLTE(ping,ping_info,&palette,&number_colors); in ReadOnePNGImage()
3316 for (i=0; i < (ssize_t) number_colors; i++) in ReadOnePNGImage()
3369 if (number_colors != 0) in ReadOnePNGImage()
[all …]
Dpsd.c2471 number_colors; in ReadPSDImage() local
2476 number_colors=(size_t) length/3; in ReadPSDImage()
2477 if (number_colors > 65536) in ReadPSDImage()
2479 if (AcquireImageColormap(image,number_colors,exception) == MagickFalse) in ReadPSDImage()
Dpalm.c836 quantize_info->number_colors=image->colors; in WritePALMImage()
/external/ImageMagick/MagickWand/
Dimport.c534 quantize_info->number_colors=0; in ImportImageCommand()
542 quantize_info->number_colors=StringToUnsignedLong(argv[i]); in ImportImageCommand()
981 quantize_info->number_colors=2; in ImportImageCommand()
Danimate.c584 quantize_info->number_colors=0; in AnimateImageCommand()
592 quantize_info->number_colors=StringToUnsignedLong(argv[i]); in AnimateImageCommand()
1066 quantize_info->number_colors=2; in AnimateImageCommand()
Doperation.c209 number_colors; in SparseColorOption() local
221 number_colors=0; in SparseColorOption()
223 number_colors++; in SparseColorOption()
225 number_colors++; in SparseColorOption()
227 number_colors++; in SparseColorOption()
230 number_colors++; in SparseColorOption()
233 number_colors++; in SparseColorOption()
245 x += number_colors; /* color argument found */ in SparseColorOption()
250 if ((x % (2+number_colors)) != 0) in SparseColorOption()
2074 _quantize_info->number_colors=StringToUnsignedLong(arg1); in CLISimpleOperatorImage()
[all …]
Ddisplay.c803 quantize_info->number_colors=0; in DisplayImageCommand()
811 quantize_info->number_colors=StringToUnsignedLong(argv[i]); in DisplayImageCommand()
1399 quantize_info->number_colors=2; in DisplayImageCommand()
Dmogrify.c483 number_colors; in SparseColorOption() local
501 number_colors=0; in SparseColorOption()
503 number_colors++; in SparseColorOption()
505 number_colors++; in SparseColorOption()
507 number_colors++; in SparseColorOption()
510 number_colors++; in SparseColorOption()
513 number_colors++; in SparseColorOption()
531 x += number_colors; /* color argument */ in SparseColorOption()
541 number_arguments=(x/2)*(2+number_colors); in SparseColorOption()
545 error = ( x % (2+number_colors) != 0 ) ? MagickTrue : MagickFalse; in SparseColorOption()
[all …]
Dmagick-image.c5325 size_t *number_colors) in MagickGetImageHistogram() argument
5346 histogram=GetImageHistogram(wand->images,number_colors,wand->exception); in MagickGetImageHistogram()
5349 pixel_wands=NewPixelWands(*number_colors); in MagickGetImageHistogram()
5350 for (i=0; i < (ssize_t) *number_colors; i++) in MagickGetImageHistogram()
6783 const size_t number_colors,const size_t max_iterations, in MagickKmeansImage() argument
6795 status=KmeansImage(wand->images,number_colors,max_iterations,tolerance, in MagickKmeansImage()
8625 const size_t number_colors,const ColorspaceType colorspace, in MagickQuantizeImage() argument
8642 quantize_info->number_colors=number_colors; in MagickQuantizeImage()
8703 const size_t number_colors,const ColorspaceType colorspace, in MagickQuantizeImages() argument
8720 quantize_info->number_colors=number_colors; in MagickQuantizeImages()
/external/ImageMagick/Magick++/lib/
DOptions.cpp453 _quantizeInfo->number_colors=colors_; in quantizeColors()
458 return(_quantizeInfo->number_colors); in quantizeColors()
/external/ImageMagick/PerlMagick/
DMagick.xs6426 number_colors; in Histogram() local
6452 histogram=GetImageHistogram(image,&number_colors,exception); in Histogram()
6455 count+=(ssize_t) number_colors; in Histogram()
6457 for (i=0; i < (ssize_t) number_colors; i++) in Histogram()
9403 quantize_info->number_colors=(size_t) in Mogrify()
9427 (image->colors > quantize_info->number_colors) || in Mogrify()
/external/ImageMagick/PerlMagick/quantum/
Dquantum.xs.in6425 number_colors; local
6451 histogram=GetImageHistogram(image,&number_colors,exception);
6454 count+=(ssize_t) number_colors;
6456 for (i=0; i < (ssize_t) number_colors; i++)
9411 quantize_info->number_colors=(size_t)
9436 (image->colors > quantize_info->number_colors) ||

12