Home
last modified time | relevance | path

Searched refs:hue (Results 1 – 25 of 137) sorted by relevance

123456

/third_party/ffmpeg/libavfilter/
Dvf_hue.c63 float hue; /* hue expressed in radians */ member
102 AVFILTER_DEFINE_CLASS(hue);
104 static inline void compute_sin_and_cos(HueContext *hue) in compute_sin_and_cos() argument
111 hue->hue_sin = lrint(sin(hue->hue) * (1 << 16) * hue->saturation); in compute_sin_and_cos()
112 hue->hue_cos = lrint(cos(hue->hue) * (1 << 16) * hue->saturation); in compute_sin_and_cos()
209 HueContext *hue = ctx->priv; in init() local
212 if (hue->hue_expr && hue->hue_deg_expr) { in init()
220 if (hue->expr##_expr) do { \ in init()
221 ret = set_expr(&hue->expr##_pexpr, &hue->expr##_expr, \ in init()
222 hue->expr##_expr, option, ctx); \ in init()
[all …]
Dvf_procamp_vaapi.c51 float hue; member
108 procamp_params[i].value = map(ctx->hue, HUE_MIN, HUE_MAX, in procamp_vaapi_build_filter_params()
209 OFFSET(hue), AV_OPT_TYPE_FLOAT, { .dbl = HUE_DEFAULT }, HUE_MIN, HUE_MAX, .flags = FLAGS },
211 OFFSET(hue), AV_OPT_TYPE_FLOAT, { .dbl = HUE_DEFAULT }, HUE_MIN, HUE_MAX, .flags = FLAGS },
/third_party/typescript/tests/baselines/reference/
DderivedClasses.types9 var getHue = () => { return this.hue(); };
11 >() => { return this.hue(); } : () => string
12 >this.hue() : string
13 >this.hue : () => string
15 >hue : () => string
32 public hue() { return "some hue"; }
33 >hue : () => string
34 >"some hue" : "some hue"
44 var getHue = () => { return this.hue(); };
46 >() => { return this.hue(); } : () => string
[all …]
DderivedClasses.symbols9 var getHue = () => { return this.hue(); };
11 >this.hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
13 >hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
26 public hue() { return "some hue"; }
27 >hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
37 var getHue = () => { return this.hue(); };
39 >this.hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
41 >hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
61 r.hue();
62 >r.hue : Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43))
[all …]
DderivedClasses.js4 var getHue = () => { return this.hue(); };
11 public hue() { return "some hue"; } method in Color
17 var getHue = () => { return this.hue(); };
26 r.hue();
28 b.hue();
56 var getHue = function () { return _this.hue(); };
65 Color.prototype.hue = function () { return "some hue"; }; method in Color
75 var getHue = function () { return _this.hue(); };
83 r.hue();
85 b.hue();
DderivedClasses.errors.txt10 var getHue = () => { return this.hue(); };
17 public hue() { return "some hue"; }
23 var getHue = () => { return this.hue(); };
32 r.hue();
34 b.hue();
DindexTypeCheck.types76 yellow["hue"]; // ok
77 >yellow["hue"] : Red
79 >"hue" : "hue"
/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Dcolors.dart11 double hue;
13 hue = 0.0;
15 hue = 60.0 * (((green - blue) / delta) % 6);
17 hue = 60.0 * (((blue - red) / delta) + 2);
19 hue = 60.0 * (((red - green) / delta) + 4);
22 /// Set hue to 0.0 when red == green == blue.
23 hue = hue.isNaN ? 0.0 : hue;
24 return hue;
29 double hue,
37 if (hue < 60.0) {
[all …]
/third_party/typescript/tests/cases/compiler/
DderivedClasses.ts3 var getHue = () => { return this.hue(); };
10 public hue() { return "some hue"; } method in Color
16 var getHue = () => { return this.hue(); };
25 r.hue();
27 b.hue();
/third_party/boost/boost/gil/extension/toolbox/color_spaces/
Dhsv.hpp63 float32_t hue, saturation, value; in operator ()() local
85 hue = 0.f; in operator ()()
91 hue = ( temp_green - temp_blue ) in operator ()()
96 hue = 2.f + ( temp_blue - temp_red ) in operator ()()
101 hue = 4.f + ( temp_red - temp_green ) in operator ()()
106 hue /= 6.f; in operator ()()
108 if( hue < 0.f ) in operator ()()
110 hue++; in operator ()()
114 get_color( dst, hue_t() ) = hue; in operator ()()
Dhsl.hpp59 float32_t hue, saturation, lightness; in operator ()() local
68 hue = 0.f; in operator ()()
101 hue = ( temp_green - temp_blue ) in operator ()()
109 hue = 2.f in operator ()()
117 hue = 4.f in operator ()()
122 hue /= 6.f; in operator ()()
124 if( hue < 0.f ) in operator ()()
126 hue += 1.f; in operator ()()
130 get_color( dst,hue_t() ) = hue; in operator ()()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_random_color_adjust.py35 def util_test_random_color_adjust_error(brightness=(1, 1), contrast=(1, 1), saturation=(1, 1), hue=… argument
53 hue=hue)
66 def util_test_random_color_adjust_op(brightness=(1, 1), contrast=(1, 1), saturation=(1, 1), hue=(0,… argument
76 hue=hue)
88 hue=hue),
183 util_test_random_color_adjust_op(hue=(0.5, 0.5), plot=plot)
193 util_test_random_color_adjust_error(hue=(0.5, 0.5))
/third_party/python/Lib/
Dcolorsys.py109 def _v(m1, m2, hue): argument
110 hue = hue % 1.0
111 if hue < ONE_SIXTH:
112 return m1 + (m2-m1)*hue*6.0
113 if hue < 0.5:
115 if hue < TWO_THIRD:
116 return m1 + (m2-m1)*(TWO_THIRD-hue)*6.0
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglcolorbalance.c165 glcolorbalance->hue == 0.0 && glcolorbalance->saturation == 1.0; in gst_gl_color_balance_is_passthrough()
173 gdouble hue = glcolorbalance->hue; in _update_yua_uniforms() local
175 gdouble s_hue_cos = saturation * cos (hue * G_PI); in _update_yua_uniforms()
176 gdouble s_hue_sin = saturation * sin (hue * G_PI); in _update_yua_uniforms()
487 glcolorbalance->hue = DEFAULT_PROP_HUE; in gst_gl_color_balance_init()
532 changed = new_val != vb->hue; in gst_gl_color_balance_colorbalance_set_value()
533 vb->hue = new_val; in gst_gl_color_balance_colorbalance_set_value()
570 value = (vb->hue + 1) * 2000.0 / 2.0 - 1000.0; in gst_gl_color_balance_colorbalance_get_value()
640 GST_DEBUG_OBJECT (balance, "Changing hue from %lf to %lf", balance->hue, in gst_gl_color_balance_set_property()
642 if (d != balance->hue) in gst_gl_color_balance_set_property()
[all …]
/third_party/flutter/flutter/packages/flutter/test/painting/
Dcolors_test.dart27 expect(result.hue, 53.0);
33 test('HSVColor hue sweep test', () {
35 for (double hue = 0.0; hue <= 360.0; hue += 36.0) {
36 final HSVColor hsvColor = HSVColor.fromAHSV(1.0, hue, 1.0, 1.0);
39 if (hue != 360.0) {
123 test('HSVColor lerps hue correctly.', () {
223 expect(result.hue, 53.0);
229 test('HSLColor hue sweep test', () {
231 for (double hue = 0.0; hue <= 360.0; hue += 36.0) {
232 final HSLColor hslColor = HSLColor.fromAHSL(1.0, hue, 0.5, 0.5);
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Drandom_color_adjust_ir.cc38 const std::vector<float> &hue) in RandomColorAdjustOperation() argument
39 : brightness_(brightness), contrast_(contrast), saturation_(saturation), hue_(hue) { in RandomColorAdjustOperation()
105 std::vector<float> hue = op_params["hue"]; in from_json() local
106 …tion = std::make_shared<vision::RandomColorAdjustOperation>(brightness, contrast, saturation, hue); in from_json()
/third_party/boost/libs/gil/test/extension/toolbox/
Dhsl_hsv_test.cpp48 float hue = ( x + 1.f ) / width; in BOOST_AUTO_TEST_CASE() local
50 hsl_x_it[x] = hsl32f_pixel_t( hue, 1.0, v ); in BOOST_AUTO_TEST_CASE()
51 hsv_x_it[x] = hsv32f_pixel_t( hue, 1.0, v ); in BOOST_AUTO_TEST_CASE()
Dcolor_convert_hsl.cpp54 float const hue = (x + 1.f) / w; in test_image_assign_hsl() local
55 gil::hsl32f_pixel_t const p(hue, 1.0, v); in test_image_assign_hsl()
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dterm-ostream.oo.c83 float hue; /* normalized to interval [0,6) */ member
101 result->hue = 4.0f + (float) (r - g) / (float) (b - g); in rgb_to_hsv()
108 result->hue = 0.0f + (float) (g - b) / (float) (r - b); in rgb_to_hsv()
115 result->hue = 6.0f - (float) (b - g) / (float) (r - g); in rgb_to_hsv()
125 result->hue = 4.0f - (float) (g - r) / (float) (b - r); in rgb_to_hsv()
132 result->hue = 2.0f - (float) (r - b) / (float) (g - b); in rgb_to_hsv()
139 result->hue = 2.0f + (float) (b - r) / (float) (g - r); in rgb_to_hsv()
146 result->hue = 0; /* arbitrary */ in rgb_to_hsv()
160 float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2π] */ in color_distance()
161 float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2π] */ in color_distance()
[all …]
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Dtransforms.py240 def color_distortion(img, hue, sat, val, device_num): argument
242 hue = _rand(-hue, hue)
249 x[..., 0] += hue
370 def _data_aug(image, box, jitter, hue, sat, val, image_input_size, max_boxes, argument
425 image_data = color_distortion(image, hue, sat, val, device_num)
440 hue = config.hue
443 image, anno = _data_aug(image, box, jitter=jitter, hue=hue, sat=sat, val=val,
/third_party/gstreamer/gstplugins_good/gst/videofilter/
Dgstvideobalance.c126 hue_cos = cos (G_PI * vb->hue); in gst_video_balance_update_tables()
127 hue_sin = sin (G_PI * vb->hue); in gst_video_balance_update_tables()
154 videobalance->hue == 0.0 && videobalance->saturation == 1.0; in gst_video_balance_is_passthrough()
630 videobalance->hue = DEFAULT_PROP_HUE; in gst_video_balance_init()
684 changed = new_val != vb->hue; in gst_video_balance_colorbalance_set_value()
685 vb->hue = new_val; in gst_video_balance_colorbalance_set_value()
722 value = (vb->hue + 1) * 2000.0 / 2.0 - 1000.0; in gst_video_balance_colorbalance_get_value()
791 GST_DEBUG_OBJECT (balance, "Changing hue from %lf to %lf", balance->hue, in gst_video_balance_set_property()
793 if (d != balance->hue) in gst_video_balance_set_property()
795 balance->hue = d; in gst_video_balance_set_property()
[all …]
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_camera_profile.cpp379 for (uint32 hue = 0; hue < hues; hue++) in FingerprintHueSatMap() local
385 map.GetDelta (hue, sat, val, modify); in FingerprintHueSatMap()
878 for (uint32 hue = 0; hue < hues; hue++) in ReadHueSatMap() local
890 hueSatMap.SetDelta (hue, sat, val, modify); in ReadHueSatMap()
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
Drpng2-x.c1230 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_load_bg_image() local
1267 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_load_bg_image()
1278 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_load_bg_image()
1279 hue -= (((int)(hue / 360.0)) * 360.0); in rpng2_x_load_bg_image()
1280 hue /= 60.0; in rpng2_x_load_bg_image()
1281 ii = (int)hue; in rpng2_x_load_bg_image()
1282 f = hue - (double)ii; in rpng2_x_load_bg_image()
2002 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_reload_bg_image() local
2035 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_reload_bg_image()
2046 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_reload_bg_image()
[all …]
/third_party/libpng/contrib/gregbook/
Drpng2-x.c1230 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_load_bg_image() local
1267 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_load_bg_image()
1278 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_load_bg_image()
1279 hue -= (((int)(hue / 360.0)) * 360.0); in rpng2_x_load_bg_image()
1280 hue /= 60.0; in rpng2_x_load_bg_image()
1281 ii = (int)hue; in rpng2_x_load_bg_image()
1282 f = hue - (double)ii; in rpng2_x_load_bg_image()
2002 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_reload_bg_image() local
2035 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_reload_bg_image()
2046 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_reload_bg_image()
[all …]
/third_party/node/deps/npm/node_modules/color-convert/
Dconversions.js672 var hue;
681 hue = 0;
684 hue = ((g - b) / chroma) % 6;
687 hue = 2 + (b - r) / chroma;
689 hue = 4 + (r - g) / chroma + 4;
692 hue /= 6;
693 hue %= 1;
695 return [hue * 360, chroma * 100, grayscale * 100];

123456