/third_party/ffmpeg/libavfilter/ |
H A D | af_acontrast.c | 30 float contrast; member 32 int nb_samples, int channels, float contrast); 39 { "contrast", "set contrast", OFFSET(contrast), AV_OPT_TYPE_FLOAT, {.dbl=33}, 0, 100, A }, 47 float contrast) in filter_flt() 57 dst[c] = sinf(d + contrast * sinf(d * 4)); in filter_flt() 67 float contrast) in filter_dbl() 77 dst[c] = sin(d + contrast * sin(d * 4)); in filter_dbl() 87 float contrast) in filter_fltp() 45 filter_flt(void **d, const void **s, int nb_samples, int channels, float contrast) filter_flt() argument 65 filter_dbl(void **d, const void **s, int nb_samples, int channels, float contrast) filter_dbl() argument 85 filter_fltp(void **d, const void **s, int nb_samples, int channels, float contrast) filter_fltp() argument 103 filter_dblp(void **d, const void **s, int nb_samples, int channels, float contrast) filter_dblp() argument [all...] |
H A D | vf_eq.h | 53 double brightness, contrast, gamma, gamma_weight; member 65 double contrast; member 106 int contrast = (int) (param->contrast * 256 * 16); in process_c() local 107 int brightness = ((int) (100.0 * param->brightness + 100.0) * 511) / 200 - 128 - contrast / 32; in process_c() 111 int pel = ((src[y * src_stride + x] * contrast) >> 12) + brightness; in process_c()
|
H A D | vf_eq.c | 45 v = param->contrast * (v - 0.5) + 0.5 + param->brightness; in create_lut() 79 if (param->contrast == 1.0 && param->brightness == 0.0 && param->gamma == 1.0) in check_values() 81 else if (param->gamma == 1.0 && fabs(param->contrast) < 7.9) in check_values() 89 eq->contrast = av_clipf(av_expr_eval(eq->contrast_pexpr, eq->var_values, eq), -1000.0, 1000.0); in set_contrast() 90 eq->param[0].contrast = eq->contrast; in set_contrast() 131 eq->param[i].contrast = eq->saturation; in set_saturation() 163 if ((ret = set_expr(&eq->contrast_pexpr, eq->contrast_expr, "contrast", ctx)) < 0 || in initialize() 290 SET_PARAM(contrast, contrast) in process_command() [all...] |
H A D | avf_avectorscope.c | 66 int contrast[4]; member 90 { "rc", "set red contrast", OFFSET(contrast[0]), AV_OPT_TYPE_INT, {.i64=40}, 0, 255, TFLAGS }, 91 { "gc", "set green contrast", OFFSET(contrast[1]), AV_OPT_TYPE_INT, {.i64=160}, 0, 255, TFLAGS }, 92 { "bc", "set blue contrast", OFFSET(contrast[2]), AV_OPT_TYPE_INT, {.i64=80}, 0, 255, TFLAGS }, 93 { "ac", "set alpha contrast", OFFSET(contrast[3]), AV_OPT_TYPE_INT, {.i64=255}, 0, 255, TFLAGS }, 132 dst[0] = FFMIN(dst[0] + s->contrast[ in draw_dot() [all...] |
H A D | avf_aphasemeter.c | 45 int contrast[4]; member 73 { "rc", "set red contrast", OFFSET(contrast[0]), AV_OPT_TYPE_INT, {.i64=2}, 0, 255, FLAGS }, 74 { "gc", "set green contrast", OFFSET(contrast[1]), AV_OPT_TYPE_INT, {.i64=7}, 0, 255, FLAGS }, 75 { "bc", "set blue contrast", OFFSET(contrast[2]), AV_OPT_TYPE_INT, {.i64=1}, 0, 255, FLAGS }, 243 const int rc = s->contrast[0]; in filter_frame() 244 const int gc = s->contrast[1]; in filter_frame() 245 const int bc = s->contrast[ in filter_frame() [all...] |
H A D | vf_procamp_vaapi.c | 51 float contrast; member 95 /* contrast */ in procamp_vaapi_build_filter_params() 98 procamp_params[i].value = map(ctx->contrast, CONTRAST_MIN, CONTRAST_MAX, in procamp_vaapi_build_filter_params() 202 { "c", "Output video contrast", 203 OFFSET(contrast), AV_OPT_TYPE_FLOAT, { .dbl = CONTRAST_DEFAULT }, CONTRAST_MIN, CONTRAST_MAX, .flags = FLAGS }, 204 { "contrast", "Output video contrast", 205 OFFSET(contrast), AV_OPT_TYPE_FLOAT, { .dbl = CONTRAST_DEFAULT }, CONTRAST_MIN, CONTRAST_MAX, .flags = FLAGS }, 234 .description = NULL_IF_CONFIG_SMALL("ProcAmp (color balance) adjustments for hue, saturation, brightness, contrast"),
|
H A D | vf_deshake.c | 33 * - If contrast > threshold then find likely motion vector 80 { "contrast", "set contrast threshold for blocks", OFFSET(contrast), AV_OPT_TYPE_INT, {.i64=125}, 1, 255, .flags = FLAGS }, 186 * Find the contrast of a given block. When searching for global motion we 187 * really only care about the high contrast blocks, so using this method we 241 int contrast; in find_motion() local 261 // If the contrast is too low, just skip this block as it probably in find_motion() 263 contrast = block_contrast(src2, x, y, stride, deshake->blocksize); in find_motion() 264 if (contrast > deshak in find_motion() [all...] |
/third_party/skia/modules/skottie/src/effects/ |
H A D | BrightnessContrastEffect.cpp | 24 // The contrast effect transfer function can be approximated with the following 29 // where C is the normalized contrast value [-1..1]. 33 // - start off with sampling the AE contrast effect for various contrast/input values [1] 36 // contrast values [2] 39 // * negative contrast appears clamped at -0.5 (-50) 40 // * a,b coefficients vary linearly vs. contrast 41 // * the b coefficient for max contrast (1.0) looks kinda familiar: 3.14757 - coincidence? 64 static sk_sp<SkData> make_contrast_coeffs(float contrast) { in make_contrast_coeffs() argument 67 coeffs.b = SK_ScalarPI * contrast; in make_contrast_coeffs() 185 contrast = SkTPin(fContrast , -100.0f, 100.0f) / 100; // [ -1 .. 1] makeLegacyCF() local 217 contrast = SkTPin(fContrast , -50.0f, 100.0f) / 100; // [-0.5 .. 1] makeCF() local [all...] |
/third_party/ffmpeg/libavfilter/x86/ |
H A D | vf_eq_init.c | 28 extern void ff_process_one_line_sse2(const uint8_t *src, uint8_t *dst, short contrast, 35 short contrast = (short) (param->contrast * 256 * 16); in process_sse2() local 37 / 200 - 128 - contrast / 32; in process_sse2() 40 ff_process_one_line_sse2(src, dst, contrast, brightness, w); in process_sse2()
|
/third_party/skia/src/gpu/text/ |
H A D | GrDistanceFieldAdjustTable.cpp | 54 SkScalar contrast = SK_GAMMA_CONTRAST; in build_distance_adjust_table() local 56 SkScalar contrast = 0.5f; in build_distance_adjust_table() local 59 size = SkScalerContext::GetGammaLUTSize(contrast, paintGamma, deviceGamma, in build_distance_adjust_table() 66 if (!SkScalerContext::GetGammaLUTData(contrast, paintGamma, deviceGamma, data.get())) { in build_distance_adjust_table()
|
/third_party/skia/src/core/ |
H A D | SkMaskGamma.cpp | 72 static float apply_contrast(float srca, float contrast) { in apply_contrast() argument 73 return srca + ((1.0f - srca) * contrast * srca); in apply_contrast() 76 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, in SkTMaskGamma_build_correcting_lut() argument 89 const float adjustedContrast = SkScalarToFloat(contrast) * linDst; in SkTMaskGamma_build_correcting_lut()
|
H A D | SkMaskGamma.h | 80 void SK_API SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, 106 * @param contrast A value in the range [0.0, 1.0] which indicates the 107 * amount of artificial contrast to add. 111 SkTMaskGamma(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma) : fIsLinear(false) { in SkTMaskGamma() argument 116 SkTMaskGamma_build_correcting_lut(fGammaTables[i], lum, contrast, in SkTMaskGamma()
|
H A D | SkScalerContext.cpp | 54 // The primary filter is blur, for which contrast makes no sense, in PreprocessRec() 116 static const SkMaskGamma& cached_mask_gamma(SkScalar contrast, SkScalar paintGamma, in cached_mask_gamma() argument 119 if (0 == contrast && SK_Scalar1 == paintGamma && SK_Scalar1 == deviceGamma) { in cached_mask_gamma() 125 if (gContrast != contrast || gPaintGamma != paintGamma || gDeviceGamma != deviceGamma) { in cached_mask_gamma() 127 gMaskGamma = new SkMaskGamma(contrast, paintGamma, deviceGamma); in cached_mask_gamma() 128 gContrast = contrast; in cached_mask_gamma() 149 size_t SkScalerContext::GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, in GetGammaLUTSize() argument 152 const SkMaskGamma& maskGamma = cached_mask_gamma(contrast, in GetGammaLUTSize() 162 bool SkScalerContext::GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, in GetGammaLUTData() argument 165 const SkMaskGamma& maskGamma = cached_mask_gamma(contrast, in GetGammaLUTData() [all...] |
/third_party/skia/include/effects/ |
H A D | SkHighContrastFilter.h | 16 * Provides transformations to improve contrast for users with low vision. 35 SkScalar contrast) in SkHighContrastConfig() 38 fContrast(contrast) {} in SkHighContrastConfig() 54 // After grayscale and inverting, the contrast can be adjusted linearly. 60 * Color filter that provides transformations to improve contrast 68 * - Increasing the resulting contrast. 71 * not valid, e.g. if you try to call it with a contrast outside the range of 33 SkHighContrastConfig(bool grayscale, InvertStyle invertStyle, SkScalar contrast) SkHighContrastConfig() argument
|
/third_party/backends/backend/ |
H A D | plustek-usbmap.c | 70 /** adjust according to brightness and contrast 79 /* adjust brightness (b) and contrast (c) using the function: in usb_MapAdjust() 86 c = ((double)dev->scanning.sParam.contrast + 100.0)/100.0; in usb_MapAdjust() 90 DBG( _DBG_INFO, "* contrast = %i -> %.3f\n", in usb_MapAdjust() 91 dev->scanning.sParam.contrast, c); in usb_MapAdjust() 93 if( dev->scanning.sParam.brightness == 0 && dev->scanning.sParam.contrast ) in usb_MapAdjust() 131 /* do the brightness and contrast adjustment ... */ in usb_MapDownload()
|
H A D | ricoh.c | 251 dev->info.contrast_default = wbuf.contrast; in attach() 253 dev->info.contrast_default = 256 - wbuf.contrast; in attach() 258 dev->info.contrast_default = wbuf.contrast; in attach() 291 DBG (5, "contrast=%d\n", dev->info.contrast_default); in attach() 443 /* contrast */ in init_options() 825 s->contrast = s->val[OPT_CONTRAST].w; in sane_start() 860 wbuf.contrast = (SANE_Byte) s->contrast; in sane_start() 862 wbuf.contrast = 256 - (SANE_Byte) s->contrast; in sane_start() [all...] |
H A D | snapscan.c | 147 static void gamma_n (double gamma, int brightness, int contrast, 256 gamma_n (SANE_UNFIX(ps->gamma_gs), ps->bright, ps->contrast, gamma, ps->bpp, 1); in init_gamma() 259 gamma_n (SANE_UNFIX(ps->gamma_r), ps->bright, ps->contrast, gamma, ps->bpp, 1); in init_gamma() 262 gamma_n (SANE_UNFIX(ps->gamma_g), ps->bright, ps->contrast, gamma, ps->bpp, 1); in init_gamma() 265 gamma_n (SANE_UNFIX(ps->gamma_b), ps->bright, ps->contrast, gamma, ps->bpp, 1); in init_gamma() 290 static void gamma_n (double gamma, int brightness, int contrast, in gamma_n() argument 302 double val = (i - mid) * (1.0 + contrast / 100.0) in gamma_n() 1483 gamma_n (gamma_gs, pss->bright, pss->contrast, in download_gamma_tables() 1488 gamma_n (gamma_gs, pss->bright, pss->contrast, in download_gamma_tables() 1493 gamma_n (gamma_gs, pss->bright, pss->contrast, in download_gamma_tables() [all...] |
H A D | ricoh.h | 240 SANE_Int contrast; member 280 SANE_Byte contrast; member
|
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-display.h | 39 * way like set oled contrast. Either way, the pwm level is arrived at via a 46 int (*contrast)(const struct lws_display *disp, uint8_t contrast); member
|
/third_party/ffmpeg/libswscale/ |
H A D | swscale.h | 325 * @param contrast 16.16 fixed point contrast correction 335 int brightness, int contrast, int saturation); 346 int *brightness, int *contrast, int *saturation);
|
H A D | utils.c | 903 int brightness, int contrast, int saturation) in sws_setColorspaceDetails() 914 brightness, contrast, saturation); in sws_setColorspaceDetails() 934 c->contrast != contrast || in sws_setColorspaceDetails() 947 c->contrast = contrast; in sws_setColorspaceDetails() 961 return sws_setColorspaceDetails(c->cascaded_context[c->cascaded_mainindex],inv_table, srcRange,table, dstRange, brightness, contrast, saturation); in sws_setColorspaceDetails() 1019 brightness, contrast, saturation); in sws_setColorspaceDetails() 1044 contrast, saturation); in sws_setColorspaceDetails() 1049 contrast, saturatio in sws_setColorspaceDetails() 901 sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation) sws_setColorspaceDetails() argument 1058 sws_getColorspaceDetails(struct SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation) sws_getColorspaceDetails() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/xvmc/ |
H A D | attributes.c | 96 context_priv->procamp.contrast = value / 1000.0f + 1.0f; in XvMCSetAttribute() 140 *value = context_priv->procamp.contrast * 1000 - 1000; in XvMCGetAttribute()
|
/third_party/skia/tests/ |
H A D | HighContrastFilterTest.cpp | 79 // Valid contrast in DEF_TEST() 80 for (float contrast : {0.5f, +1.0f, -1.0f}) { in DEF_TEST() 82 config.fContrast = contrast; in DEF_TEST() 88 // Invalid contrast in DEF_TEST()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_csc.h | 38 float contrast; member
|
/third_party/ffmpeg/libswscale/ppc/ |
H A D | yuv2rgb_altivec.c | 84 * Integrated luma prescaling adjustment for saturation/contrast/brightness 601 int contrast, in ff_yuv2rgb_init_tables_ppc() 613 buf.tmp[0] = ((0xffffLL) * contrast >> 8) >> 9; // cy in ff_yuv2rgb_init_tables_ppc() 615 buf.tmp[2] = (inv_table[0] >> 3) * (contrast >> 16) * (saturation >> 16); // crv in ff_yuv2rgb_init_tables_ppc() 616 buf.tmp[3] = (inv_table[1] >> 3) * (contrast >> 16) * (saturation >> 16); // cbu in ff_yuv2rgb_init_tables_ppc() 617 buf.tmp[4] = -((inv_table[2] >> 1) * (contrast >> 16) * (saturation >> 16)); // cgu in ff_yuv2rgb_init_tables_ppc() 618 buf.tmp[5] = -((inv_table[3] >> 1) * (contrast >> 16) * (saturation >> 16)); // cgv in ff_yuv2rgb_init_tables_ppc() 598 ff_yuv2rgb_init_tables_ppc(SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation) ff_yuv2rgb_init_tables_ppc() argument
|