/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_color.h | 52 TestingColor(uint32_t rgba) in TestingColor() argument 53 : red_((rgba >> SIXTEEN) & COLOR_DEFAULT), green_((rgba >> EIGHT) & COLOR_DEFAULT), in TestingColor() 54 blue_((rgba >> ZERO) & COLOR_DEFAULT), alpha_(rgba >> TWENTY_FOUR) in TestingColor() 85 virtual void Color(uint32_t rgba) in Color() argument 87 alpha_ = rgba >> TWENTY_FOUR; in Color() 88 red_ = (rgba >> SIXTEEN) & 0xff; in Color() 89 green_ = (rgba >> EIGHT) & 0xff; in Color() 90 blue_ = (rgba >> ZER in Color() [all...] |
H A D | testing_brush.h | 31 explicit TestingBrush(int rgba) noexcept {};
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | color.h | 263 Rgba Gradient(Rgba rgba, float k) const in Gradient() 266 ret.red = red + (rgba.red - red) * k; in Gradient() 267 ret.green = green + (rgba.green - green) * k; in Gradient() 268 ret.blue = blue + (rgba.blue - blue) * k; in Gradient() 269 ret.alpha = alpha+ (rgba.alpha - alpha) * k; in Gradient() 281 Rgba& operator+=(const Rgba& rgba) in operator +=() 283 red += rgba.red; in operator +=() 284 green += rgba.green; in operator +=() 285 blue += rgba.blue; in operator +=() 286 alpha += rgba in operator +=() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_color.cpp | 26 RSColor::RSColor(uint32_t rgba) noexcept 28 alpha_ = static_cast<int16_t>(rgba & 0xFF); // 0xff byte mask 29 red_ = static_cast<int16_t>((rgba & 0xFF000000) >> 24); // 0xff000000 red mask, 24 red shift 30 green_ = static_cast<int16_t>((rgba & 0x00FF0000) >> 16); // 0x00ff0000 green mask, 16 green shift 31 blue_ = static_cast<int16_t>((rgba & 0x0000FF00) >> 8); // 0x0000ff00 blue mask, 8 blue shift 95 RSColor RSColor::FromRgbaInt(uint32_t rgba) in FromRgbaInt() argument 97 return RSColor(rgba); in FromRgbaInt()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_color.h | 30 explicit RSColor(uint32_t rgba) noexcept; 48 static RSColor FromRgbaInt(uint32_t rgba); 50 static RSColor FromArgbInt(uint32_t rgba);
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscolor_fuzzer/ |
H A D | rscolor_fuzzer.cpp | 119 uint32_t rgba = GetData<uint32_t>();
in DoHaveParameters() local 120 RSColor::FromRgbaInt(rgba);
in DoHaveParameters() 121 RSColor::FromArgbInt(rgba);
in DoHaveParameters() 122 RSColor::FromBgraInt(rgba);
in DoHaveParameters()
|
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_magnifier_shader_filter.cpp | 23 constexpr static uint8_t COLOR_CHANNEL = 4; // 4 len of rgba 227 void GEMagnifierShaderFilter::ConvertToRgba(uint32_t rgba, float* color, int tupleSize) in ConvertToRgba() argument 229 if (!color || tupleSize < 4) { // 4 len of rgba in ConvertToRgba() 232 int16_t alpha = static_cast<int16_t>(rgba & 0xFF); // 0xff byte mask in ConvertToRgba() 233 int16_t red = static_cast<int16_t>((rgba & 0xFF000000) >> 24); // 0xff000000 red mask, 24 red shift in ConvertToRgba() 234 int16_t green = static_cast<int16_t>((rgba & 0x00FF0000) >> 16); // 0x00ff0000 green mask, 16 green shift in ConvertToRgba() 235 int16_t blue = static_cast<int16_t>((rgba & 0x0000FF00) >> 8); // 0x0000ff00 blue mask, 8 blue shift in ConvertToRgba()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | color.cpp | 31 // Return alpha byte, red component, green component and blue component of color rgba. 32 Color::Color(ColorQuad rgba) noexcept 34 alpha_ = rgba >> 24; 35 red_ = (rgba >> 16) & 0xff; 36 green_ = (rgba >> 8) & 0xff; 37 blue_ = (rgba >> 0) & 0xff;
|
H A D | brush.cpp | 45 Brush::Brush(int rgba) noexcept 46 : color_(rgba),
|
H A D | pen.cpp | 37 Pen::Pen(int rgba) noexcept : Pen() in Pen() 39 brush_.SetColor(rgba); in Pen()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 108 v = std::clamp(v, 0.0f, 255.0f); // 255.0f rgba max value in SLRCast() 177 float rgba[4]{ .0f, .0f, .0f, .0f }; in SLRBox() 191 rgba[0] += ((color >> 24) & 0xFF) * w; // 24 rgba r in SLRBox() 192 rgba[1] += ((color >> 16) & 0xFF) * w; // 16 rgba g in SLRBox() 193 rgba[2] += ((color >> 8) & 0xFF) * w; // 2 8 rgba b in SLRBox() 194 rgba[3] += (color & 0xFF) * w; // 3 rgba in SLRBox() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/color_fuzzer/ |
H A D | color_fuzzer.cpp | 82 ColorQuad rgba = GetObject<ColorQuad>(); in ColorFuzzTest002() local 83 Color colorFour = Color(rgba); in ColorFuzzTest002()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/brush_fuzzer/ |
H A D | brush_fuzzer.cpp | 79 int rgba = GetObject<int>(); in BrushFuzzTestInner03() local 80 Brush brushFour = Brush(rgba); in BrushFuzzTestInner03()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/ |
H A D | pen_fuzzer.cpp | 107 int rgba = GetObject<int>(); in PenFuzzTestInner04() local 108 Pen PenThree = Pen(rgba); in PenFuzzTestInner04()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/ |
H A D | rsgpuoverdrawcanvaslistener_fuzzer.cpp | 239 int rgba = GetData<int>(); in DoDrawBackground() local 240 Drawing::Brush brush(rgba); in DoDrawBackground() 398 int rgba = GetData<int>(); in DoAttachBrush() local 399 Drawing::Brush brush(rgba); in DoAttachBrush()
|
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/include/ |
H A D | ge_magnifier_shader_filter.h | 47 // rgba 72 void ConvertToRgba(uint32_t rgba, float* color, int tupleSize);
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_arg.cpp | 550 param.rgba.alpha, param.rgba.red, param.rgba.green, param.rgba.blue).value); in DecodeDataForRGBA_USHORT_4444() 564 param.rgba.alpha, param.rgba.red, param.rgba.green, param.rgba.blue).value); in DecodeDataForRGBA_USHORT_5551()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_arg.h | 175 } rgba; member 182 } rgba; 194 } rgba; member 201 } rgba;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | brush.h | 37 Brush(int rgba) noexcept;
|
H A D | pen.h | 48 Pen(int rgba) noexcept;
|
H A D | color.h | 119 Color(ColorQuad rgba) noexcept;
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/ |
H A D | brush_test.cpp | 594 int rgba = 210; in HWTEST_F() local 595 auto brush = std::make_unique<Brush>(rgba); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderimage_fuzzer/ |
H A D | rsrenderimage_fuzzer.cpp | 330 uint32_t rgba = GetData<uint32_t>(); in RSShadowFuzzTest() local 331 Color color = Color(rgba); in RSShadowFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscpuoverdrawcanvaslistener_fuzzer/ |
H A D | rscpuoverdrawcanvaslistener_fuzzer.cpp | 239 int rgba = GetData<int>(); in DoDrawBackground() local 240 Drawing::Brush brush(rgba); in DoDrawBackground()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rspropertydrawableboundsgeometry_fuzzer/ |
H A D | rspropertydrawableboundsgeometry_fuzzer.cpp | 140 int rgba = GetData<int>();
in DoRSBorderDRRectDrawable() local 141 Pen pen(rgba);
in DoRSBorderDRRectDrawable()
|