From 8b71b839fab65fe5f6cb5c8afc0fbe3b05f72f98 Mon Sep 17 00:00:00 2001 From: Devashish Date: Mon, 18 May 2020 13:28:27 +0530 Subject: 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. --- Base/res/html/misc/jpg.html | 23 +++++++++++++++++++++ .../misc/jpgsuite_files/chroma-quartered-lena.jpg | Bin 0 -> 25019 bytes .../jpgsuite_files/horizontally-halved-lena.jpg | Bin 0 -> 29282 bytes .../misc/jpgsuite_files/non-subsampled-lena.jpg | Bin 0 -> 35193 bytes Base/res/html/misc/jpgsuite_files/oh-lena.jpg | Bin 0 -> 155145 bytes .../misc/jpgsuite_files/vertically-halved-lena.jpg | Bin 0 -> 28566 bytes Base/res/html/misc/welcome.html | 1 + 7 files changed, 24 insertions(+) create mode 100644 Base/res/html/misc/jpg.html create mode 100644 Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg create mode 100644 Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg create mode 100644 Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg create mode 100644 Base/res/html/misc/jpgsuite_files/oh-lena.jpg create mode 100644 Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg (limited to 'Base') diff --git a/Base/res/html/misc/jpg.html b/Base/res/html/misc/jpg.html new file mode 100644 index 0000000000..11f199eabc --- /dev/null +++ b/Base/res/html/misc/jpg.html @@ -0,0 +1,23 @@ + + + + + Pretty JPEG Pictures + + +
+

Non-subsampled Lena


+ lena
+

Chroma Horizontally Halved Lena


+ lena
+

Chroma Vertically Halved Lena


+ lena
+

Chroma Quartered Lena


+ lena
+
+
+

Oh Lena!


+ lena +
+ + diff --git a/Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg b/Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg new file mode 100644 index 0000000000..08b6a82c71 Binary files /dev/null and b/Base/res/html/misc/jpgsuite_files/chroma-quartered-lena.jpg differ diff --git a/Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg b/Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg new file mode 100644 index 0000000000..0f12c6af3e Binary files /dev/null and b/Base/res/html/misc/jpgsuite_files/horizontally-halved-lena.jpg differ diff --git a/Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg b/Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg new file mode 100644 index 0000000000..45928b3351 Binary files /dev/null and b/Base/res/html/misc/jpgsuite_files/non-subsampled-lena.jpg differ diff --git a/Base/res/html/misc/jpgsuite_files/oh-lena.jpg b/Base/res/html/misc/jpgsuite_files/oh-lena.jpg new file mode 100644 index 0000000000..053887a9f7 Binary files /dev/null and b/Base/res/html/misc/jpgsuite_files/oh-lena.jpg differ diff --git a/Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg b/Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg new file mode 100644 index 0000000000..4c11be1352 Binary files /dev/null and b/Base/res/html/misc/jpgsuite_files/vertically-halved-lena.jpg differ diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 8f5ddcfc32..a4294f1605 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -34,6 +34,7 @@ span#ua {
  • iframe
  • many buggies
  • BMP test suite
  • +
  • JPG Images
  • system palette color css extension
  • link inside display: inline-block
  • setInterval() test
  • -- cgit v1.2.3