/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | color_fill.h | 24 reinterpret_cast<Color32*>(d)->red = (r2) << 3; \ 28 reinterpret_cast<Color32*>(d)->red = (r2); \ 34 reinterpret_cast<Color24*>(d)->red = (r2) << 3; \ 38 reinterpret_cast<Color24*>(d)->red = (r2); \ 44 reinterpret_cast<Color16*>(d)->red = (r2) >> 3; \ 48 reinterpret_cast<Color16*>(d)->red = (r2); \ 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, 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_ 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 | 39 EXPECT_EQ(color.red, 0); in HWTEST_F() 55 EXPECT_EQ(color.red, 0); in HWTEST_F() 70 color.red = 0; in HWTEST_F() 88 color16.red = 0; in HWTEST_F() 104 color32.red = 0; in HWTEST_F() 121 EXPECT_EQ(white.red, 0xFF); in HWTEST_F() 136 EXPECT_EQ(silver.red, 0xC0); in HWTEST_F() 151 EXPECT_EQ(gray.red, 0x80); in HWTEST_F() 166 EXPECT_EQ(black.red, 0x00); in HWTEST_F() 179 ColorType red in HWTEST_F() local [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | color.h | 79 uint16_t red : 5; member 94 uint8_t red; member 107 uint8_t red; member 135 * Color order: red, green, blue, transparency. 142 float red; member 147 Rgba() : red(0), green(0), blue(0), alpha(0) {} in Rgba() 156 Rgba(float red, float green, float blue, float alpha = 1.0f) in Rgba() 157 : red(red), green(green), blue(blue), alpha(alpha) {} in Rgba() 167 : red(colo in Rgba() 441 uint8_t red; global() member [all...] |
H A D | pixel_format_utils.h | 26 uint16_t red : 5; member 36 uint32_t red : 8; member
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/color_fuzzer/ |
H A D | color_fuzzer.cpp | 39 uint32_t red = GetObject<uint32_t>(); in ColorFuzzTest001() local 46 color.SetRgb(red, green, blue, alpha); in ColorFuzzTest001() 71 uint32_t red = GetObject<uint32_t>(); in ColorFuzzTest002() local 76 colorOne.SetRed(red); in ColorFuzzTest002() 81 Color colorThree = Color(red, green, blue, alpha); in ColorFuzzTest002() 101 float red = GetObject<float>(); in ColorFuzzTest003() local 105 color.SetRedF(red); in ColorFuzzTest003() 114 color.SetRgbF(red, green, blue, alpha); in ColorFuzzTest003() 131 uint32_t red = GetObject<uint32_t>(); in ColorFuzzTest004() local 135 color.ColorQuadSetARGB(alpha, red, gree in ColorFuzzTest004() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | color.cpp | 23 ret.red = (static_cast<uint16_t>(c1.red) * mix + (static_cast<uint16_t>(c2.red) * (255 ^ mix))) >> 8; in GetMixColor() 43 rColor.red = r8 >> 3; // 3: shift right 3 places in GetColorFromRGBA() 57 ret.red = color.red << 3; /* (2^8 - 1)/(2^5 - 1) = 255/31 = 8 */ in ColorTo32() 76 ret.red = color.red << 3; /* (2^8 - 1)/(2^5 - 1) = 255/31 = 8 */ in ColorTo32() 92 rColor.red = color.red >> in ColorTo16() [all...] |
H A D | pixel_format_utils.cpp | 53 ret.red = in.red >> 3; in ARGB8888ToARGB1555() 71 ret.red = in.red << 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,gree [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 || colorRG in ComponentMarqueeStyleSetTest008() [all...] |
H A D | div_tdd_test.cpp | 722 tempColor.red == Color::GetColorFromRGB(0, 0, 0).red && in ComponentDivStyleSetTest023() 729 EXPECT_TRUE(tempColor.red == Color::GetColorFromRGB(0, 0, 0).red); in ComponentDivStyleSetTest023() 745 if (tempColor.blue == GetRGBColor(color).blue && tempColor.red == GetRGBColor(color).red && in ComponentDivStyleSetTest023() 752 EXPECT_TRUE(tempColor.red == GetRGBColor(color).red); in ComponentDivStyleSetTest023() 794 if (tempColor.blue == GetRGBColor(borderColorNormal).blue && tempColor.red == GetRGBColor(borderColorNormal).red in ComponentDivStyleSetTest024() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 120 auto red = static_cast<uint8_t>(std::stoi(matches[1])); // red value. in FromString() local 123 return FromRGB(red, green, blue); in FromString() 129 auto red = static_cast<uint8_t>(std::stoi(matches[1])); in FromString() local 133 return FromRGBO(red, green, blue, opacity); in FromString() 142 { "red", Color(0xffff0000) }, 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 = green, .red [all...] |
H A D | color.h | 33 uint8_t red; member 41 uint8_t red; 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); 117 return colorValue_.argb.red; in GetRed() 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/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_color_test.cpp | 47 int16_t red = 10; in HWTEST_F() local 51 RSColor color(red, green, blue, alpha); in HWTEST_F() 80 int16_t red = 10; in HWTEST_F() local 84 RSColor color(red, green, blue, alpha); in HWTEST_F() 111 int16_t red = 10; in HWTEST_F() local 114 color = std::make_shared<RSColor>(red, green, blue); in HWTEST_F() 127 int16_t red = 10; in HWTEST_F() local 131 RSColor color(red, green, blue, alpha); in HWTEST_F()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/ |
H A D | item_property_display_box.cpp | 29 colourVolume_.red.x = reader.Read16();
in ParseContent() 30 colourVolume_.red.y = reader.Read16();
in ParseContent() 46 writer.Write16(colourVolume_.red.x);
in Write() 47 writer.Write16(colourVolume_.red.y);
in Write()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/ |
H A D | pen_fuzzer.cpp | 28 scalar red = GetObject<scalar>(); in PenFuzzTestInner01() local 33 red, in PenFuzzTestInner01() 101 uint32_t red = GetObject<uint32_t>(); in PenFuzzTestInner04() local 104 Color color(alpha, red, blue, green); in PenFuzzTestInner04() 148 int red = 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 | 135 uint8_t red = pixelMap->GetARGB32ColorR(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() 140 EXPECT_EQ(244, red); in HWTEST_F() 182 uint8_t red = pixelMap->GetARGB32ColorR(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() 188 EXPECT_EQ(244, red); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_base.h | 102 span->red = (colors1->red+colors2->red) >= MAX_COLOR_NUM ? in Generate() 103 MAX_COLOR_NUM:(colors1->red+colors2->red); in Generate()
|
H A D | fill_pattern_rgba.h | 65 fillColor.red = 0; in NoColor() 141 color->red = colorType.red; in ChangeColor()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/maskcmdlist_fuzzer/ |
H A D | maskcmdlist_fuzzer.cpp | 45 uint32_t red = GetObject<uint32_t>(); in MaskCmdListFuzzTest001() local 48 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest001() 99 uint32_t red = GetObject<uint32_t>(); in MaskCmdListFuzzTest002() local 102 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest002() 139 uint32_t red = GetObject<uint32_t>(); in MaskCmdListFuzzTest003() local 142 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest003() 165 uint32_t red = GetObject<uint32_t>(); in MaskCmdListFuzzTest004() local 168 Color color = Color(red, green, blue, alpha); in MaskCmdListFuzzTest004() 221 uint32_t red = GetObject<uint32_t>(); in MaskCmdListFuzzTest005() local 224 Color color = Color(red, gree 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 | 153 uint8_t red; member 161 uint8_t red; 174 uint8_t red : 4; member 178 uint8_t red : 4; 193 uint8_t red : 5; member 197 uint8_t red : 5; 211 uint8_t red : 5; member 215 uint8_t red : 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 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 | 29 red_ = static_cast<int16_t>((rgba & 0xFF000000) >> 24); // 0xff000000 red mask, 24 red 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 39 red_ = red; 90 ((static_cast<uint32_t>(std::clamp<int16_t>(red_, 0, UINT8_MAX))) << 24) | // 24 red shift in AsRgbaInt() 103 ((static_cast<uint32_t>(std::clamp<int16_t>(red_, 0, UINT8_MAX))) << 16) | // 16 red shift in AsArgbInt() 117 ((static_cast<uint32_t>(std::clamp<int16_t>(red_, 0, UINT8_MAX))) << 8) | // 8 red shift in AsBgraInt() 167 void RSColor::SetRed(int16_t red) in SetRed() 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; 60 void SetRed(int16_t red);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcolor_fuzzer/ |
H A D | ndkcolor_fuzzer.cpp | 48 uint32_t red = GetObject<uint32_t>(); in NativeDrawingColorTest() local 55 OH_Drawing_BrushSetColor(brush, OH_Drawing_ColorSetArgb(alpha, red, green, blue)); in NativeDrawingColorTest()
|