Home
last modified time | relevance | path

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

/external/ImageMagick/MagickCore/
Drandom.c169 *random_info; in AcquireRandomInfo() local
176 random_info=(RandomInfo *) AcquireMagickMemory(sizeof(*random_info)); in AcquireRandomInfo()
177 if (random_info == (RandomInfo *) NULL) in AcquireRandomInfo()
179 (void) ResetMagickMemory(random_info,0,sizeof(*random_info)); in AcquireRandomInfo()
180 random_info->signature_info=AcquireSignatureInfo(); in AcquireRandomInfo()
181 random_info->nonce=AcquireStringInfo(2*GetSignatureDigestsize( in AcquireRandomInfo()
182 random_info->signature_info)); in AcquireRandomInfo()
183 ResetStringInfo(random_info->nonce); in AcquireRandomInfo()
184 random_info->reservoir=AcquireStringInfo(GetSignatureDigestsize( in AcquireRandomInfo()
185 random_info->signature_info)); 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) ResetMagickMemory(random_info,0,number_threads*sizeof(*random_info)); in AcquireRandomInfoThreadSet()
[all …]
Dresource.c104 *random_info = (RandomInfo *) NULL; variable
504 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
507 if (random_info == (RandomInfo *) NULL) in AcquireUniqueFileResource()
508 random_info=AcquireRandomInfo(); in AcquireUniqueFileResource()
518 key=GetRandomKey(random_info,6); in AcquireUniqueFileResource()
540 key=GetRandomKey(random_info,12); in AcquireUniqueFileResource()
1197 if (random_info != (RandomInfo *) NULL) in ResourceComponentTerminus()
1198 random_info=DestroyRandomInfo(random_info); in ResourceComponentTerminus()
Dstatistic.c225 static double ApplyEvaluateOperator(RandomInfo *random_info,const Quantum pixel, in ApplyEvaluateOperator() argument
281 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
287 result=(double) GenerateDifferentialNoise(random_info,pixel,ImpulseNoise, in ApplyEvaluateOperator()
293 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
331 result=(double) GenerateDifferentialNoise(random_info,pixel, in ApplyEvaluateOperator()
347 result=(double) GenerateDifferentialNoise(random_info,pixel,PoissonNoise, in ApplyEvaluateOperator()
405 result=(double) GenerateDifferentialNoise(random_info,pixel,UniformNoise, in ApplyEvaluateOperator()
439 **magick_restrict random_info; in EvaluateImages() local
481 random_info=AcquireRandomInfoThreadSet(); in EvaluateImages()
486 key=GetRandomSecretKey(random_info[0]); in EvaluateImages()
[all …]
Dfx.c131 *random_info; member
201 fx_info->random_info=AcquireRandomInfo(); in AcquireFxInfo()
289 **magick_restrict random_info; in AddNoiseImage() local
326 random_info=AcquireRandomInfoThreadSet(); in AddNoiseImage()
330 key=GetRandomSecretKey(random_info[0]); in AddNoiseImage()
381 GenerateDifferentialNoise(random_info[id],p[i],noise_type,attenuate)), in AddNoiseImage()
406 random_info=DestroyRandomInfoThreadSet(random_info); in AddNoiseImage()
1072 fx_info->random_info=DestroyRandomInfo(fx_info->random_info); in DestroyFxInfo()
2799 alpha=GetPseudoRandomValue(fx_info->random_info); in FxEvaluateSubexpression()
3693 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.c1869 *random_info; in ShredFile() local
1879 random_info=AcquireRandomInfo(); in ShredFile()
1885 key=GetRandomKey(random_info,quantum); in ShredFile()
1898 random_info=DestroyRandomInfo(random_info); in ShredFile()
Ddistribute-cache.c786 *random_info; in DistributePixelCacheClient() local
815 random_info=AcquireRandomInfo(); in DistributePixelCacheClient()
816 secret=GetRandomKey(random_info,DPCSessionKeyLength); in DistributePixelCacheClient()
819 random_info=DestroyRandomInfo(random_info); in DistributePixelCacheClient()
Dthreshold.c1641 **magick_restrict random_info; in RandomThresholdImage() local
1665 random_info=AcquireRandomInfoThreadSet(); in RandomThresholdImage()
1668 key=GetRandomSecretKey(random_info[0]); in RandomThresholdImage()
1717 GetPseudoRandomValue(random_info[id])); in RandomThresholdImage()
1739 random_info=DestroyRandomInfoThreadSet(random_info); in RandomThresholdImage()
Dcache-private.h199 *random_info; member
Dcache.c959 if (cache_info->random_info != (RandomInfo *) NULL) in DestroyPixelCache()
960 cache_info->random_info=DestroyRandomInfo(cache_info->random_info); in DestroyPixelCache()
2538 static inline ssize_t RandomX(RandomInfo *random_info,const size_t columns) in RandomX() argument
2540 return((ssize_t) (columns*GetPseudoRandomValue(random_info))); in RandomX()
2543 static inline ssize_t RandomY(RandomInfo *random_info,const size_t rows) in RandomY() argument
2545 return((ssize_t) (rows*GetPseudoRandomValue(random_info))); in RandomY()
2802 if (cache_info->random_info == (RandomInfo *) NULL) in GetVirtualPixelsFromNexus()
2803 cache_info->random_info=AcquireRandomInfo(); in GetVirtualPixelsFromNexus()
2805 RandomX(cache_info->random_info,cache_info->columns), in GetVirtualPixelsFromNexus()
2806 RandomY(cache_info->random_info,cache_info->rows),1UL,1UL, in GetVirtualPixelsFromNexus()
Deffect.c3750 **magick_restrict random_info; in SpreadImage() local
3787 random_info=AcquireRandomInfoThreadSet(); in SpreadImage()
3791 key=GetRandomSecretKey(random_info[0]); in SpreadImage()
3820 point.x=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3821 point.y=GetPseudoRandomValue(random_info[id]); in SpreadImage()
3844 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 …]
/external/ImageMagick/MagickWand/
Doperation.c2926 *random_info; in CLISimpleOperatorImage() local
2928 random_info=AcquireRandomInfo(); in CLISimpleOperatorImage()
2929 angle=22.5*(GetPseudoRandomValue(random_info)-0.5); in CLISimpleOperatorImage()
2930 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()