-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a few RGB-aware set & blend methods to the blitters #1680
Commits on Aug 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c924cf8 - Browse repository at this point
Copy the full SHA c924cf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac358c - Browse repository at this point
Copy the full SHA 4ac358cView commit details -
(Jokes aside, we tend to prefer that syntatcit sugar (and string methods) as opposed to calling string.fn(obj) explicitly).
Configuration menu - View commit details
-
Copy full SHA for ca873ab - Browse repository at this point
Copy the full SHA ca873abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54c4833 - Browse repository at this point
Copy the full SHA 54c4833View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40ba4c4 - Browse repository at this point
Copy the full SHA 40ba4c4View commit details -
A dumb MUL blend works extremely well for blakc text.
It'll get funkier with colors, but, oh, well.
Configuration menu - View commit details
-
Copy full SHA for 8f48dd0 - Browse repository at this point
Copy the full SHA 8f48dd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e1dd38 - Browse repository at this point
Copy the full SHA 5e1dd38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3106499 - Browse repository at this point
Copy the full SHA 3106499View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d41552 - Browse repository at this point
Copy the full SHA 3d41552View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bccbda - Browse repository at this point
Copy the full SHA 9bccbdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dddf95 - Browse repository at this point
Copy the full SHA 3dddf95View commit details -
Start rationalizing the C BB implementations
Replace BB_blend_rect_color w/ BB_blend_RGB_multiply_rect
Configuration menu - View commit details
-
Copy full SHA for b5d241b - Browse repository at this point
Copy the full SHA b5d241bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d9be6d - Browse repository at this point
Copy the full SHA 8d9be6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37d3be4 - Browse repository at this point
Copy the full SHA 37d3be4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32a2a5b - Browse repository at this point
Copy the full SHA 32a2a5bView commit details -
We need it from inside a Document class, and having it split between ReaderHighlights and BB is weird anyway
Configuration menu - View commit details
-
Copy full SHA for 4cf224d - Browse repository at this point
Copy the full SHA 4cf224dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0a281 - Browse repository at this point
Copy the full SHA 7b0a281View commit details -
Configuration menu - View commit details
-
Copy full SHA for 523751f - Browse repository at this point
Copy the full SHA 523751fView commit details -
Address a 10-year old TODO, and properly rename dimRect & lightenRect
methods... (Into lightenRect & darkenRect, respectively). c.f, 2cb2e40
Configuration menu - View commit details
-
Copy full SHA for a3352e6 - Browse repository at this point
Copy the full SHA a3352e6View commit details -
Keep revamping the whole thing so it actually has a chance of working
with the Lua blitter...
Configuration menu - View commit details
-
Copy full SHA for ce230f2 - Browse repository at this point
Copy the full SHA ce230f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9329b83 - Browse repository at this point
Copy the full SHA 9329b83View commit details -
Configuration menu - View commit details
-
Copy full SHA for f613324 - Browse repository at this point
Copy the full SHA f613324View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee50150 - Browse repository at this point
Copy the full SHA ee50150View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f02247 - Browse repository at this point
Copy the full SHA 0f02247View commit details -
Implement setPixelColorizeRGB32 in the Lua blitter
Requires a few bendRGB32 shims for Color <= 8A, as the usual blend methods assume Color8 input.
Configuration menu - View commit details
-
Copy full SHA for b00c2e6 - Browse repository at this point
Copy the full SHA b00c2e6View commit details -
And implement setPixelMultiply in the Lua blitter
Which is the one we actually care about, as we don't actually have any colorblitFromRGB32 callers ;).
Configuration menu - View commit details
-
Copy full SHA for 609ffaf - Browse repository at this point
Copy the full SHA 609ffafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f7c6be - Browse repository at this point
Copy the full SHA 9f7c6beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cd0a45 - Browse repository at this point
Copy the full SHA 1cd0a45View commit details -
Simplify setPixelColorizeRGB32
Implement a grayscale and a color one, like other setters Instead of implementing a full array of per-color type blend methods
Configuration menu - View commit details
-
Copy full SHA for 341f05e - Browse repository at this point
Copy the full SHA 341f05eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9a3cad - Browse repository at this point
Copy the full SHA c9a3cadView commit details -
Configuration menu - View commit details
-
Copy full SHA for bad4ea5 - Browse repository at this point
Copy the full SHA bad4ea5View commit details -
And round the component values to 16 shades per component.
Configuration menu - View commit details
-
Copy full SHA for 7d457d3 - Browse repository at this point
Copy the full SHA 7d457d3View commit details -
Make sure we cast colors to the right type first
We often need a copy anyway, so take the opportunity to make this safer ;)
Configuration menu - View commit details
-
Copy full SHA for 6e8277a - Browse repository at this point
Copy the full SHA 6e8277aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c6534d - Browse repository at this point
Copy the full SHA 5c6534dView commit details -
Drop gray from the highlight colors, and let colorFromName return
nil
This allows us to fairly easily make gray behave as our legacy grayscale highlights, honoring the user's opacity value.
Configuration menu - View commit details
-
Copy full SHA for a7710f9 - Browse repository at this point
Copy the full SHA a7710f9View commit details
Commits on Aug 26, 2024
-
Matches what I did for BB_color_blit_from_RGB32
Configuration menu - View commit details
-
Copy full SHA for 94ffa8e - Browse repository at this point
Copy the full SHA 94ffa8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f5dfb - Browse repository at this point
Copy the full SHA 53f5dfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0942857 - Browse repository at this point
Copy the full SHA 0942857View commit details -
Fix a truckload of -Wtype-limits warnings
These are unsigned, they can't be negative ;).
Configuration menu - View commit details
-
Copy full SHA for 171c10d - Browse repository at this point
Copy the full SHA 171c10dView commit details -
Increase the alignment constraint on Kobo MTK
Apparently, 8 wasn't enough, the highlight style dialog was still cutoff :/
Configuration menu - View commit details
-
Copy full SHA for bd56c8c - Browse repository at this point
Copy the full SHA bd56c8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99f302e - Browse repository at this point
Copy the full SHA 99f302eView commit details -
Oh, no, I'd just forgotten that we enforced different constraints when
dithering. So, rejig that so we can tweak that on a per-device basis, too.
Configuration menu - View commit details
-
Copy full SHA for 824488c - Browse repository at this point
Copy the full SHA 824488cView commit details
Commits on Aug 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24b5f0f - Browse repository at this point
Copy the full SHA 24b5f0fView commit details