Home
last modified time | relevance | path

Searched refs:hsv (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
H A Dcolor_picker.cpp198 if ((hsv.v > 30 && hsv.s <= 5) || (hsv.v > 15 && hsv.v <= 30 && hsv.s <= 15) || (hsv.v <= 15)) { in IsBlackOrWhiteOrGrayColor()
358 if (hsv.h > 20 && hsv.h <= 60) { in GenerateMorandiShadowColor()
362 } else if (hsv.h > 60 && hsv.h <= 190) { in GenerateMorandiShadowColor()
425 if (hsv.h > 20 && hsv.h <= 50) { in DiscriminateDarkOrBrightColor()
464 double x = hsv.s + hsv.v; in AdjustToBasicColor()
470 hsv.s = hsv.s - hsv.s / x * z; in AdjustToBasicColor()
471 hsv.v = hsv.v - hsv.v / x * z; in AdjustToBasicColor()
478 if (hsv.h >= 18 && hsv.h <= 69) { in ProcessToDarkColor()
481 } else if (hsv.h > 69 && hsv.h <= 189) { in ProcessToDarkColor()
707 hsv.h = (hsv.h > 359) ? (hsv.h - 360) : hsv.h; // 359 is used to adjust hue to range [0, 360]. in RGB2HSV()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_color_picker.cpp97 HSV hsv = {0}; in GetHighestSaturationColor() local
141 if ((hsv.v > 30 && hsv.s <= 5) || (hsv.v > 15 && hsv.v <= 30 && hsv.s <= 15) || (hsv.v <= 15)) { in IsBlackOrWhiteOrGrayColor()
160 HSV hsv; in RGB2HSV() local
197 hsv.h = (hsv.h > 359) ? (hsv.h - 360) : hsv.h; // 359 is used to adjust hue to range [0, 360]. in RGB2HSV()
198 hsv.h = (hsv.h < 0) ? (hsv.h + 360) : hsv.h; // Adjust hue to range [0, 360]. in RGB2HSV()
202 return hsv; in RGB2HSV()
210 if (hsv.h < 0) { in AdjustHSVToDefinedIterval()
211 hsv.h = 0; in AdjustHSVToDefinedIterval()
216 if (hsv.s < 0) { in AdjustHSVToDefinedIterval()
217 hsv.s = 0; in AdjustHSVToDefinedIterval()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_color_picker_test.cpp191 HSV hsv; variable
193 hsv.h = 361;
194 hsv.s = 101;
197 hsv.h = -1;
198 hsv.s = -1;
199 hsv.v = -1;
212 HSV hsv; variable
213 hsv.h = -1;
214 hsv.s = -1;
215 hsv.v = -1;
[all …]
/ohos5.0/base/security/security_component_manager/frameworks/common/src/
H A Dsec_comp_tool.cpp61 HsvColor hsv; in RgbToHsv() local
69 hsv.h = ZERO_DOUBLE; in RgbToHsv()
80 hsv.s = ZERO_DOUBLE; in RgbToHsv()
82 hsv.s = delta / max; in RgbToHsv()
85 hsv.v = max; in RgbToHsv()
86 return hsv; in RgbToHsv()
89 static inline double GetHsvDisX(const HsvColor& hsv, double r) in GetHsvDisX() argument
91 return r * hsv.v * hsv.s * cos(hsv.h / ONE_HUNDRED_EIGHTY_ANGLE * PI_CIRCLE); in GetHsvDisX()
94 static inline double GetHsvDisY(const HsvColor& hsv, double r) in GetHsvDisY() argument
96 return r * hsv.v * hsv.s * sin(hsv.h / ONE_HUNDRED_EIGHTY_ANGLE * PI_CIRCLE); in GetHsvDisY()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/
H A Dcolor_picker.h95 void GenerateMorandiBackgroundColor(HSV& hsv) const;
96 void GenerateMorandiShadowColor(HSV& hsv) const;
99 ColorBrightnessMode DiscriminateDarkOrBrightColor(const HSV& hsv) const;
100 void ProcessToDarkColor(HSV& hsv) const;
101 void ProcessToBrightColor(HSV& hsv) const;
102 void AdjustToBasicColor(HSV& hsv, double basicS, double basicV) const;
106 void AdjustHSVToDefinedIterval(HSV& hsv) const;
107 uint32_t HSVtoRGB(HSV hsv) const;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_color_picker.h51 void AdjustHSVToDefinedIterval(HSV& hsv) const;
52 uint32_t HSVtoRGB(HSV hsv) const;
/ohos5.0/foundation/multimedia/av_codec/test/unittest/resources/video_res/test_cbr/720_1M/
H A Dvideo_7.ts3705 /�N</�I�G�hsv�2u������@�A���2wvn0�
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/resources/video_encoder/
H A D1280_720_nv.yuv Error!