ladybird/Ladybird
Jelle Raaijmakers b193fe658d LibGfx: Store alpha type information in Gfx::Bitmap
We use instances of `Gfx::Bitmap` to move pixel data all the way from
raw image bytes up to the Skia renderer. A vital piece of information
for correct blending of bitmaps is the alpha type, i.e. are we dealing
with premultiplied or unpremultiplied color values?

Premultiplied means that the RGB colors have been multiplied with the
associated alpha value, i.e. RGB(255, 255, 255) with an alpha of 2% is
stored as RGBA(5, 5, 5, 2%).

Unpremultiplied means that the original RGB colors are stored,
regardless of the alpha value. I.e. RGB(255, 255, 255) with an alpha of
2% is stored as RGBA(255, 255, 255, 2%).

It is important to know how the color data is stored in a
`Gfx::Bitmap`, because correct blending depends on knowing the alpha
type: premultiplied blending uses `S + (1 - A) * D`, while
unpremultiplied blending uses `A * S + (1 - A) * D`.

This adds the alpha type information to `Gfx::Bitmap` across the board.
It isn't used anywhere yet.
2024-08-07 18:51:12 +02:00
..
Android LibGfx: Store alpha type information in Gfx::Bitmap 2024-08-07 18:51:12 +02:00
AppKit UI/AppKit: Add a debug menu item to dump RequestServer connection info 2024-08-03 15:53:07 -04:00
cmake UI/Qt: Add a debug menu item to dump RequestServer connection info 2024-08-03 15:53:07 -04:00
Icons Ladybird: Update macOS app iconset 2024-07-30 12:38:44 +02:00
ImageDecoder LibWebView+UI: Allow debugging any helper process 2024-08-01 15:40:49 +02:00
Qt UI/Qt: Add a debug menu item to dump RequestServer connection info 2024-08-03 15:53:07 -04:00
RequestServer LibWebView+UI: Allow debugging any helper process 2024-08-01 15:40:49 +02:00
WebContent LibWebView+WebContent: Add a --force-cpu-painting option 2024-08-01 23:26:45 +01:00
WebDriver WebDriver: Add a --force-cpu-painting option 2024-08-01 23:26:45 +01:00
WebWorker LibWebView+UI: Allow debugging any helper process 2024-08-01 15:40:49 +02:00
.gitignore Ladybird: Add new template Kotlin Android application without Qt 2023-09-03 11:38:51 +02:00
CMakeLists.txt LibWebView+UI: Migrate Ladybird's command line flags to LibWebView 2024-08-01 11:38:42 +02:00
default.nix nix: Add python3 to nix devshell 2024-06-03 15:09:58 -06:00
DefaultSettings.h Revert "Ladybird: Load about:blank when opening a new tab" 2024-07-04 11:55:45 +02:00
FontPlugin.cpp Ladybird+LibCore+Meta: Update font paths and names for Android 2024-07-05 14:27:25 -06:00
FontPlugin.h LibWeb: Make FontPlugin::generic_font_name() return FlyString 2023-09-06 11:29:03 -04:00
HelperProcess.cpp LibWebView+WebContent: Add a --force-cpu-painting option 2024-08-01 23:26:45 +01:00
HelperProcess.h LibWebView+UI: Migrate Ladybird's command line flags to LibWebView 2024-08-01 11:38:42 +02:00
ImageCodecPlugin.cpp Everywhere: Transition ImageDecoder to be single-instance, owned by UI 2024-06-26 16:09:33 -06:00
ImageCodecPlugin.h Everywhere: Transition ImageDecoder to be single-instance, owned by UI 2024-06-26 16:09:33 -06:00
Info.plist Ladybird: Switch macOS plist information to use ladybird.org 2024-07-20 23:03:45 +02:00
MachPortServer.cpp Ladybird: Set Mach port server namespace to ladybird.org 2024-07-20 23:03:45 +02:00
MachPortServer.h Everywhere: Use IOSurface as backing store on macOS 2024-06-24 13:09:08 +02:00
Utilities.cpp UI: Rename s_serenity_resource_root to s_ladybird_resource_root 2024-07-21 15:59:25 -06:00
Utilities.h UI: Rename s_serenity_resource_root to s_ladybird_resource_root 2024-07-21 15:59:25 -06:00