From 119ccfe5da7a4e17347f0e9c99a935dd94bf0140 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 7 May 2023 15:27:32 -0400 Subject: [PATCH] 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. --- Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp | 1 - Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp index 2cbfc1c043..a312280429 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp @@ -309,7 +309,6 @@ static ErrorOr> decode_webp_chunk_VP8L(WebPLoadingContext& { VERIFY(context.first_chunk->type == FourCC("VP8L") || context.first_chunk->type == FourCC("VP8X")); VERIFY(vp8l_chunk.type == FourCC("VP8L")); - auto vp8l_header = TRY(decode_webp_chunk_VP8L_header(vp8l_chunk.data)); return decode_webp_chunk_VP8L_contents(vp8l_header); } diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h index d8e1ad8f41..76c17dcd36 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h @@ -19,7 +19,9 @@ struct VP8LHeader { 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 decode_webp_chunk_VP8L_header(ReadonlyBytes vp8l_data); -ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const& vp8l_header); + +ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const&); }