ladybird/Ladybird/Android
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
..
gradle/wrapper Ladybird: Update Android build to work with current LibWebView/LibCore 2024-05-06 09:31:32 -06:00
src LibGfx: Store alpha type information in Gfx::Bitmap 2024-08-07 18:51:12 +02:00
build.gradle.kts LibAudio: Implement PlaybackStream for Android using Oboe 2024-07-21 16:09:36 -06:00
BuildLagomTools.sh Android: Pass new Lagom Tool install options to BuildLagomTools.sh 2024-07-11 09:17:21 -06:00
CMakeLists.txt Android: Update various file paths in CMake 2024-07-05 14:27:25 -06:00
gradle.properties Ladybird/Android: Move gradle files to Ladybird/Android directory 2023-09-15 14:18:52 -06:00
gradlew Ladybird/Android: Move gradle files to Ladybird/Android directory 2023-09-15 14:18:52 -06:00
proguard-rules.pro Ladybird: Add new template Kotlin Android application without Qt 2023-09-03 11:38:51 +02:00
settings.gradle.kts Ladybird/Android: Move gradle files to Ladybird/Android directory 2023-09-15 14:18:52 -06:00
vcpkg_android.cmake Android: Integrate vcpkg with Gradle build 2024-07-05 14:27:25 -06:00