1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:08:10 +00:00
serenity/Userland/Libraries/LibGfx
Lucas CHOLLET 841e359341 LibGfx: Correctly handle JPEG image with restart markers
Restart markers are supposed to be applied every restart interval.
However, in these loops macroblocks are counted taking the luma sampling
factor into consideration. Meaning that we need to correct this factor
when testing if we should reset the DC.

Also, the decoder was discarding the first byte of every scan with a set
restart interval, as `0 % n == 0` is always true.
2023-02-19 07:59:58 +00:00
..
Filters LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
Font LibTextCodec+Everywhere: Make TextCodec::decoder_for() take a StringView 2023-02-15 12:48:26 -05:00
ICC LibGfx: Implement serialization of MeasurementTagData 2023-02-19 00:01:44 +01:00
AffineTransform.cpp Meta+Userland: Pass Gfx::IntSize by value 2022-12-07 11:48:27 +01:00
AffineTransform.h Meta+Userland: Pass Gfx::IntSize by value 2022-12-07 11:48:27 +01:00
AntiAliasingPainter.cpp LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
AntiAliasingPainter.h LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
Bitmap.cpp LibGfx: Remove Bitmap::load_from_fd_and_close() 2023-02-17 10:36:03 +01:00
Bitmap.h LibGfx: Rename format name from jpg to jpeg 2023-02-18 23:56:24 +01:00
BitmapMixer.cpp LibGfx: Add BitmapMixer 2022-01-04 21:41:14 +02:00
BitmapMixer.h LibGfx: Add BitmapMixer 2022-01-04 21:41:14 +02:00
BMPLoader.cpp LibGfx: Minorly simplify BMPLoader's decode_bmp_dib() 2023-02-18 01:45:12 +01:00
BMPLoader.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
BMPWriter.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
BMPWriter.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CharacterBitmap.h Libraries: Make CharacterBitmap instances at compile-time 2022-03-04 17:41:08 +01:00
ClassicStylePainter.cpp LibGUI+LibGfx: Let Desktop::the() set widget effects 2022-08-09 12:08:21 +02:00
ClassicStylePainter.h LibGUI+LibGfx: Let Desktop::the() set widget effects 2022-08-09 12:08:21 +02:00
ClassicWindowTheme.cpp LibGfx: Round menu font size up when calculating menubar height 2023-01-06 12:02:21 +01:00
ClassicWindowTheme.h LibGfx: Make ClassicWindowTheme menubar heights respect the font size 2023-01-03 15:25:02 +01:00
CMakeLists.txt LibGfx: Rename JPGLoader to JPEGLoader 2023-02-18 23:56:24 +01:00
Color.cpp LibGfx: Move Color::mixed_with() inline 2023-02-18 17:10:04 +01:00
Color.h LibGfx: Add ALWAYS_INLINE to Color::mixed_with()/interpolate() 2023-02-18 17:10:04 +01:00
CursorParams.cpp Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
CursorParams.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
DDSLoader.cpp Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
DDSLoader.h LibGfx: Port DDSLoader to AK::Stream 2023-02-08 17:55:36 +00:00
DisjointRectSet.h LibGfx+Everywhere: Make DisjointRectSet work for non-int Rects 2022-10-27 13:06:33 +02:00
FillPathImplementation.h LibGfx: Update fill_path() to support taking a PaintStyle 2023-01-22 18:15:52 +01:00
Forward.h LibGfx: Add paint styles and allow gradients to be used as them 2023-01-22 18:15:52 +01:00
Gamma.h LibGfx: Remove a workaround for clang before 11 2022-10-04 23:35:07 +01:00
GIFLoader.cpp Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
GIFLoader.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
GradientPainting.cpp Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
Gradients.h LibWeb+LibGfx: Migrate (most of) the CSS gradient painting to LibGfx 2023-01-10 10:25:58 +01:00
ICOLoader.cpp Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
ICOLoader.h LibGfx: Return ErrorOr<> in ICOLoader internal functions 2023-02-04 18:02:03 -07:00
ImageDecoder.cpp LibGfx: Rename JPGLoader to JPEGLoader 2023-02-18 23:56:24 +01:00
ImageDecoder.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
JPEGLoader.cpp LibGfx: Correctly handle JPEG image with restart markers 2023-02-19 07:59:58 +00:00
JPEGLoader.h LibGfx: Rename JPGLoader to JPEGLoader 2023-02-18 23:56:24 +01:00
Line.h LibGfx: Add small convenience functions for Lines and AA Painter 2023-01-26 10:37:26 +00:00
Matrix.h Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
Matrix3x3.h LibGfx: Add Matrix3x3 2021-12-30 14:24:29 +01:00
Matrix4x4.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Orientation.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Painter.cpp LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
Painter.h LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
PaintStyle.h Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
Palette.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Palette.h LibGUI+LibGfx: Add Tray ColorRole helpers to Palette 2023-01-29 18:27:34 +00:00
Path.cpp LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
Path.h LibGfx+LibWeb: Store radii as FloatSize rather than FloatPoint 2023-02-10 23:33:16 +01:00
PBMLoader.cpp LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PBMLoader.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
PGMLoader.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
PGMLoader.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
PNGLoader.cpp LibGfx: Make PNGImageDecoderPlugin::icc_data() return data if present 2023-01-28 12:42:19 +01:00
PNGLoader.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
PNGShared.h Libraries: Add missing includes, add namespace qualifiers 2022-09-18 13:27:24 -04:00
PNGWriter.cpp AK: Remove try_ prefix from FixedArray creation functions 2023-01-28 22:41:36 +01:00
PNGWriter.h LibGfx: Propagate errors that occur internally in PNGWriter 2022-12-08 13:01:11 +00:00
Point.cpp LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Point.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
PortableImageLoaderCommon.h LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
PortableImageMapLoader.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
PPMLoader.cpp LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PPMLoader.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
QOILoader.cpp Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
QOILoader.h Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
QOIWriter.cpp LibGfx: Move QOIWriter implementation-only things into cpp file 2023-02-15 20:32:08 +01:00
QOIWriter.h LibGfx: Move QOIWriter implementation-only things into cpp file 2023-02-15 20:32:08 +01:00
Quad.h LibGfx: Add Gfx::Quad<T> to represent arbitrary quadrilaterals 2022-04-07 17:06:02 +02:00
Rect.cpp LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Rect.h LibGfx: Make Rect::align_within() correct for TopCenter and BottomCenter 2023-01-09 19:54:26 +01:00
ShareableBitmap.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
ShareableBitmap.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Size.cpp LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
Size.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
StandardCursor.h Base+WindowServer+LibGfx: Add new DragCopy Cursor 2022-08-31 17:29:44 +01:00
Streamer.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
StylePainter.cpp LibGUI+LibGfx: Let Desktop::the() set widget effects 2022-08-09 12:08:21 +02:00
StylePainter.h LibGUI+LibGfx: Let Desktop::the() set widget effects 2022-08-09 12:08:21 +02:00
SystemTheme.cpp LibGfx: Support color schemes 2022-12-31 04:20:59 -07:00
SystemTheme.h LibGfx: Support color schemes 2022-12-31 04:20:59 -07:00
TextAlignment.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TextAttributes.h LibGfx: Expand TextAttributes with more information about underlining 2022-01-23 15:48:27 +03:30
TextDirection.cpp Everywhere: Fix a bunch of typos 2021-05-17 17:48:55 +01:00
TextDirection.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TextElision.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TextLayout.cpp LibGfx: Make text painting better at aligning vector fonts vertically 2023-01-06 12:02:21 +01:00
TextLayout.h LibGfx: Make text painting better at aligning vector fonts vertically 2023-01-06 12:02:21 +01:00
TextWrapping.h Userland: Move text wrapping/elision into the new TextLayout :^) 2021-07-26 21:14:39 +04:30
TGALoader.cpp LibGfx: Fix sign-compare compile error in TGALoader 2023-02-19 00:37:51 +01:00
TGALoader.h LibGfx: Add a method to ImageDecoderPlugin for reading ICC data 2023-01-27 17:26:48 +00:00
Triangle.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Triangle.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Vector2.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Vector3.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Vector4.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
VectorN.h Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
WindowTheme.cpp Libraries: Use default constructors/destructors in LibGfx 2022-03-17 17:23:49 +00:00
WindowTheme.h LibGfx+LibGUI+WindowServer+Apps+Demos: Replace ToolWindows 2022-08-25 13:28:50 +02:00