mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00: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
|
@ -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 a new issue