mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
LibGfx+JPGLoader: Print failure message for progressive JPEGs
This commit is contained in:
parent
2df69317f1
commit
4924b86b2a
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,7 @@
|
||||||
#define JPG_EOI 0xFFD9
|
#define JPG_EOI 0xFFD9
|
||||||
#define JPG_RST 0XFFDD
|
#define JPG_RST 0XFFDD
|
||||||
#define JPG_SOF0 0XFFC0
|
#define JPG_SOF0 0XFFC0
|
||||||
|
#define JPG_SOF2 0xFFC2
|
||||||
#define JPG_SOI 0XFFD8
|
#define JPG_SOI 0XFFD8
|
||||||
#define JPG_SOS 0XFFDA
|
#define JPG_SOS 0XFFDA
|
||||||
#define JPG_COM 0xFFFE
|
#define JPG_COM 0xFFFE
|
||||||
|
@ -438,6 +439,9 @@ static inline bool is_valid_marker(const Marker marker)
|
||||||
case JPG_SOI:
|
case JPG_SOI:
|
||||||
case JPG_SOS:
|
case JPG_SOS:
|
||||||
return true;
|
return true;
|
||||||
|
case JPG_SOF2:
|
||||||
|
dbg() << "Progressive JPEGs are not supported yet. Decoder will fail!";
|
||||||
|
return false;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue