mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibGfx+LibWeb: Add JPEG decoder and integrate with LibWeb
This patch adds support for JPEG decoding. The JPEG decoder is capable of handling standard 2x1 horizontal, 2x1 vertical and quartered chroma subsampling. The implemented Inverse DCT performs with a decent speed. As of interchange formats, since we tend to ignore the metadata in APPn markers, the decoder can handle any format compatible with JFIF, which includes EXIFs and sometimes WebMs too. The decoder does not support progressive JPEGs yet.
This commit is contained in:
parent
10255bc5c6
commit
8b71b839fa
12 changed files with 1301 additions and 8 deletions
23
Base/res/html/misc/jpg.html
Normal file
23
Base/res/html/misc/jpg.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Pretty JPEG Pictures</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<h3>Non-subsampled Lena</h3> <br>
|
||||
<img alt="lena" src="jpgsuite_files/non-subsampled-lena.jpg"/> <br>
|
||||
<h3>Chroma Horizontally Halved Lena</h3> <br>
|
||||
<img alt="lena" src="jpgsuite_files/horizontally-halved-lena.jpg"/> <br>
|
||||
<h3>Chroma Vertically Halved Lena</h3> <br>
|
||||
<img alt="lena" src="jpgsuite_files/vertically-halved-lena.jpg"/> <br>
|
||||
<h3>Chroma Quartered Lena</h3> <br>
|
||||
<img alt="lena" src="jpgsuite_files/chroma-quartered-lena.jpg"/><br>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Oh Lena!</h3> <br>
|
||||
<img alt="lena" src="jpgsuite_files/oh-lena.jpg"/>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg
Normal file
BIN
Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg
Normal file
BIN
Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg
Normal file
BIN
Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
Base/res/html/misc/jpgsuite_files/oh-lena.jpg
Normal file
BIN
Base/res/html/misc/jpgsuite_files/oh-lena.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 KiB |
BIN
Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg
Normal file
BIN
Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
|
@ -34,6 +34,7 @@ span#ua {
|
|||
<li><a href="iframe.html">iframe</a></li>
|
||||
<li><a href="many-buggies.html">many buggies</a></li>
|
||||
<li><a href="bmpsuite.html">BMP test suite</a></li>
|
||||
<li><a href="jpg.html">JPG Images</a></li>
|
||||
<li><a href="palette.html">system palette color css extension</a></li>
|
||||
<li><a href="inline-block-link.html">link inside display: inline-block</a></li>
|
||||
<li><a href="set-interval.html">setInterval() test</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue