summaryrefslogtreecommitdiff
path: root/src/Fl_JPEG_Image.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/Fl_JPEG_Image.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'src/Fl_JPEG_Image.cxx')
-rw-r--r--src/Fl_JPEG_Image.cxx29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index 42e76d694..b794d382a 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// Fl_JPEG_Image routines.
//
// Copyright 1997-2011 by Easy Software Products.
@@ -10,11 +8,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
// Contents:
//
@@ -58,8 +56,8 @@ extern "C"
#ifdef HAVE_LIBJPEG
struct fl_jpeg_error_mgr {
- jpeg_error_mgr pub_; // Destination manager...
- jmp_buf errhand_; // Error handler
+ jpeg_error_mgr pub_; // Destination manager...
+ jmp_buf errhand_; // Error handler
};
#endif // HAVE_LIBJPEG
@@ -71,12 +69,12 @@ struct fl_jpeg_error_mgr {
#ifdef HAVE_LIBJPEG
extern "C" {
static void
- fl_jpeg_error_handler(j_common_ptr dinfo) { // I - Decompressor info
+ fl_jpeg_error_handler(j_common_ptr dinfo) { // I - Decompressor info
longjmp(((fl_jpeg_error_mgr *)(dinfo->err))->errhand_, 1);
}
static void
- fl_jpeg_output_handler(j_common_ptr) { // I - Decompressor info (not used)
+ fl_jpeg_output_handler(j_common_ptr) { // I - Decompressor info (not used)
}
}
#endif // HAVE_LIBJPEG
@@ -84,16 +82,16 @@ extern "C" {
/**
\brief The constructor loads the JPEG image from the given jpeg filename.
-
- The inherited destructor frees all memory and server resources that are used
+
+ The inherited destructor frees all memory and server resources that are used
by the image.
-
+
Use Fl_Image::fail() to check if Fl_JPEG_Image failed to load. fail() returns
ERR_FILE_ACCESS if the file could not be opened or read, ERR_FORMAT if the
JPEG format could not be decoded, and ERR_NO_IMAGE if the image could not
be loaded for another reason. If the image has loaded correctly,
w(), h(), and d() should return values greater than zero.
-
+
\param[in] filename a full path and name pointing to a valid jpeg file.
\see Fl_JPEG_Image::Fl_JPEG_Image(const char *imagename, const unsigned char *data)
@@ -333,8 +331,3 @@ void Fl_JPEG_Image::load_jpg_(const char *filename, const char *sharename, const
}
#endif // HAVE_LIBJPEG
}
-
-
-//
-// End of "$Id$".
-//