/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | color_fill.h | 26 reinterpret_cast<Color32*>(d)->blue = (b2) << 3; \ 30 reinterpret_cast<Color32*>(d)->blue = (b2); \ 36 reinterpret_cast<Color24*>(d)->blue = (b2) << 3; \ 40 reinterpret_cast<Color24*>(d)->blue = (b2); \ 46 reinterpret_cast<Color16*>(d)->blue = (b2) >> 3; \ 50 reinterpret_cast<Color16*>(d)->blue = (b2); \ 95 COLOR_BLEND_RGBA(p->red, p->green, p->blue, p->alpha, sTmp->red, sTmp->green, sTmp->blue, alpha); \ 98 COLOR_BLEND_RGBA(p->red, p->green, p->blue, p->alpha, sTmp->red, sTmp->green, sTmp->blue, [all...] |
H A D | draw_utils.cpp | 447 COLOR_FILL_COVER(dstTmp, mode, fillColor.red, fillColor.green, fillColor.blue, ARGB8888); in FillAreaWithSoftWare() 509 void DrawUtils::BlendLerpPix(uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, in BlendLerpPix() argument 513 mNeonBlendPipeLine.NeonLerpARGB8888(color, red, green, blue, alpha, cover); in BlendLerpPix() 516 void DrawUtils::BlendLerpPix(uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha) in BlendLerpPix() argument 519 mNeonBlendPipeLine.NeonLerpARGB8888(color, red, green, blue, alpha); in BlendLerpPix() 534 void DrawUtils::BlendLerpPix(uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, in BlendLerpPix() argument 538 mNeonBlendPipeLine.NeonLerpARGB8888(color, red, green, blue, alpha, covers); in BlendLerpPix() 541 void DrawUtils::BlendPreLerpPix(uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, in BlendPreLerpPix() argument 545 mNeonBlendPipeLine.NeonPrelerpARGB8888(color, red, green, blue, alpha, cover); in BlendPreLerpPix() 548 void DrawUtils::BlendPreLerpPix(uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_ argument 565 BlendPreLerpPix(uint8_t *color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, uint8_t *covers) BlendPreLerpPix() argument [all...] |
/foundation/graphic/graphic_utils_lite/test/ |
H A D | color_unit_test.cpp | 41 EXPECT_EQ(color.blue, 0); in HWTEST_F() 57 EXPECT_EQ(color.blue, 0); in HWTEST_F() 72 color.blue = 0; in HWTEST_F() 90 color16.blue = 0; in HWTEST_F() 106 color32.blue = 0; in HWTEST_F() 123 EXPECT_EQ(white.blue, 0xFF); in HWTEST_F() 138 EXPECT_EQ(silver.blue, 0xC0); in HWTEST_F() 153 EXPECT_EQ(gray.blue, 0x80); in HWTEST_F() 168 EXPECT_EQ(black.blue, 0x00); in HWTEST_F() 183 EXPECT_EQ(red.blue, in HWTEST_F() 314 ColorType blue = Color::Blue(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | color.h | 75 uint16_t blue : 5; member 90 uint8_t blue; member 103 uint8_t blue; member 135 * Color order: red, green, blue, transparency. 144 float blue; member 147 Rgba() : red(0), green(0), blue(0), alpha(0) {} in Rgba() 152 * @param Red value, green value, blue value, alpha transparency. 156 Rgba(float red, float green, float blue, float alpha = 1.0f) in Rgba() 157 : red(red), green(green), blue(blue), alph in Rgba() 443 uint8_t blue; global() member [all...] |
H A D | pixel_format_utils.h | 24 uint16_t blue : 5; member 34 uint32_t blue : 8; member
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/color_fuzzer/ |
H A D | color_fuzzer.cpp | 40 uint32_t blue = GetObject<uint32_t>(); in ColorFuzzTest001() local 46 color.SetRgb(red, green, blue, alpha); in ColorFuzzTest001() 72 uint32_t blue = GetObject<uint32_t>(); in ColorFuzzTest002() local 78 colorOne.SetBlue(blue); in ColorFuzzTest002() 81 Color colorThree = Color(red, green, blue, alpha); in ColorFuzzTest002() 102 float blue = GetObject<float>(); in ColorFuzzTest003() local 107 color.SetBlueF(blue); in ColorFuzzTest003() 114 color.SetRgbF(red, green, blue, alpha); in ColorFuzzTest003() 132 uint32_t blue = GetObject<uint32_t>(); in ColorFuzzTest004() local 135 color.ColorQuadSetARGB(alpha, red, green, blue); in ColorFuzzTest004() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | color.cpp | 27 ret.blue = (static_cast<uint16_t>(c1.blue) * mix + (static_cast<uint16_t>(c2.blue) * (255 ^ mix))) >> 8; in GetMixColor() 44 rColor.blue = b8 >> 3; // 3: shift right 3 places in GetColorFromRGBA() 59 ret.blue = color.blue << 3; /* (2^8 - 1)/(2^5 - 1) = 255/31 = 8 */ in ColorTo32() 78 ret.blue = color.blue << 3; /* (2^8 - 1)/(2^5 - 1) = 255/31 = 8 */ in ColorTo32() 94 rColor.blue = color.blue >> in ColorTo16() [all...] |
H A D | pixel_format_utils.cpp | 55 ret.blue = in.blue >> 3; in ARGB8888ToARGB1555() 73 ret.blue = in.blue << 3; in ARGB1555ToARGB8888()
|
/foundation/arkui/ui_lite/frameworks/render/ |
H A D | render_pixfmt_rgba_blend.h | 36 * @param color color,red,green,blue,alpha Color Component,cover Coverage. 41 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, uint8_t* covers) in NeonBlendPix() 43 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha, covers); in NeonBlendPix() 48 * @param color color,red,green,blue,alpha Color Component,cover Coverage. 53 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, uint8_t cover) in NeonBlendPix() 55 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha, cover); in NeonBlendPix() 60 * @param color color,red,green,blue,alpha Color Component 65 uint8_t* color, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha) in NeonBlendPix() 67 DrawUtils::GetInstance()->BlendLerpPix(color, red, green, blue, alpha); in NeonBlendPix() 82 * @param color color,red,green,blue,alph [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | marquee_tdd_test.cpp | 42 if (colorRGB.red != colorRGBSet.red || colorRGB.green != colorRGBSet.green || colorRGB.blue != colorRGBSet.blue || in ComponentMarqueeStyleSetTest006() 49 (colorRGB.blue == colorRGBSet.blue) && (colorRGB.full == colorRGBSet.full)); in ComponentMarqueeStyleSetTest006() 88 if (colorRGB.red != colorRGBSet.red || colorRGB.green != colorRGBSet.green || colorRGB.blue != colorRGBSet.blue || in ComponentMarqueeStyleSetTest007() 95 (colorRGB.blue == colorRGBSet.blue) && (colorRGB.full == colorRGBSet.full)); in ComponentMarqueeStyleSetTest007() 134 if (colorRGB.red != colorRGBSet.red || colorRGB.green != colorRGBSet.green || colorRGB.blue != colorRGBSet.blue || in ComponentMarqueeStyleSetTest008() [all...] |
H A D | div_tdd_test.cpp | 721 if (tempColor.blue == Color::GetColorFromRGB(0, 0, 0).blue && in ComponentDivStyleSetTest023() 728 EXPECT_TRUE(tempColor.blue == Color::GetColorFromRGB(0, 0, 0).blue); in ComponentDivStyleSetTest023() 745 if (tempColor.blue == GetRGBColor(color).blue && tempColor.red == GetRGBColor(color).red && in ComponentDivStyleSetTest023() 751 EXPECT_TRUE(tempColor.blue == GetRGBColor(color).blue); in ComponentDivStyleSetTest023() 794 if (tempColor.blue == GetRGBColor(borderColorNormal).blue in ComponentDivStyleSetTest024() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_color_test.cpp | 49 int16_t blue = 12; in HWTEST_F() local 51 RSColor color(red, green, blue, alpha); in HWTEST_F() 82 int16_t blue = 12; in HWTEST_F() local 84 RSColor color(red, green, blue, alpha); in HWTEST_F() 89 RSColor ohterColor1(red1, green, blue, alpha); in HWTEST_F() 93 RSColor ohterColor2(red2, green, blue, alpha); in HWTEST_F() 113 int16_t blue = 12; in HWTEST_F() local 114 color = std::make_shared<RSColor>(red, green, blue); in HWTEST_F() 129 int16_t blue = 12; in HWTEST_F() local 131 RSColor color(red, green, blue, alph in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 122 auto blue = static_cast<uint8_t>(std::stoi(matches[3])); // blue value. in FromString() local 123 return FromRGB(red, green, blue); in FromString() 131 auto blue = static_cast<uint8_t>(std::stoi(matches[3])); in FromString() local 133 return FromRGBO(red, green, blue, opacity); in FromString() 139 { "blue", Color(0xff0000ff) }, in FromString() 237 Color Color::FromARGB(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue) 241 .argb = { .alpha = alpha, .red = red, .green = green, .blue = blue } 243 .argb = { .blue [all...] |
H A D | color.h | 35 uint8_t blue; member 39 uint8_t blue; 62 static Color FromARGB(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue); 63 static Color FromRGBO(uint8_t red, uint8_t green, uint8_t blue, double opacity); 64 static Color FromRGB(uint8_t red, uint8_t green, uint8_t blue); 127 return colorValue_.argb.blue; in GetBlue() 207 LinearColor(int16_t alpha, int16_t red, int16_t green, int16_t blue) in LinearColor() argument 208 : alpha_(alpha), red_(red), green_(green), blue_(blue) in LinearColor()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/ |
H A D | item_property_display_box.cpp | 33 colourVolume_.blue.x = reader.Read16();
in ParseContent() 34 colourVolume_.blue.y = reader.Read16();
in ParseContent() 50 writer.Write16(colourVolume_.blue.x);
in Write() 51 writer.Write16(colourVolume_.blue.y);
in Write()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/ |
H A D | pen_fuzzer.cpp | 30 scalar blue = GetObject<scalar>(); in PenFuzzTestInner01() local 35 blue, in PenFuzzTestInner01() 102 uint32_t blue = GetObject<uint32_t>(); in PenFuzzTestInner04() local 104 Color color(alpha, red, blue, green); in PenFuzzTestInner04() 150 int blue = GetObject<int>(); in PenFuzzTest() local 154 pen.SetARGB(red, gree, blue, alpha); in PenFuzzTest()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/ |
H A D | image_source_gif_test.cpp | 137 uint8_t blue = pixelMap->GetARGB32ColorB(color); in HWTEST_F() local 138 IMAGE_LOGD("point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, blue); in HWTEST_F() 142 EXPECT_EQ(19, blue); in HWTEST_F() 184 uint8_t blue = pixelMap->GetARGB32ColorB(color); in HWTEST_F() local 186 IMAGE_LOGD("point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha); in HWTEST_F() 190 EXPECT_EQ(19, blue); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_base.h | 106 span->blue = (colors1->blue+colors2->blue) >= MAX_COLOR_NUM ? in Generate() 107 MAX_COLOR_NUM:(colors1->blue+colors2->blue); in Generate()
|
H A D | fill_pattern_rgba.h | 67 fillColor.blue = 0; in NoColor() 143 color->blue = colorType.blue; in ChangeColor()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/maskcmdlist_fuzzer/ |
H A D | maskcmdlist_fuzzer.cpp | 46 uint32_t blue = GetObject<uint32_t>(); in MaskCmdListFuzzTest001() local 48 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest001() 100 uint32_t blue = GetObject<uint32_t>(); in MaskCmdListFuzzTest002() local 102 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest002() 140 uint32_t blue = GetObject<uint32_t>(); in MaskCmdListFuzzTest003() local 142 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest003() 166 uint32_t blue = GetObject<uint32_t>(); in MaskCmdListFuzzTest004() local 168 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest004() 222 uint32_t blue = GetObject<uint32_t>(); in MaskCmdListFuzzTest005() local 224 Color color = Color(red, green, blue, alph in MaskCmdListFuzzTest005() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_color.cpp | 18 uint32_t OH_Drawing_ColorSetArgb(uint32_t alpha, uint32_t red, uint32_t green, uint32_t blue) in OH_Drawing_ColorSetArgb() argument 20 // alpha left-shifted 24, red left-shifted 16, green left-shifted 8, blue left-shifted 0 in OH_Drawing_ColorSetArgb() 21 return ((alpha & 0xffu) << 24) | ((red & 0xffu) << 16) | ((green & 0xffu) << 8) | ((blue & 0xffu) << 0); in OH_Drawing_ColorSetArgb()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_arg.h | 155 uint8_t blue; member 159 uint8_t blue; 172 uint8_t blue : 4; member 180 uint8_t blue : 4; 191 uint8_t blue : 5; member 199 uint8_t blue : 5; 209 uint8_t blue : 5; member 217 uint8_t blue : 5; 609 inline static ColorParam FromARGB(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue) in FromARGB() argument 613 .argb = { .alpha = alpha, .red = red, .green = green, .blue in FromARGB() 621 FromRGBO(uint8_t red, uint8_t green, uint8_t blue, double opacity) FromRGBO() argument 626 FromRGB(uint8_t red, uint8_t green, uint8_t blue) FromRGB() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_color.cpp | 31 blue_ = static_cast<int16_t>((rgba & 0x0000FF00) >> 8); // 0x0000ff00 blue mask, 8 blue shift 34 RSColor::RSColor(int16_t red, int16_t green, int16_t blue) noexcept : RSColor(red, green, blue, UINT8_MAX) {} in RSColor() 36 RSColor::RSColor(int16_t red, int16_t green, int16_t blue, int16_t alpha) noexcept 41 blue_ = blue; 92 ((static_cast<uint32_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))) << 8); // 8 blue shift in AsRgbaInt() 119 ((static_cast<uint32_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))) << 24); // 24 blue shift in AsBgraInt() 157 void RSColor::SetBlue(int16_t blue) in SetBlue() argument 159 blue_ = blue; in SetBlue() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_color.h | 31 RSColor(int16_t red, int16_t green, int16_t blue) noexcept; 32 RSColor(int16_t red, int16_t green, int16_t blue, int16_t alpha) noexcept; 58 void SetBlue(int16_t blue);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcolor_fuzzer/ |
H A D | ndkcolor_fuzzer.cpp | 49 uint32_t blue = GetObject<uint32_t>(); in NativeDrawingColorTest() local 55 OH_Drawing_BrushSetColor(brush, OH_Drawing_ColorSetArgb(alpha, red, green, blue)); in NativeDrawingColorTest()
|