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

JPGLoader: Move bogus JPEGs to a different directory

This commit is contained in:
devashish 2020-11-29 17:07:43 +05:30 committed by Andreas Kling
parent f107c70652
commit 4d7ba50dc7
6 changed files with 1 additions and 4 deletions

View file

@ -6,8 +6,6 @@
</head> </head>
<body> <body>
<div> <div>
<h3>Issue-3439</h3>
<img alt="lena" src="jpgsuite_files/offending-3439.jpg"/><br>
<h3>Non-subsampled Lena</h3> <br> <h3>Non-subsampled Lena</h3> <br>
<img alt="lena" src="jpgsuite_files/non-subsampled-lena.jpg"/> <br> <img alt="lena" src="jpgsuite_files/non-subsampled-lena.jpg"/> <br>
<h3>Chroma Horizontally Halved Lena</h3> <br> <h3>Chroma Horizontally Halved Lena</h3> <br>

View file

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

View file

@ -36,7 +36,7 @@
#include <LibGfx/JPGLoader.h> #include <LibGfx/JPGLoader.h>
#include <math.h> #include <math.h>
#define JPG_DEBUG //#define JPG_DEBUG
#define JPG_INVALID 0X0000 #define JPG_INVALID 0X0000
@ -209,7 +209,6 @@ struct JPGLoadingContext {
u8 vsample_factor { 0 }; u8 vsample_factor { 0 };
u8 component_count { 0 }; u8 component_count { 0 };
HashMap<u8, ComponentSpec> components; HashMap<u8, ComponentSpec> components;
// ComponentSpec components[3];
RefPtr<Gfx::Bitmap> bitmap; RefPtr<Gfx::Bitmap> bitmap;
u16 dc_reset_interval { 0 }; u16 dc_reset_interval { 0 };
Vector<HuffmanTableSpec> dc_tables; Vector<HuffmanTableSpec> dc_tables;