/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | color_fill.h | 25 reinterpret_cast<Color32*>(d)->green = (g2) << 2; \ 29 reinterpret_cast<Color32*>(d)->green = (g2); \ 35 reinterpret_cast<Color24*>(d)->green = (g2) << 2; \ 39 reinterpret_cast<Color24*>(d)->green = (g2); \ 45 reinterpret_cast<Color16*>(d)->green = (g2) >> 2; \ 49 reinterpret_cast<Color16*>(d)->green = (g2); \ 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, sTm [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_ 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 | 40 EXPECT_EQ(color.green, 0); in HWTEST_F() 56 EXPECT_EQ(color.green, 0); in HWTEST_F() 71 color.green = 0; in HWTEST_F() 89 color16.green = 0; in HWTEST_F() 105 color32.green = 0; in HWTEST_F() 122 EXPECT_EQ(white.green, 0xFF); in HWTEST_F() 137 EXPECT_EQ(silver.green, 0xC0); in HWTEST_F() 152 EXPECT_EQ(gray.green, 0x80); in HWTEST_F() 167 EXPECT_EQ(black.green, 0x00); in HWTEST_F() 182 EXPECT_EQ(red.green, in HWTEST_F() 254 ColorType green = Color::Green(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | color.h | 77 uint16_t green : 6; member 92 uint8_t green; member 105 uint8_t green; member 135 * Color order: red, green, blue, transparency. 143 float green; 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), blu in Rgba() 442 uint8_t green; global() member [all...] |
H A D | pixel_format_utils.h | 25 uint16_t green : 5; member 35 uint32_t green : 8; member
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/color_fuzzer/ |
H A D | color_fuzzer.cpp | 41 uint32_t green = GetObject<uint32_t>(); in ColorFuzzTest001() local 46 color.SetRgb(red, green, blue, alpha); in ColorFuzzTest001() 73 uint32_t green = GetObject<uint32_t>(); in ColorFuzzTest002() local 77 colorOne.SetGreen(green); in ColorFuzzTest002() 81 Color colorThree = Color(red, green, blue, alpha); in ColorFuzzTest002() 103 float green = GetObject<float>(); in ColorFuzzTest003() local 106 color.SetGreenF(green); in ColorFuzzTest003() 114 color.SetRgbF(red, green, blue, alpha); in ColorFuzzTest003() 133 uint32_t green = GetObject<uint32_t>(); in ColorFuzzTest004() local 135 color.ColorQuadSetARGB(alpha, red, green, blu in ColorFuzzTest004() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | color.cpp | 25 ret.green = (static_cast<uint16_t>(c1.green) * mix + (static_cast<uint16_t>(c2.green) * (255 ^ mix))) >> 8; in GetMixColor() 45 rColor.green = g8 >> 2; // 2: shift right 2 places in GetColorFromRGBA() 58 ret.green = color.green << 2; /* (2^8 - 1)/(2^6 - 1) = 255/63 = 4 */ in ColorTo32() 77 ret.green = color.green << 2; /* (2^8 - 1)/(2^6 - 1) = 255/63 = 4 */ in ColorTo32() 93 rColor.green = color.green >> in ColorTo16() [all...] |
H A D | pixel_format_utils.cpp | 54 ret.green = in.green >> 3; in ARGB8888ToARGB1555() 72 ret.green = in.green << 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,blu [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() 48 EXPECT_TRUE((colorRGB.red == colorRGBSet.red) && (colorRGB.green == colorRGBSet.green) && in ComponentMarqueeStyleSetTest006() 88 if (colorRGB.red != colorRGBSet.red || colorRGB.green != colorRGBSet.green || colorRGB.blue != colorRGBSet.blue || in ComponentMarqueeStyleSetTest007() 94 EXPECT_TRUE((colorRGB.red == colorRGBSet.red) && (colorRGB.green == colorRGBSet.green) && in ComponentMarqueeStyleSetTest007() 134 if (colorRGB.red != colorRGBSet.red || colorRGB.green != colorRGBSet.green || colorRG in ComponentMarqueeStyleSetTest008() [all...] |
H A D | div_tdd_test.cpp | 723 tempColor.green == Color::GetColorFromRGB(0, 0, 0).green) { in ComponentDivStyleSetTest023() 730 EXPECT_TRUE(tempColor.green == Color::GetColorFromRGB(0, 0, 0).green); in ComponentDivStyleSetTest023() 746 tempColor.green == GetRGBColor(color).green) { in ComponentDivStyleSetTest023() 753 EXPECT_TRUE(tempColor.green == GetRGBColor(color).green); in ComponentDivStyleSetTest023() 795 tempColor.green == GetRGBColor(borderColorNormal).green) { in ComponentDivStyleSetTest024() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_color_test.cpp | 48 int16_t green = 11; in HWTEST_F() local 51 RSColor color(red, green, blue, alpha); in HWTEST_F() 81 int16_t green = 11; 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() 112 int16_t green = 11; in HWTEST_F() local 114 color = std::make_shared<RSColor>(red, green, blue); in HWTEST_F() 128 int16_t green = 11; in HWTEST_F() local 131 RSColor color(red, green, blu in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 121 auto green = static_cast<uint8_t>(std::stoi(matches[2])); // green value. in FromString() local 123 return FromRGB(red, green, blue); in FromString() 130 auto green = static_cast<uint8_t>(std::stoi(matches[2])); in FromString() local 133 return FromRGBO(red, green, blue, opacity); in FromString() 141 { "green", Color(0xff00ff00) }, 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 = blue, .green [all...] |
H A D | color.h | 34 uint8_t green; member 40 uint8_t green; 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); 122 return colorValue_.argb.green; in GetGreen() 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 | 31 colourVolume_.green.x = reader.Read16();
in ParseContent() 32 colourVolume_.green.y = reader.Read16();
in ParseContent() 48 writer.Write16(colourVolume_.green.x);
in Write() 49 writer.Write16(colourVolume_.green.y);
in Write()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/ |
H A D | image_source_gif_test.cpp | 136 uint8_t green = pixelMap->GetARGB32ColorG(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() 141 EXPECT_EQ(63, green); in HWTEST_F() 183 uint8_t green = pixelMap->GetARGB32ColorG(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() 189 EXPECT_EQ(63, green); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_base.h | 104 span->green = (colors1->green+colors2->green) >= MAX_COLOR_NUM ? in Generate() 105 MAX_COLOR_NUM:(colors1->green+colors2->green); in Generate()
|
H A D | fill_pattern_rgba.h | 66 fillColor.green = 0; in NoColor() 142 color->green = colorType.green; in ChangeColor()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/maskcmdlist_fuzzer/ |
H A D | maskcmdlist_fuzzer.cpp | 47 uint32_t green = GetObject<uint32_t>(); in MaskCmdListFuzzTest001() local 48 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest001() 101 uint32_t green = GetObject<uint32_t>(); in MaskCmdListFuzzTest002() local 102 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest002() 141 uint32_t green = GetObject<uint32_t>(); in MaskCmdListFuzzTest003() local 142 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest003() 167 uint32_t green = GetObject<uint32_t>(); in MaskCmdListFuzzTest004() local 168 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest004() 223 uint32_t green = GetObject<uint32_t>(); in MaskCmdListFuzzTest005() local 224 Color color = Color(red, green, blu 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 | 154 uint8_t green; member 160 uint8_t green; 173 uint8_t green : 4; member 179 uint8_t green : 4; 192 uint8_t green : 5; member 198 uint8_t green : 5; 210 uint8_t green : 6; member 216 uint8_t green : 6; 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 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 | 30 green_ = static_cast<int16_t>((rgba & 0x00FF0000) >> 16); // 0x00ff0000 green mask, 16 green 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 40 green_ = green; 91 ((static_cast<uint32_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX))) << 16) | // 16 green shift in AsRgbaInt() 104 ((static_cast<uint32_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX))) << 8) | // 8 green shift in AsArgbInt() 118 ((static_cast<uint32_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX))) << 16) | // 16 green shift in AsBgraInt() 162 void RSColor::SetGreen(int16_t green) in SetGreen() argument [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; 59 void SetGreen(int16_t green);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcolor_fuzzer/ |
H A D | ndkcolor_fuzzer.cpp | 50 uint32_t green = GetObject<uint32_t>(); in NativeDrawingColorTest() local 55 OH_Drawing_BrushSetColor(brush, OH_Drawing_ColorSetArgb(alpha, red, green, blue)); in NativeDrawingColorTest()
|
/foundation/window/window_manager_lite/services/wms/ |
H A D | lite_win.cpp | 203 dst->green = (tmpSrc->green * alpha / OPA_OPAQUE) >> 3; in FlushWithModeBlend() 208 COLOR_BLEND_RGB(dst->red, dst->green, dst->blue, in FlushWithModeBlend() 209 (tmpSrc->red) >> 3, (tmpSrc->green) >> 3, (tmpSrc->blue) >> 3, alpha); in FlushWithModeBlend() 216 COLOR_BLEND_RGBA(dst->red, dst->green, dst->blue, dst->alpha, in FlushWithModeBlend() 217 tmpSrc->red, tmpSrc->green, tmpSrc->blue, alpha); in FlushWithModeBlend()
|