Home
last modified time | relevance | path

Searched refs:random_info (Results 1 – 18 of 18) sorted by relevance

/external/ImageMagick/MagickCore/
Drandom.c169 *random_info; in AcquireRandomInfo() local
176 random_info=(RandomInfo *) AcquireCriticalMemory(sizeof(*random_info)); in AcquireRandomInfo()
177 (void) memset(random_info,0,sizeof(*random_info)); in AcquireRandomInfo()
178 random_info->signature_info=AcquireSignatureInfo(); in AcquireRandomInfo()
179 random_info->nonce=AcquireStringInfo(2*GetSignatureDigestsize( in AcquireRandomInfo()
180 random_info->signature_info)); in AcquireRandomInfo()
181 ResetStringInfo(random_info->nonce); in AcquireRandomInfo()
182 random_info->reservoir=AcquireStringInfo(GetSignatureDigestsize( in AcquireRandomInfo()
183 random_info->signature_info)); in AcquireRandomInfo()
184 ResetStringInfo(random_info->reservoir); in AcquireRandomInfo()
[all …]
Drandom-private.h40 RandomInfo **random_info) in DestroyRandomInfoThreadSet() argument
45 assert(random_info != (RandomInfo **) NULL); in DestroyRandomInfoThreadSet()
47 if (random_info[i] != (RandomInfo *) NULL) in DestroyRandomInfoThreadSet()
48 random_info[i]=DestroyRandomInfo(random_info[i]); in DestroyRandomInfoThreadSet()
49 return((RandomInfo **) RelinquishMagickMemory(random_info)); in DestroyRandomInfoThreadSet()
58 **random_info; in AcquireRandomInfoThreadSet() local
64 random_info=(RandomInfo **) AcquireQuantumMemory(number_threads, in AcquireRandomInfoThreadSet()
65 sizeof(*random_info)); in AcquireRandomInfoThreadSet()
66 if (random_info == (RandomInfo **) NULL) in AcquireRandomInfoThreadSet()
68 (void) memset(random_info,0,number_threads*sizeof(*random_info)); in AcquireRandomInfoThreadSet()
[all …]
Dresource.c113 *random_info = (RandomInfo *) NULL; variable
579 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
584 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
585 random_info=AcquireRandomInfo(); in AcquireUniqueFileResource()
598 key=GetRandomKey(random_info,6); in AcquireUniqueFileResource()
620 key=GetRandomKey(random_info,strlen(MagickPathTemplate)); in AcquireUniqueFileResource()
1314 if (random_info != (RandomInfo *) NULL) in ResourceComponentTerminus()
1315 random_info=DestroyRandomInfo(random_info); in ResourceComponentTerminus()
Dvisual-effects.c150 **magick_restrict random_info; in AddNoiseImage() local
187 random_info=AcquireRandomInfoThreadSet(); in AddNoiseImage()
191 key=GetRandomSecretKey(random_info[0]); in AddNoiseImage()
241 GenerateDifferentialNoise(random_info[id],p[i],noise_type,attenuate)), in AddNoiseImage()
266 random_info=DestroyRandomInfoThreadSet(random_info); in AddNoiseImage()
1383 static inline Quantum PlasmaPixel(RandomInfo *magick_restrict random_info, in PlasmaPixel() argument
1389 plasma=pixel+noise*GetPseudoRandomValue(random_info)-noise/2.0; in PlasmaPixel()
1394 CacheView *u_view,CacheView *v_view,RandomInfo *magick_restrict random_info, in PlasmaImageProxy() argument
1438 status=PlasmaImageProxy(image,image_view,u_view,v_view,random_info, in PlasmaImageProxy()
1443 status&=PlasmaImageProxy(image,image_view,u_view,v_view,random_info, in PlasmaImageProxy()
[all …]
Dstatistic.c238 static double ApplyEvaluateOperator(RandomInfo *random_info,const Quantum pixel, in ApplyEvaluateOperator() argument
297 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
303 result=(double) GenerateDifferentialNoise(random_info,pixel,ImpulseNoise, in ApplyEvaluateOperator()
309 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
349 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
365 result=(double) GenerateDifferentialNoise(random_info,pixel,PoissonNoise, in ApplyEvaluateOperator()
429 result=(double) GenerateDifferentialNoise(random_info,pixel,UniformNoise, in ApplyEvaluateOperator()
488 **magick_restrict random_info; in EvaluateImages() local
529 random_info=AcquireRandomInfoThreadSet(); in EvaluateImages()
534 key=GetRandomSecretKey(random_info[0]); in EvaluateImages()
[all …]
Dgem.c1455 MagickPrivate double GenerateDifferentialNoise(RandomInfo *random_info, in GenerateDifferentialNoise() argument
1473 alpha=GetPseudoRandomValue(random_info); in GenerateDifferentialNoise()
1490 beta=GetPseudoRandomValue(random_info); in GenerateDifferentialNoise()
1532 beta=GetPseudoRandomValue(random_info); in GenerateDifferentialNoise()
1548 beta=GetPseudoRandomValue(random_info); in GenerateDifferentialNoise()
Dutility.c1894 *random_info; in ShredFile() local
1904 random_info=AcquireRandomInfo(); in ShredFile()
1910 key=GetRandomKey(random_info,quantum); in ShredFile()
1923 random_info=DestroyRandomInfo(random_info); in ShredFile()
Ddistribute-cache.c791 *random_info; in DistributePixelCacheClient() local
820 random_info=AcquireRandomInfo(); in DistributePixelCacheClient()
821 secret=GetRandomKey(random_info,DPCSessionKeyLength); in DistributePixelCacheClient()
824 random_info=DestroyRandomInfo(random_info); in DistributePixelCacheClient()
Dcache-private.h202 *random_info; member
Dthreshold.c2032 **magick_restrict random_info; in RandomThresholdImage() local
2056 random_info=AcquireRandomInfoThreadSet(); in RandomThresholdImage()
2059 key=GetRandomSecretKey(random_info[0]); in RandomThresholdImage()
2103 GetPseudoRandomValue(random_info[id])); in RandomThresholdImage()
2126 random_info=DestroyRandomInfoThreadSet(random_info); in RandomThresholdImage()
Dquantize.c2555 *random_info; in KmeansImage() local
2560 random_info=AcquireRandomInfo(); in KmeansImage()
2565 image->colormap[n].red=RandomColorComponent(random_info); in KmeansImage()
2566 image->colormap[n].green=RandomColorComponent(random_info); in KmeansImage()
2567 image->colormap[n].blue=RandomColorComponent(random_info); in KmeansImage()
2569 image->colormap[n].alpha=RandomColorComponent(random_info); in KmeansImage()
2571 image->colormap[n].black=RandomColorComponent(random_info); in KmeansImage()
2573 random_info=DestroyRandomInfo(random_info); in KmeansImage()
Dcache.c1050 if (cache_info->random_info != (RandomInfo *) NULL) in DestroyPixelCache()
1051 cache_info->random_info=DestroyRandomInfo(cache_info->random_info); in DestroyPixelCache()
2670 static inline ssize_t RandomX(RandomInfo *random_info,const size_t columns) in RandomX() argument
2672 return((ssize_t) (columns*GetPseudoRandomValue(random_info))); in RandomX()
2675 static inline ssize_t RandomY(RandomInfo *random_info,const size_t rows) in RandomY() argument
2677 return((ssize_t) (rows*GetPseudoRandomValue(random_info))); in RandomY()
2919 if (cache_info->random_info == (RandomInfo *) NULL) in GetVirtualPixelCacheNexus()
2920 cache_info->random_info=AcquireRandomInfo(); in GetVirtualPixelCacheNexus()
2922 RandomX(cache_info->random_info,cache_info->columns), in GetVirtualPixelCacheNexus()
2923 RandomY(cache_info->random_info,cache_info->rows),1UL,1UL, in GetVirtualPixelCacheNexus()
Dfx.c147 *random_info; member
214 fx_info->random_info=AcquireRandomInfo(); in AcquireFxInfo()
308 fx_info->random_info=DestroyRandomInfo(fx_info->random_info); in DestroyFxInfo()
2525 alpha=GetPseudoRandomValue(fx_info->random_info); in FxEvaluateSubexpression()
Deffect.c3785 **magick_restrict random_info; in SpreadImage() local
3821 random_info=AcquireRandomInfoThreadSet(); in SpreadImage()
3825 key=GetRandomSecretKey(random_info[0]); in SpreadImage()
3854 point.x=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3855 point.y=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3881 random_info=DestroyRandomInfoThreadSet(random_info); in SpreadImage()
/external/ImageMagick/coders/
Dplasma.c95 RandomInfo *magick_restrict random_info,const double x,const double y, in PlasmaPixel() argument
106 GetPseudoRandomValue(random_info)+0.5),q); in PlasmaPixel()
108 GetPseudoRandomValue(random_info)+0.5),q); in PlasmaPixel()
110 GetPseudoRandomValue(random_info)+0.5),q); in PlasmaPixel()
177 *random_info; in ReadPlasmaImage() local
183 random_info=AcquireRandomInfo(); in ReadPlasmaImage()
184 status=PlasmaPixel(image,random_info,segment_info.x1,segment_info.y1, in ReadPlasmaImage()
186 status&=PlasmaPixel(image,random_info,segment_info.x1,(segment_info.y1+ in ReadPlasmaImage()
188 status&=PlasmaPixel(image,random_info,segment_info.x1,segment_info.y2, in ReadPlasmaImage()
190 status&=PlasmaPixel(image,random_info,(segment_info.x1+segment_info.x2)/2, in ReadPlasmaImage()
[all …]
Dpsd.c526 *random_info; in PreservePSDOpacityMask() local
534 random_info=AcquireRandomInfo(); in PreservePSDOpacityMask()
535 key_info=GetRandomKey(random_info,2+1); in PreservePSDOpacityMask()
546 random_info=DestroyRandomInfo(random_info); in PreservePSDOpacityMask()
/external/ImageMagick/MagickWand/
Doperation.c2944 *random_info; in CLISimpleOperatorImage() local
2946 random_info=AcquireRandomInfo(); in CLISimpleOperatorImage()
2947 angle=22.5*(GetPseudoRandomValue(random_info)-0.5); in CLISimpleOperatorImage()
2948 random_info=DestroyRandomInfo(random_info); in CLISimpleOperatorImage()
Dmogrify.c2395 *random_info; in MogrifyImage() local
2401 random_info=AcquireRandomInfo(); in MogrifyImage()
2402 angle=22.5*(GetPseudoRandomValue(random_info)-0.5); in MogrifyImage()
2403 random_info=DestroyRandomInfo(random_info); in MogrifyImage()