Home
last modified time | relevance | path

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

/external/ImageMagick/MagickCore/
Drandom.c170 *random_info; in AcquireRandomInfo() local
177 random_info=(RandomInfo *) AcquireCriticalMemory(sizeof(*random_info)); in AcquireRandomInfo()
178 (void) memset(random_info,0,sizeof(*random_info)); in AcquireRandomInfo()
179 random_info->signature_info=AcquireSignatureInfo(); in AcquireRandomInfo()
180 random_info->nonce=AcquireStringInfo(2*GetSignatureDigestsize( in AcquireRandomInfo()
181 random_info->signature_info)); in AcquireRandomInfo()
182 ResetStringInfo(random_info->nonce); in AcquireRandomInfo()
183 random_info->reservoir=AcquireStringInfo(GetSignatureDigestsize( in AcquireRandomInfo()
184 random_info->signature_info)); in AcquireRandomInfo()
185 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.c111 *random_info = (RandomInfo *) NULL; variable
551 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
556 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
557 random_info=AcquireRandomInfo(); in AcquireUniqueFileResource()
570 key=GetRandomKey(random_info,6); in AcquireUniqueFileResource()
592 key=GetRandomKey(random_info,strlen(MagickPathTemplate)); in AcquireUniqueFileResource()
1254 if (random_info != (RandomInfo *) NULL) in ResourceComponentTerminus()
1255 random_info=DestroyRandomInfo(random_info); in ResourceComponentTerminus()
Dstatistic.c226 static double ApplyEvaluateOperator(RandomInfo *random_info,const Quantum pixel, in ApplyEvaluateOperator() argument
282 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
288 result=(double) GenerateDifferentialNoise(random_info,pixel,ImpulseNoise, in ApplyEvaluateOperator()
294 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
332 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
348 result=(double) GenerateDifferentialNoise(random_info,pixel,PoissonNoise, in ApplyEvaluateOperator()
406 result=(double) GenerateDifferentialNoise(random_info,pixel,UniformNoise, in ApplyEvaluateOperator()
465 **magick_restrict random_info; in EvaluateImages() local
506 random_info=AcquireRandomInfoThreadSet(); in EvaluateImages()
511 key=GetRandomSecretKey(random_info[0]); in EvaluateImages()
[all …]
Dfx.c132 *random_info; member
199 fx_info->random_info=AcquireRandomInfo(); in AcquireFxInfo()
286 **magick_restrict random_info; in AddNoiseImage() local
323 random_info=AcquireRandomInfoThreadSet(); in AddNoiseImage()
327 key=GetRandomSecretKey(random_info[0]); in AddNoiseImage()
377 GenerateDifferentialNoise(random_info[id],p[i],noise_type,attenuate)), in AddNoiseImage()
402 random_info=DestroyRandomInfoThreadSet(random_info); in AddNoiseImage()
1069 fx_info->random_info=DestroyRandomInfo(fx_info->random_info); in DestroyFxInfo()
2842 alpha=GetPseudoRandomValue(fx_info->random_info); in FxEvaluateSubexpression()
3734 static inline Quantum PlasmaPixel(RandomInfo *random_info, in PlasmaPixel() argument
[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.c1872 *random_info; in ShredFile() local
1882 random_info=AcquireRandomInfo(); in ShredFile()
1888 key=GetRandomKey(random_info,quantum); in ShredFile()
1901 random_info=DestroyRandomInfo(random_info); in ShredFile()
Ddistribute-cache.c785 *random_info; in DistributePixelCacheClient() local
814 random_info=AcquireRandomInfo(); in DistributePixelCacheClient()
815 secret=GetRandomKey(random_info,DPCSessionKeyLength); in DistributePixelCacheClient()
818 random_info=DestroyRandomInfo(random_info); in DistributePixelCacheClient()
Dcache-private.h199 *random_info; member
Dthreshold.c2030 **magick_restrict random_info; in RandomThresholdImage() local
2054 random_info=AcquireRandomInfoThreadSet(); in RandomThresholdImage()
2057 key=GetRandomSecretKey(random_info[0]); in RandomThresholdImage()
2101 GetPseudoRandomValue(random_info[id])); in RandomThresholdImage()
2124 random_info=DestroyRandomInfoThreadSet(random_info); in RandomThresholdImage()
Dcache.c1065 if (cache_info->random_info != (RandomInfo *) NULL) in DestroyPixelCache()
1066 cache_info->random_info=DestroyRandomInfo(cache_info->random_info); in DestroyPixelCache()
2685 static inline ssize_t RandomX(RandomInfo *random_info,const size_t columns) in RandomX() argument
2687 return((ssize_t) (columns*GetPseudoRandomValue(random_info))); in RandomX()
2690 static inline ssize_t RandomY(RandomInfo *random_info,const size_t rows) in RandomY() argument
2692 return((ssize_t) (rows*GetPseudoRandomValue(random_info))); in RandomY()
2945 if (cache_info->random_info == (RandomInfo *) NULL) in GetVirtualPixelCacheNexus()
2946 cache_info->random_info=AcquireRandomInfo(); in GetVirtualPixelCacheNexus()
2948 RandomX(cache_info->random_info,cache_info->columns), in GetVirtualPixelCacheNexus()
2949 RandomY(cache_info->random_info,cache_info->rows),1UL,1UL, in GetVirtualPixelCacheNexus()
Deffect.c3781 **magick_restrict random_info; in SpreadImage() local
3817 random_info=AcquireRandomInfoThreadSet(); in SpreadImage()
3821 key=GetRandomSecretKey(random_info[0]); in SpreadImage()
3850 point.x=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3851 point.y=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3877 random_info=DestroyRandomInfoThreadSet(random_info); in SpreadImage()
/external/ImageMagick/coders/
Dplasma.c94 static inline void PlasmaPixel(Image *image,RandomInfo *random_info,double x, in PlasmaPixel() argument
105 GetPseudoRandomValue(random_info)+0.5)),q); in PlasmaPixel()
107 GetPseudoRandomValue(random_info)+0.5)),q); in PlasmaPixel()
109 GetPseudoRandomValue(random_info)+0.5)),q); in PlasmaPixel()
176 *random_info; in ReadPlasmaImage() local
182 random_info=AcquireRandomInfo(); in ReadPlasmaImage()
183 PlasmaPixel(image,random_info,segment_info.x1,segment_info.y1,exception); in ReadPlasmaImage()
184 PlasmaPixel(image,random_info,segment_info.x1,(segment_info.y1+ in ReadPlasmaImage()
186 PlasmaPixel(image,random_info,segment_info.x1,segment_info.y2,exception); in ReadPlasmaImage()
187 PlasmaPixel(image,random_info,(segment_info.x1+segment_info.x2)/2, in ReadPlasmaImage()
[all …]
Dpsd.c525 *random_info; in PreservePSDOpacityMask() local
533 random_info=AcquireRandomInfo(); in PreservePSDOpacityMask()
534 key_info=GetRandomKey(random_info,2+1); in PreservePSDOpacityMask()
545 random_info=DestroyRandomInfo(random_info); in PreservePSDOpacityMask()
/external/ImageMagick/MagickWand/
Doperation.c2927 *random_info; in CLISimpleOperatorImage() local
2929 random_info=AcquireRandomInfo(); in CLISimpleOperatorImage()
2930 angle=22.5*(GetPseudoRandomValue(random_info)-0.5); in CLISimpleOperatorImage()
2931 random_info=DestroyRandomInfo(random_info); in CLISimpleOperatorImage()
Dmogrify.c2379 *random_info; in MogrifyImage() local
2385 random_info=AcquireRandomInfo(); in MogrifyImage()
2386 angle=22.5*(GetPseudoRandomValue(random_info)-0.5); in MogrifyImage()
2387 random_info=DestroyRandomInfo(random_info); in MogrifyImage()