tinyjpeg: Dynamic luminance quantization table for Pixart JPEG
PATCH 1/1 tinyjpeg: Dynamic luminance quantization table for Pixart JPEG
In PJPG blocks, a marker gives the quantization tables to use for image decoding. This patch dynamically updates the luminance table when the marker changes.
Note that the values of this table have been guessed from a small number of images and that they may not work fine in some situations, but, in most cases, the images are better rendered.
Signed-off-by Jean-François Moine <[email protected]>
lib/libv4lconvert/tinyjpeg-internal.h +1 -0
@@ -103,6 +103,7 @@ struct jdec_private {#if SANITY_CHECK unsigned int current_cid;/* For planar JPEG */ #endif +unsigned char marker;/* for PJPG (Pixart JPEG) */ /* Temp space used after the IDCT to store each components */ uint8_t Y [64 *4 ], Cr[64 ], Cb[64 ];
lib/libv4lconvert/tinyjpeg.c +52 -4
80 lines not on this page · raw message
Signature · 3 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ t