mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:47:35 +00:00
LibGfx/WebP: Minor cosmetical changes in WebPLoaderLossless.h
Add a comment, remove a parameter name that doesn't add anything, and remove a weird newline in WebPLoader.cpp too. No behavior change.
This commit is contained in:
parent
eda2a2f5da
commit
119ccfe5da
2 changed files with 3 additions and 2 deletions
|
@ -309,7 +309,6 @@ static ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L(WebPLoadingContext&
|
||||||
{
|
{
|
||||||
VERIFY(context.first_chunk->type == FourCC("VP8L") || context.first_chunk->type == FourCC("VP8X"));
|
VERIFY(context.first_chunk->type == FourCC("VP8L") || context.first_chunk->type == FourCC("VP8X"));
|
||||||
VERIFY(vp8l_chunk.type == FourCC("VP8L"));
|
VERIFY(vp8l_chunk.type == FourCC("VP8L"));
|
||||||
|
|
||||||
auto vp8l_header = TRY(decode_webp_chunk_VP8L_header(vp8l_chunk.data));
|
auto vp8l_header = TRY(decode_webp_chunk_VP8L_header(vp8l_chunk.data));
|
||||||
return decode_webp_chunk_VP8L_contents(vp8l_header);
|
return decode_webp_chunk_VP8L_contents(vp8l_header);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,9 @@ struct VP8LHeader {
|
||||||
ReadonlyBytes lossless_data;
|
ReadonlyBytes lossless_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Parses the header data in a VP8L chunk. Pass the payload of a `VP8L` chunk, after the tag and after the tag's data size.
|
||||||
ErrorOr<VP8LHeader> decode_webp_chunk_VP8L_header(ReadonlyBytes vp8l_data);
|
ErrorOr<VP8LHeader> decode_webp_chunk_VP8L_header(ReadonlyBytes vp8l_data);
|
||||||
ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_contents(VP8LHeader const& vp8l_header);
|
|
||||||
|
ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_contents(VP8LHeader const&);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue