mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibGfx/WebPWriter: Write correct alpha use hint in animation VP8L header
Since we now compute this for free, might as well fill it in. As far as I can tell, no observable behavior difference anywhere.
This commit is contained in:
parent
2d80a5c6ca
commit
0ae36b9524
Notes:
sideshowbarker
2024-07-17 02:29:45 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/0ae36b9524 Pull-request: https://github.com/SerenityOS/serenity/pull/24468 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/LucasChollet ✅
@ -319,7 +319,8 @@ ErrorOr<void> WebPAnimationWriter::add_frame(Bitmap& bitmap, int duration_ms, In
|
||||
chunk.disposal_method = ANMFChunkHeader::DisposalMethod::DoNotDispose;
|
||||
|
||||
TRY(write_ANMF_chunk_header(m_stream, chunk, compute_VP8L_chunk_size(vp8l_data_bytes)));
|
||||
TRY(write_VP8L_chunk(m_stream, bitmap.width(), bitmap.height(), true, vp8l_data_bytes));
|
||||
bool alpha_is_used_hint = !is_fully_opaque;
|
||||
TRY(write_VP8L_chunk(m_stream, bitmap.width(), bitmap.height(), alpha_is_used_hint, vp8l_data_bytes));
|
||||
|
||||
TRY(update_size_in_header());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user