1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:37:35 +00:00

LibGfx: Rename JPGLoader to JPEGLoader

The patch also contains modifications on several classes, functions or
files that are related to the `JPGLoader`.

Renaming include:
 - JPGLoader{.h, .cpp}
 - JPGImageDecoderPlugin
 - JPGLoadingContext
 - JPG_DEBUG
 - decode_jpg
 - FuzzJPGLoader.cpp
 - Few string literals or texts
This commit is contained in:
Lucas CHOLLET 2023-02-18 16:09:16 -05:00 committed by Andreas Kling
parent ab298ca106
commit 856d0202f2
14 changed files with 118 additions and 118 deletions

View file

@ -96,7 +96,7 @@ set(ISO9660_DEBUG ON)
set(ISO9660_VERY_DEBUG ON)
set(ITEM_RECTS_DEBUG ON)
set(JOB_DEBUG ON)
set(JPG_DEBUG ON)
set(JPEG_DEBUG ON)
set(JS_BYTECODE_DEBUG ON)
set(JS_MODULE_DEBUG ON)
set(KEYBOARD_DEBUG ON)

View file

@ -32,7 +32,7 @@ add_simple_fuzzer(FuzzGzipCompression LibCompress)
add_simple_fuzzer(FuzzGzipDecompression LibCompress)
add_simple_fuzzer(FuzzICCProfile LibGfx)
add_simple_fuzzer(FuzzICOLoader LibGfx)
add_simple_fuzzer(FuzzJPGLoader LibGfx)
add_simple_fuzzer(FuzzJPEGLoader LibGfx)
add_simple_fuzzer(FuzzMatroskaReader LibVideo)
add_simple_fuzzer(FuzzMD5 LibCrypto)
add_simple_fuzzer(FuzzMP3Loader LibAudio)

View file

@ -4,13 +4,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGfx/JPGLoader.h>
#include <LibGfx/JPEGLoader.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
auto decoder_or_error = Gfx::JPGImageDecoderPlugin::create({ data, size });
auto decoder_or_error = Gfx::JPEGImageDecoderPlugin::create({ data, size });
if (decoder_or_error.is_error())
return 0;
auto decoder = decoder_or_error.release_value();