/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | pixel_format_utils.cpp | 46 ret.alpha = in.alpha ? 1 : 0; in ARGB8888ToARGB1555() 64 ret.alpha = in.alpha ? 0xFF : 0x0; in ARGB1555ToARGB8888()
|
/third_party/skia/docs/examples/ |
H A D | Canvas_saveLayer_4.cpp | 17 SkPaint alpha; in REG_FIDDLE() local 18 alpha.setAlphaf(0.3); in REG_FIDDLE() 35 canvas->saveLayer(nullptr, &alpha); in REG_FIDDLE() 38 // the final output, we have two different shades of purple. The layer's alpha made the in REG_FIDDLE() 47 // the first row because the alpha of the layer is not applied until the layer is restored. in REG_FIDDLE() 48 canvas->saveLayer(nullptr, &alpha); in REG_FIDDLE()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | library-reference-8.js | 7 declare var alpha: { a: string }; 10 /// <reference types="alpha" /> 14 /// <reference types="alpha" /> 16 var x: string = alpha.a + beta.b; 21 /// <reference types="alpha" />
23 var x = alpha.a + beta.b;
|
/third_party/skia/third_party/externals/freetype/src/sdf/ |
H A D | ftbsdf.c | 58 * The original 8SED algorithm discards the pixels' alpha values, 60 * glyph. This paper takes advantage of those alpha values and 75 * example, if the pixel's alpha value is 0.5, then we can safely 92 * alpha/coverage value is greater than 0.5 then it is 'inside' (and 188 * alpha :: 198 FT_Byte alpha; member 263 * surrounded by a completely black pixel (zero alpha), and the current 301 if ( to_check->alpha == 0 ) \ 321 if ( dm->alpha == 0 ) in bsdf_is_edge() 324 if ( dm->alpha > in bsdf_is_edge() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | beta_distribution_test.cc | 98 for (TypeParam alpha : kValues) { in TYPED_TEST() 101 INFO, absl::StrFormat("Smoke test for Beta(%a, %a)", alpha, beta)); in TYPED_TEST() 103 param_type param(alpha, beta); in TYPED_TEST() 104 absl::beta_distribution<TypeParam> before(alpha, beta); in TYPED_TEST() 105 EXPECT_EQ(before.alpha(), param.alpha()); in TYPED_TEST() 126 EXPECT_NE(before.alpha(), after.alpha()); in TYPED_TEST() 133 EXPECT_EQ(before.alpha(), after.alpha()); in TYPED_TEST() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dvdsubdec.c | 41 uint8_t alpha[256]; member 48 static void yuv_a_to_rgba(const uint8_t *ycbcr, const uint8_t *alpha, uint32_t *rgba, int num_values) in yuv_a_to_rgba() argument 61 *rgba++ = ((unsigned)*alpha++ << 24) | (r << 16) | (g << 8) | b; in yuv_a_to_rgba() 158 uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha; in guess_palette() local 163 | ((alpha[i] * 17U) << 24); in guess_palette() 172 if (alpha[i] != 0 && !color_used[colormap[i]]) { in guess_palette() 184 if (alpha[i] != 0) { in guess_palette() 190 rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17U) << 24); in guess_palette() 195 ((alpha[ in guess_palette() 224 uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha; decode_dvd_subtitles() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | input_button_component.cpp | 131 uint8_t alpha = OPA_OPAQUE; in SetBackgroundColor() local 132 if (!GetStyleColorValue(&style, color, alpha)) { in SetBackgroundColor() 136 pressedOpacityValue_ = alpha; in SetBackgroundColor() 143 uint8_t alpha = OPA_OPAQUE; in SetColor() local 144 if (GetStyleColorValue(&style, color, alpha)) { in SetColor() 146 button_.SetLabelStyle(STYLE_TEXT_OPA, alpha); in SetColor()
|
H A D | slider_component.cpp | 86 uint8_t alpha = OPA_OPAQUE; in ApplyPrivateStyle() local 91 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle() 95 sliderView_.SetBackgroundStyle(STYLE_BACKGROUND_OPA, alpha); in ApplyPrivateStyle() 100 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle() 104 sliderView_.SetForegroundStyle(STYLE_BACKGROUND_OPA, alpha); in ApplyPrivateStyle() 109 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
|
H A D | text_component.cpp | 128 uint8_t alpha = OPA_OPAQUE; in ApplyPrivateStyle() local 129 if (GetStyleColorValue(styleItem, color, alpha)) { in ApplyPrivateStyle() 144 uint8_t alpha = OPA_OPAQUE; in ApplyPrivateStyle() local 145 if (GetStyleColorValue(styleItem, color, alpha)) { in ApplyPrivateStyle() 160 uint8_t alpha = OPA_OPAQUE; in ApplyPrivateStyle() local 161 if (GetStyleColorValue(styleItem, color, alpha)) { in ApplyPrivateStyle() 269 uint8_t alpha = OPA_OPAQUE; in SetTextColor() local 270 if (GetStyleColorValue(styleItem, color, alpha)) { in SetTextColor() 272 label.SetStyle(STYLE_TEXT_OPA, alpha); in SetTextColor()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/pen_fuzzer/ |
H A D | pen_fuzzer.cpp | 31 scalar alpha = GetObject<scalar>(); in PenFuzzTestInner01() local 36 alpha, in PenFuzzTestInner01() 100 uint32_t alpha = GetObject<uint32_t>(); in PenFuzzTestInner04() local 104 Color color(alpha, red, blue, green); in PenFuzzTestInner04() 151 int alpha = 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 | 134 uint8_t alpha = pixelMap->GetARGB32ColorA(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() 139 EXPECT_EQ(255, alpha); in HWTEST_F() 185 uint8_t alpha = pixelMap->GetARGB32ColorA(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() 187 EXPECT_EQ(255, alpha); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 96 // no alpha specified, set alpha to 0xff in FromString() 112 // no alpha specified, set alpha to 0xff 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 = red, .alpha = alpha } 297 uint8_t alpha [all...] |
/third_party/skia/third_party/externals/libpng/ |
H A D | pngread.c | 628 * image has alpha or transparency, and png_handle_alpha()[*] has been 640 * alpha channel or a transparency chunk, you must provide a buffer for 910 /* Read the entire image. If the image has an alpha channel or a tRNS 1347 /* Strip alpha bytes from the input data without combining with in png_read_png() 1379 * Expand paletted or RGB images with transparency to full alpha in png_read_png() 1438 /* Invert the alpha channel from opacity to transparency */ in png_read_png() 1526 #define PNG_CMAP_GA 1 /* Process GA data to a color-map with alpha */ 1981 png_uint_32 foreground, int foreground_encoding, png_uint_32 alpha, in png_colormap_compose() 1986 * file and alpha are 8-bit values. The (output) encoding will always be in png_colormap_compose() 1992 /* The alpha i in png_colormap_compose() 1980 png_colormap_compose(png_image_read_control *display, png_uint_32 foreground, int foreground_encoding, png_uint_32 alpha, png_uint_32 background, int encoding) png_colormap_compose() argument 2017 png_create_colormap_entry(png_image_read_control *display, png_uint_32 ip, png_uint_32 red, png_uint_32 green, png_uint_32 blue, png_uint_32 alpha, int encoding) png_create_colormap_entry() argument 2742 png_uint_32 alpha = 51 * a; png_image_read_colormap() local 3278 unsigned int alpha = *inrow++; png_image_read_and_map() local 3306 png_byte alpha = *inrow++; png_image_read_and_map() local 3330 unsigned int alpha = inrow[3]; png_image_read_and_map() local 3592 png_byte alpha = inrow[channels]; png_image_read_composite() local 3749 png_byte alpha = inrow[1]; png_image_read_background() local 3794 png_byte alpha = inrow[1]; png_image_read_background() local 3890 png_uint_16 alpha = inrow[1]; png_image_read_background() local [all...] |
/third_party/skia/include/core/ |
H A D | SkUnPreMultiply.h | 22 // index this table with alpha [0..255] 27 static Scale GetScale(U8CPU alpha) { in GetScale() argument 28 SkASSERT(alpha <= 255); in GetScale() 29 return gTable[alpha]; in GetScale()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_overlay.c | 166 /* overlay formats contains alpha, for avoiding conversion with alpha information loss */ in query_formats() 339 // calculate the unpremultiplied alpha, applying the general equation: 340 // alpha = alpha_overlay / ( (alpha_main + alpha_overlay) - (alpha_main * alpha_overlay) ) 360 uint8_t alpha; ///< the amount of overlay to blend on to main in blend_slice_packed_rgb() local 389 alpha = S[sa]; in blend_slice_packed_rgb() 391 // if the main channel has an alpha channel, alpha has to be calculated in blend_slice_packed_rgb() 392 // to create an un-premultiplied (straight) alpha value in blend_slice_packed_rgb() 393 if (main_has_alpha && alpha ! in blend_slice_packed_rgb() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/pngminus/ |
H A D | png2pnm.c | 35 BOOL raw, BOOL alpha); 47 BOOL alpha = FALSE; in main() local 63 alpha = TRUE; in main() 68 fprintf (stderr, "Error: cannot create alpha-channel file %s\n", in main() 122 if (png2pnm (fp_rd, fp_wr, fp_al, raw, alpha) == FALSE) in main() 133 /* close alpha file */ in main() 134 if (alpha) in main() 155 " -a[lpha] <file>.pgm write PNG alpha channel as pgm-file\n"); in usage() 164 BOOL raw, BOOL alpha) in png2pnm() 233 /* transform transparency maps into full alpha in png2pnm() 163 png2pnm(FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL alpha) png2pnm() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
H A D | pngshim.c | 41 multiply_alpha( unsigned int alpha, in multiply_alpha() argument 44 unsigned int temp = alpha * color + 0x80; in multiply_alpha() 138 unsigned int alpha = base[3]; in premultiply_data() local 141 if ( alpha == 0 ) in premultiply_data() 151 if ( alpha != 0xFF ) in premultiply_data() 153 red = multiply_alpha( alpha, red ); in premultiply_data() 154 green = multiply_alpha( alpha, green ); in premultiply_data() 155 blue = multiply_alpha( alpha, blue ); in premultiply_data() 161 base[3] = (unsigned char)alpha; in premultiply_data() 369 /* transform transparency to alpha */ in FT_LOCAL_DEF() [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_base.h | 108 span->alpha = (colors1->alpha+colors2->alpha) >= MAX_COLOR_NUM ? in Generate() 109 MAX_COLOR_NUM:(colors1->alpha+colors2->alpha); in Generate()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_proxy_render_node.cpp | 80 void RSProxyRenderNode::SetContextAlpha(float alpha) in SetContextAlpha() argument 82 if (contextAlpha_ == alpha) { in SetContextAlpha() 85 contextAlpha_ = alpha; in SetContextAlpha() 87 target->SetContextAlpha(alpha, false); in SetContextAlpha() 91 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetContextAlpha>(targetId_, alpha); in SetContextAlpha()
|
/third_party/ffmpeg/libavcodec/arm/ |
H A D | h264dsp_init_arm.c | 28 void ff_h264_v_loop_filter_luma_neon(uint8_t *pix, ptrdiff_t stride, int alpha, 30 void ff_h264_h_loop_filter_luma_neon(uint8_t *pix, ptrdiff_t stride, int alpha, 32 void ff_h264_v_loop_filter_chroma_neon(uint8_t *pix, ptrdiff_t stride, int alpha, 34 void ff_h264_h_loop_filter_chroma_neon(uint8_t *pix, ptrdiff_t stride, int alpha, 36 void ff_h264_h_loop_filter_chroma422_neon(uint8_t *pix, ptrdiff_t stride, int alpha,
|
/third_party/skia/samplecode/ |
H A D | SampleAARectModes.cpp | 84 for (int alpha = 0; alpha < 4; ++alpha) { 96 SkScalar dy = drawCell(canvas, gModes[i], gAlphaValue[alpha & 1], 97 gAlphaValue[alpha & 2]);
|
H A D | SampleHairModes.cpp | 84 for (int alpha = 0; alpha < 4; ++alpha) { 96 gAlphaValue[alpha & 1], 97 gAlphaValue[alpha & 2]);
|
/third_party/skia/src/codec/ |
H A D | SkMasks.cpp | 136 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks() 142 (masks.red & masks.alpha) | in CreateMasks() 144 (masks.green & masks.alpha) | in CreateMasks() 145 (masks.blue & masks.alpha) ) != 0) { in CreateMasks() 152 process_mask(masks.alpha)); in CreateMasks()
|
/third_party/skia/third_party/externals/libpng/contrib/tools/ |
H A D | cvtcolor.c | 125 double alpha = c[channels-1]; in main() local 127 if (alpha > 0) in main() 128 for (i=0; i<channels-1; ++i) c[i] /= alpha; in main() 156 c[3] = c[1]; /* alpha, if present */ in main() 165 double alpha = c[channels-1]; in main() local 166 for (i=0; i<channels-1; ++i) c[i] *= alpha; in main()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | distribution_test_util_test.cc | 39 // Log using the Wolfram-alpha function name & parameters. in TEST() 50 const double alpha; member 100 // domain of the input, x, then BetaIncompleteInv(alpha, p, q) may return an 101 // essentially arbitrary value where BetaIncomplete(x, p, q) =~ alpha. 123 // Log using the Wolfram-alpha function name & parameters. in TEST() 124 EXPECT_NEAR(value, data.alpha, 1e-12) in TEST() 126 << "] (expected=" << data.alpha << ") -> " << value; in TEST() 133 absl::random_internal::BetaIncompleteInv(data.p, data.q, data.alpha); in TEST() 135 // Log using the Wolfram-alpha function name & parameters. in TEST() 137 << " InverseBetaRegularized[" << data.alpha << ", " << dat in TEST() [all...] |