Searched refs:contrast (Results 1 - 25 of 47) sorted by relevance

12

/external/skia/include/effects/
H A DSkHighContrastFilter.h17 * Provides transformations to improve contrast for users with low vision.
34 SkScalar contrast)
37 fContrast(contrast) {}
53 // After grayscale and inverting, the contrast can be adjusted linearly.
59 * Color filter that provides transformations to improve contrast
67 * - Increasing the resulting contrast.
70 * not valid, e.g. if you try to call it with a contrast outside the range of
32 SkHighContrastConfig(bool grayscale, InvertStyle invertStyle, SkScalar contrast) argument
/external/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_csc.h38 float contrast; member in struct:vl_procamp
H A Dvl_csc.c50 * mat44 procamp, hue, saturation, brightness, contrast
51 * procamp = brightness * (saturation * (contrast * hue))
53 * procamp = saturation * (brightness * (contrast * hue))
55 * contrast
169 1.0f, /* contrast */
184 float c = p->contrast;
/external/skia/src/core/
H A DSkDeviceProfile.cpp26 SkDeviceProfile::SkDeviceProfile(float gammaExp, float contrast, argument
29 fContrastScale = pin(contrast, 0, 1);
41 float contrast,
44 return new SkDeviceProfile(gammaExp, contrast, config, level);
40 Create(float gammaExp, float contrast, LCDConfig config, FontHintLevel level) argument
H A DSkMaskGamma.cpp71 static float apply_contrast(float srca, float contrast) { argument
72 return srca + ((1.0f - srca) * contrast * srca);
75 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, argument
88 const float adjustedContrast = SkScalarToFloat(contrast) * linDst;
H A DSkMaskGamma.h79 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast,
105 * @param contrast A value in the range [0.0, 1.0] which indicates the
106 * amount of artificial contrast to add.
110 SkTMaskGamma(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma) : fIsLinear(false) { argument
115 SkTMaskGamma_build_correcting_lut(fGammaTables[i], lum, contrast,
H A DSkScalerContext.h53 uint8_t fContrast; //0.8+1, [0.0, 1.0] artificial contrast
91 * Causes the luminance color and contrast to be ignored, and the
256 static size_t GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma,
262 static void GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma,
H A DSkPaint.cpp1489 static const SkMaskGamma& cachedMaskGamma(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma) {
1491 if (0 == contrast && SK_Scalar1 == paintGamma && SK_Scalar1 == deviceGamma) {
1497 if (gContrast != contrast || gPaintGamma != paintGamma || gDeviceGamma != deviceGamma) {
1499 gMaskGamma = new SkMaskGamma(contrast, paintGamma, deviceGamma);
1500 gContrast = contrast;
1536 // No need to differentiate gamma or apply contrast if we're BW
1600 The primary filter is blur, for which contrast makes no sense,
1704 * contrast = 0, luminanceColor = transparent black.
1758 size_t SkScalerContext::GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma,
1761 const SkMaskGamma& maskGamma = cachedMaskGamma(contrast,
[all...]
/external/skia/src/gpu/text/
H A DGrDistanceFieldAdjustTable.cpp54 SkScalar contrast = SK_GAMMA_CONTRAST; local
56 SkScalar contrast = 0.5f; local
59 size = SkScalerContext::GetGammaLUTSize(contrast, paintGamma, deviceGamma,
66 SkScalerContext::GetGammaLUTData(contrast, paintGamma, deviceGamma, data.get());
/external/ImageMagick/MagickCore/
H A Dfeature.h32 contrast[4], member in struct:_ChannelFeatures
/external/clang/test/CodeGen/
H A Dbool-bitfield.c9 int contrast; member in struct:SysParams
/external/autotest/client/site_tests/video_WebRtcCamera/
H A Dssim.js84 var contrast = (2 * sigmaX * sigmaY + C2) / (sigmaX2 + sigmaY2 + C2);
87 return luminance * contrast * structure;
/external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/
H A Dssim.js84 var contrast = (2 * sigmaX * sigmaY + C2) / (sigmaX2 + sigmaY2 + C2);
87 return luminance * contrast * structure;
/external/webrtc/webrtc/modules/video_processing/
H A Dcontent_analysis.cc154 // Normalize MAD by spatial contrast: images with more contrast
196 float contrast = pixelSqSumAvg - (pixelSumAvg * pixelSumAvg); local
198 if (contrast > 0.0) {
199 contrast = sqrt(contrast);
200 motion_magnitude_ = tempDiffAvg / contrast;
H A Dcontent_analysis_sse2.cc109 float contrast = pixelSqSumAvg - (pixelSumAvg * pixelSumAvg); local
111 if (contrast > 0.0) {
112 contrast = sqrt(contrast);
113 motion_magnitude_ = tempDiffAvg / contrast;
/external/skia/src/effects/
H A DSkHighContrastFilter.cpp57 SkScalar IncreaseContrast(SkScalar f, SkScalar contrast) { argument
58 SkScalar m = (1 + contrast) / (1 - contrast);
131 // Increase contrast.
155 // Clamp contrast to just inside -1 to 1 to avoid division by zero.
358 const char* contrast; local
361 "contrast", &contrast);
449 fragBuilder->codeAppendf("if (%s != 0) {", contrast);
450 fragBuilder->codeAppendf(" float m = (1 + %s) / (1 - %s);", contrast, contras
[all...]
/external/mesa3d/src/gallium/state_trackers/xvmc/
H A Dattributes.c96 context_priv->procamp.contrast = value / 1000.0f + 1.0f;
140 *value = context_priv->procamp.contrast * 1000 - 1000;
/external/ImageMagick/www/api/
H A Denhance.php111 <p>BrightnessContrastImage() changes the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image.</p>
117 const double brightness,const double contrast,ExceptionInfo *exception)
135 <dt>contrast</dt>
136 <dd>the contrast percent (-100 .. 100). </dd>
233 <p>ContrastImage() enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a MagickTrue to increase the image contrast otherwise the contrast is reduced.</p>
254 <dd>Increase or decrease image contrast. </dd>
264 <p>ContrastStretchImage() is a simple image enhancement technique that attempts to improve the contrast in an image by 'stretching' the range of intensity values it contains to span a desired range of values. It differs from the more sophisticated histogram equalization in that it can only apply a linear scaling function to the image pixel values. As a result the 'enhancement' is less harsh.</p>
495 <p>It can be used to de-contrast
[all...]
H A Dfeature.php103 <p>GetImageFeatures() returns features for each channel in the image in each of four directions (horizontal, vertical, left and right diagonals) for the specified distance. The features include the angular second moment, contrast, correlation, sum of squares: variance, inverse difference moment, sum average, sum varience, sum entropy, entropy, difference variance, difference entropy, information measures of correlation 1, information measures of correlation 2, and maximum correlation coefficient. You can access the red channel contrast, for example, like this:</p>
107 contrast=channel_features[RedPixelChannel].contrast[0];
H A Deffect.php466 <p>SelectiveBlurImage() selectively blur pixels within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold.</p>
495 <dd>only pixels within this contrast threshold are included in the blur operation. </dd>
H A Dstatistic.php59 <p>EvaluateImage() applies a value to the image with an arithmetic, relational, or logical operator to an image. Use these operations to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.</p>
98 <p>FunctionImage() applies a value to the image with an arithmetic, relational, or logical operator to an image. Use these operations to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.</p>
/external/mesa3d/src/gallium/state_trackers/vdpau/
H A Dmixer.c782 camp.contrast = procamp->contrast;
/external/ImageMagick/coders/
H A Dfpx.c998 contrast;
1020 contrast=1.0;
1095 fpx_status=FPX_SetImageContrastAdjustment(flashpix,&contrast);
992 contrast; local
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_xv.c89 int contrast; member in struct:xorg_xv_port_priv
120 priv->contrast = value;
136 *value = priv->contrast;
/external/ImageMagick/Magick++/demo/
H A Ddemo.cpp131 cout << " contrast ..." << endl;
134 example.contrast( false );

Completed in 588 milliseconds

12