mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
554b12fbe7
2007-07-26 Raphael Quinet <raphael@gimp.org> * plug-ins/jpeg/Makefile.am * plug-ins/jpeg/jpeg-quality.[ch] * plug-ins/jpeg/jpeg-settings.[ch]: new files including functions for detecting the quality setting of existing JPEG files by analyzing their quantization tables, functions for storing this quality and other JPEG settings in a parasite, and functions for restoring these values. * plug-ins/jpeg/jpeg-load.c (load_image): save the original JPEG settings in a parasite after reading the JPEG header. * plug-ins/jpeg/jpeg.c (run): restore the original JPEG settings if they had been attached to a parasite and if they are better than the defaults. * plug-ins/jpeg/jpeg-save.c (save_image): added new type of subsampling 1x2,1x1,1x1, which is useful for images with height > width such as rotated images from some cameras. (save_dialog): added hints about how the subsampling types can be used, marked these strings as translatable. * plug-ins/jpeg/jpegqual.c: new utility to report the quality settings and sampling factors of existing JPEG files. svn path=/trunk/; revision=23018
23 lines
965 B
C
23 lines
965 B
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* jpeg-quality.h
|
|
* Copyright (C) 2007 Raphaël Quinet <raphael@gimp.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
gint jpeg_detect_quality (struct jpeg_decompress_struct *cinfo);
|