/external/ImageMagick/coders/ |
D | cip.c | 257 image,p+MagickMin(i,3)*GetPixelChannels(image)))/ in WriteCIPImage() 264 image,p+MagickMin(i,2)*GetPixelChannels(image)))/ in WriteCIPImage() 271 image,p+MagickMin(i,1)*GetPixelChannels(image)))/ in WriteCIPImage() 278 image,p+MagickMin(i,0)*GetPixelChannels(image)))/ in WriteCIPImage()
|
D | dds.c | 733 max = MagickMin(min + steps, 255); \ 795 value->x = MagickMin(1.0f,MagickMax(0.0f,value->x)); in VectorClamp() 796 value->y = MagickMin(1.0f,MagickMax(0.0f,value->y)); in VectorClamp() 797 value->z = MagickMin(1.0f,MagickMax(0.0f,value->z)); in VectorClamp() 798 value->w = MagickMin(1.0f,MagickMax(0.0f,value->w)); in VectorClamp() 803 value->x = MagickMin(1.0f,MagickMax(0.0f,value->x)); in VectorClamp3() 804 value->y = MagickMin(1.0f,MagickMax(0.0f,value->y)); in VectorClamp3() 805 value->z = MagickMin(1.0f,MagickMax(0.0f,value->z)); in VectorClamp3() 2013 q=QueueAuthenticPixels(image,x,y,MagickMin(4,image->columns-x), in ReadDXT1Pixels() 2014 MagickMin(4,image->rows-y),exception); in ReadDXT1Pixels() [all …]
|
D | xcf.c | 396 for (i=0; i < (ssize_t) MagickMin(length,max-1); i++) in ReadBlobStringWithLongSize() 986 amount = (ssize_t) MagickMin(16, prop_size); in ReadOneLayer() 991 prop_size -= (size_t) MagickMin(16, (size_t) amount); in ReadOneLayer() 1384 amount=(ssize_t) MagickMin(16, prop_size); in ReadXCFImage() 1388 prop_size -= (size_t) MagickMin(16,(size_t) amount); in ReadXCFImage()
|
D | palm.c | 449 count=MagickMin(count,(ssize_t) bytes_per_row-i); in ReadPALMImage() 469 byte=(size_t) MagickMin((ssize_t) bytes_per_row-i,8); in ReadPALMImage() 973 … for (bit=0, byte=0; bit < (unsigned char) MagickMin(8,(ssize_t) bytes_per_row-x); bit++) in WritePALMImage()
|
D | xpm.c | 387 length=MagickMin((size_t) width,MagickPathExtent-1); in ReadXPMImage() 404 (void) CopyXPMColor(target,q,MagickMin((size_t) (next-q), in ReadXPMImage() 455 ssize_t count=CopyXPMColor(key,p,MagickMin(width,MagickPathExtent-1)); in ReadXPMImage()
|
D | inline.c | 148 quantum=MagickMin((size_t) GetBlobSize(image),MagickMaxBufferExtent); in ReadINLINEImage()
|
D | dib.c | 206 count=(int) MagickMin((size_t) count,(size_t) (q-p)); in DecodeImage() 260 count=(int) MagickMin((size_t) count,(size_t) (q-p)); in DecodeImage() 1385 for (i=0; i < (ssize_t) MagickMin(image->colors,dib_info.number_colors); i++) in WriteDIBImage()
|
/external/ImageMagick/MagickCore/ |
D | gem.c | 865 c=max-(double) MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCL() 926 c=max-MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCLp() 1062 *saturation=1.0-MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSI() 1115 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSL() 1187 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSV() 1255 w=MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHWB()
|
D | resource.c | 1304 resource_info.area_limit=MagickMin(limit,StringToMagickSizeType(value, in SetMagickResourceLimit() 1314 resource_info.disk_limit=MagickMin(limit,StringToMagickSizeType(value, in SetMagickResourceLimit() 1324 resource_info.file_limit=MagickMin(limit,StringToMagickSizeType(value, in SetMagickResourceLimit() 1334 resource_info.height_limit=MagickMin(limit,StringToMagickSizeType( in SetMagickResourceLimit() 1344 resource_info.list_length_limit=MagickMin(limit, in SetMagickResourceLimit() 1354 resource_info.map_limit=MagickMin(limit,StringToMagickSizeType( in SetMagickResourceLimit() 1364 resource_info.memory_limit=MagickMin(limit,StringToMagickSizeType( in SetMagickResourceLimit() 1374 resource_info.thread_limit=MagickMin(limit,StringToMagickSizeType( in SetMagickResourceLimit() 1399 resource_info.time_limit=MagickMin(limit,StringToMagickSizeType(value, in SetMagickResourceLimit() 1410 resource_info.width_limit=MagickMin(limit,StringToMagickSizeType(value, in SetMagickResourceLimit()
|
D | thread-private.h | 40 MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1) : \ 41 MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),(ssize_t) (chunk)/64),1))
|
D | accelerate-kernels-private.h | 52 OPENCL_DEFINE(MagickMin(x,y), (((x) < (y)) ? (x) : (y))) 517 intensity=(MagickMin(MagickMin(red,green),blue)+ 1032 float tmin=MagickMin(MagickMin(pixel.x,pixel.y),pixel.z); 1987 tmin=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, QuantumScale*blue)); 2470 const unsigned int stopX = MagickMin(startX + pixelPerWorkgroup,filteredColumns); 2479 …const int cacheRangeEndX = MagickMin((int)(cacheRangeStartX + numCachedPixels), (int)inputColumns); 2493 const unsigned int chunkStopX = MagickMin(chunkStartX + pixelChunkSize, stopX); 2514 const unsigned int stop = (unsigned int)MagickMin(bisect+support+0.5f,(float)inputColumns); 2524 const unsigned int stopStep = MagickMin(startStep+numStepsPerWorkItem, n); 2632 const unsigned int stopY = MagickMin(startY + pixelPerWorkgroup,filteredRows); [all …]
|
D | property.c | 680 length-=MagickMin(count,(ssize_t) length); in Get8BIMProperty() 690 length-=MagickMin(count,(ssize_t) length); in Get8BIMProperty() 705 length-=MagickMin(count,(ssize_t) length); in Get8BIMProperty() 1706 "US",info,MagickMin(MagickPathExtent-1,extent)); in GetICCProperty() 1715 "US",info,MagickMin(MagickPathExtent-1,extent)); in GetICCProperty() 1724 info,MagickMin(MagickPathExtent-1,extent)); in GetICCProperty() 1732 "US",info,MagickMin(MagickPathExtent-1,extent)); in GetICCProperty() 1921 length-=MagickMin(24,(ssize_t) length); in TracePSClippath() 1929 length-=MagickMin(22,(ssize_t) length); in TracePSClippath() 1943 length-=MagickMin(24,(ssize_t) length); in TracePSClippath() [all …]
|
D | string.c | 388 status=memcmp(target->datum,source->datum,MagickMin(target->length, in CompareStringInfo() 649 count=read(file,string+i,(size_t) MagickMin(length-i,(size_t) in ConfigureFileToStringInfo() 1624 for (j=1; j <= MagickMin(string_info->length-i,CharsPerLine); j++) in PrintStringInfo() 1638 for (j=1; j <= MagickMin(string_info->length-i,CharsPerLine); j++) in PrintStringInfo() 1762 (void) memcpy(string_info->datum,source->datum,MagickMin(string_info->length, in SetStringInfo() 2496 for (j=1; j <= (ssize_t) MagickMin(strlen(p),CharsPerLine); j++) in StringToStrings() 2512 for (j=1; j <= (ssize_t) MagickMin(strlen(p),CharsPerLine); j++) in StringToStrings()
|
D | image-private.h | 27 #define MagickMin(x,y) (((x) < (y)) ? (x) : (y)) macro
|
D | compress.c | 818 entry=EXTable+(MagickMin((size_t) runlength,2560)-1792)/64; in HuffmanEncodeImage() 822 entry=TWTable+MagickMin((size_t) runlength,63); in HuffmanEncodeImage() 838 entry=EXTable+(MagickMin((size_t) runlength,2560)-1792)/64; in HuffmanEncodeImage() 842 entry=TBTable+MagickMin((size_t) runlength,63); in HuffmanEncodeImage() 1272 UndefinedCompressionQuality ? 7 : MagickMin(image->quality/10,9))); in ZLIBEncodeImage()
|
D | matrix.c | 154 count=write(matrix_info->file,buffer+i,(size_t) MagickMin(length-i, in WriteMatrixElements() 157 count=pwrite(matrix_info->file,buffer+i,(size_t) MagickMin(length-i, in WriteMatrixElements() 686 count=read(matrix_info->file,buffer+i,(size_t) MagickMin(length-i, in ReadMatrixElements() 689 count=pread(matrix_info->file,buffer+i,(size_t) MagickMin(length-i, in ReadMatrixElements()
|
D | blob.c | 372 count=write(file,(const char *) blob+i,MagickMin(length-i,(size_t) in BlobToFile() 1114 quantum=(size_t) MagickMin(length-i,sizeof(buffer)); in DiscardBlobBytes() 1422 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in FileToBlob() 1457 *length=(size_t) MagickMin(i+count,extent); in FileToBlob() 1461 *length=(size_t) MagickMin(offset,(MagickOffsetType) in FileToBlob() 1462 MagickMin(extent,(size_t) SSIZE_MAX)); in FileToBlob() 1485 count=read(file,blob+i,(size_t) MagickMin(*length-i,(size_t) in FileToBlob() 1616 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in FileToImage() 2292 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in ImageToFile() 2755 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in InjectImageBlob() [all …]
|
D | attribute.c | 235 factor=MagickMin(MagickMin(MagickMin(edge->left,edge->right),edge->top), in GetMinEdgeBackgroundFactor() 289 percent_background=MagickMin(MagickMax(1.0-percent_background,MagickEpsilon), in GetImageBoundingBox() 672 depth=(size_t) MagickMin((double) depth,(double) MAGICKCORE_QUANTUM_DEPTH); in GetImageQuantumDepth()
|
D | type.c | 455 score+=(16*(800-((ssize_t) MagickMax(MagickMin(font_weight,900),p->weight)- in GetTypeInfoByFamily() 456 (ssize_t) MagickMin(MagickMin(font_weight,900),p->weight))))/800; in GetTypeInfoByFamily() 463 (ssize_t) MagickMin(stretch,p->stretch))))/range; in GetTypeInfoByFamily()
|
D | quantum-private.h | 106 return((MagickSizeType) ((one << (MagickMin(depth,max_depth)-1))+ in GetQuantumRange() 107 ((one << (MagickMin(depth,max_depth)-1))-1))); in GetQuantumRange()
|
D | cipher.c | 641 (void) memcpy(input_block,digest,MagickMin(AESBlocksize, in PasskeyDecipherImage() 861 (void) memcpy(input_block,digest,MagickMin(AESBlocksize, in PasskeyEncipherImage() 1033 (void) memcpy(datum,GetStringInfoDatum(key),MagickMin( in SetAESKey()
|
D | montage.c | 633 while (tile < MagickMin((ssize_t) tiles_per_page,(ssize_t) number_images)) in MontageImageList() 664 while (tile < MagickMin((ssize_t) tiles_per_page,(ssize_t) number_images)) in MontageImageList() 714 for (tile=0; tile < MagickMin((ssize_t) tiles_per_page,(ssize_t) number_images); tile++) in MontageImageList()
|
D | utility.c | 224 quantum=(size_t) MagickMin(attributes.st_size,MagickMaxBufferExtent); in AcquireUniqueSymbolicLink() 1867 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in ShredFile() 1892 MagickMin((MagickSizeType) quantum,length-j)); in ShredFile()
|
D | cache.c | 620 quantum=(size_t) MagickMin(file_stats.st_size,MagickMaxBufferExtent); in ClonePixelCacheOnDisk() 650 MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1) : \ in ClonePixelCacheRepository() 651 MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),(ssize_t) (chunk)/256),1)) in ClonePixelCacheRepository() 712 length=(size_t) MagickMin(cache_info->number_channels*cache_info->columns, in ClonePixelCacheRepository() 802 length=(size_t) MagickMin(cache_info->metacontent_extent, in ClonePixelCacheRepository() 2918 length=(MagickSizeType) MagickMin(cache_info->columns-x_offset,columns-u); in GetVirtualPixelCacheNexus() 3573 count=write(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) in WritePixelCacheRegion() 3576 count=pwrite(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) in WritePixelCacheRegion() 4388 count=read(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) in ReadPixelCacheRegion() 4391 count=pread(cache_info->file,buffer+i,(size_t) MagickMin(length-i,(size_t) in ReadPixelCacheRegion()
|
D | distort.c | 1219 coeff[0]=MagickMin(fabs(coeff[2]-image->page.x), in GenerateCoefficients() 1221 coeff[0]=MagickMin(coeff[0], in GenerateCoefficients() 1223 coeff[0]=MagickMin(coeff[0], in GenerateCoefficients() 1331 rscale = 2.0/MagickMin((double) image->columns,(double) image->rows); in GenerateCoefficients() 1768 min.x = MagickMin(min.x,p.x); \ in DistortImage() 1770 min.y = MagickMin(min.y,p.y); \ in DistortImage()
|