mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 02:15:42 +01:00 
			
		
		
		
	update http links
- prefer https - metadataworkinggroup.org/com seem to be offline; the web archive link was obtained from exiftool: https://exiftool.org/TagNames/MWG.html - fix kramdown link, rubyforge has been gone a long time - fix png/zlib links Bug: webp:544 Bug: b/202302177 Change-Id: Id69de4553e7baf00393f12a2c1acb262443a1a93
This commit is contained in:
		
							
								
								
									
										12
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README
									
									
									
									
									
								
							| @@ -13,13 +13,13 @@ WebP codec: library to encode and decode images in WebP format. This package | ||||
| contains the library that can be used in other programs to add WebP support, | ||||
| as well as the command line tools 'cwebp' and 'dwebp'. | ||||
|  | ||||
| See http://developers.google.com/speed/webp | ||||
| See https://developers.google.com/speed/webp | ||||
|  | ||||
| The latest source tree is available at | ||||
| https://chromium.googlesource.com/webm/libwebp | ||||
|  | ||||
| It is released under the same license as the WebM project. | ||||
| See http://www.webmproject.org/license/software/ or the | ||||
| See https://www.webmproject.org/license/software/ or the | ||||
| "COPYING" file for details. An additional intellectual | ||||
| property rights grant can be found in the file PATENTS. | ||||
|  | ||||
| @@ -436,8 +436,8 @@ Prerequisites: | ||||
|  | ||||
| 2) (Optional) qcms (Quick Color Management System) | ||||
|   i. Download qcms from Mozilla / Chromium: | ||||
|     http://hg.mozilla.org/mozilla-central/file/0e7639e3bdfb/gfx/qcms | ||||
|     http://src.chromium.org/viewvc/chrome/trunk/src/third_party/qcms | ||||
|     https://hg.mozilla.org/mozilla-central/file/0e7639e3bdfb/gfx/qcms | ||||
|     https://source.chromium.org/chromium/chromium/src/+/main:third_party/qcms/;drc=d4a2f8e1ed461d8fc05ed88d1ae2dc94c9773825 | ||||
|   ii. Build and archive the source files as libqcms.a / qcms.lib | ||||
|   iii. Update makefile.unix / Makefile.vc | ||||
|     a) Define WEBP_HAVE_QCMS | ||||
| @@ -786,10 +786,10 @@ Bugs: | ||||
| Please report all bugs to the issue tracker: | ||||
|     https://bugs.chromium.org/p/webp | ||||
| Patches welcome! See this page to get started: | ||||
|     http://www.webmproject.org/code/contribute/submitting-patches/ | ||||
|     https://www.webmproject.org/code/contribute/submitting-patches/ | ||||
|  | ||||
| Discuss: | ||||
| ======== | ||||
|  | ||||
| Email: webp-discuss@webmproject.org | ||||
| Web: http://groups.google.com/a/webmproject.org/group/webp-discuss | ||||
| Web: https://groups.google.com/a/webmproject.org/group/webp-discuss | ||||
|   | ||||
| @@ -249,10 +249,10 @@ Bugs: | ||||
| Please report all bugs to the issue tracker: | ||||
|     https://bugs.chromium.org/p/webp | ||||
| Patches welcome! See this page to get started: | ||||
|     http://www.webmproject.org/code/contribute/submitting-patches/ | ||||
|     https://www.webmproject.org/code/contribute/submitting-patches/ | ||||
|  | ||||
| Discuss: | ||||
| ======== | ||||
|  | ||||
| Email: webp-discuss@webmproject.org | ||||
| Web: http://groups.google.com/a/webmproject.org/group/webp-discuss | ||||
| Web: https://groups.google.com/a/webmproject.org/group/webp-discuss | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| AC_INIT([libwebp], [1.2.1], | ||||
|         [https://bugs.chromium.org/p/webp],, | ||||
|         [http://developers.google.com/speed/webp]) | ||||
|         [https://developers.google.com/speed/webp]) | ||||
| AC_CANONICAL_HOST | ||||
| AC_PREREQ([2.60]) | ||||
| AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) | ||||
|   | ||||
| @@ -6,8 +6,8 @@ HTML generation requires kramdown [1], easily installed as a | ||||
| rubygem [2].  Rubygems installation should satisfy dependencies | ||||
| automatically. | ||||
|  | ||||
| [1]: http://kramdown.rubyforge.org/ | ||||
| [2]: http://rubygems.org/ | ||||
| [1]: https://kramdown.gettalong.org/ | ||||
| [2]: https://rubygems.org/ | ||||
|  | ||||
| HTML generation can then be done from the project root: | ||||
|  | ||||
| @@ -26,4 +26,4 @@ $ kramdown doc/webp-lossless-bitstream-spec.txt --template \ | ||||
|  | ||||
| Optimally, use kramdown 0.13.7 or newer if syntax highlighting desired. | ||||
|  | ||||
| [3]: http://coderay.rubychan.de/ | ||||
| [3]: https://github.com/rubychan/coderay | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| Although you may be viewing an alternate representation, this document | ||||
| is sourced in Markdown, a light-duty markup scheme, and is optimized for | ||||
| the [kramdown](http://kramdown.rubyforge.org/) transformer. | ||||
| the [kramdown](https://kramdown.gettalong.org/) transformer. | ||||
|  | ||||
| See the accompanying README. External link targets are referenced at the | ||||
| end of this file. | ||||
| @@ -813,7 +813,7 @@ RIFF/WEBP | ||||
|  | ||||
| [vp8spec]:  https://datatracker.ietf.org/doc/html/rfc6386 | ||||
| [webpllspec]: https://chromium.googlesource.com/webm/libwebp/+/HEAD/doc/webp-lossless-bitstream-spec.txt | ||||
| [iccspec]: http://www.color.org/icc_specs2.xalter | ||||
| [metadata]: http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf | ||||
| [iccspec]: https://www.color.org/icc_specs2.xalter | ||||
| [metadata]: https://web.archive.org/web/20180919181934/http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf | ||||
| [rfc 1166]: https://datatracker.ietf.org/doc/html/rfc1166 | ||||
| [rfc 2119]: https://datatracker.ietf.org/doc/html/rfc2119 | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| Although you may be viewing an alternate representation, this document | ||||
| is sourced in Markdown, a light-duty markup scheme, and is optimized for | ||||
| the [kramdown](http://kramdown.rubyforge.org/) transformer. | ||||
| the [kramdown](https://kramdown.gettalong.org/) transformer. | ||||
|  | ||||
| See the accompanying README. External link targets are referenced at the | ||||
| end of this file. | ||||
| @@ -1087,4 +1087,4 @@ A possible example sequence: | ||||
| <lz77-coded image> | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
|  | ||||
| [canonical_huff]: http://en.wikipedia.org/wiki/Canonical_Huffman_code | ||||
| [canonical_huff]: https://en.wikipedia.org/wiki/Canonical_Huffman_code | ||||
|   | ||||
| @@ -79,7 +79,7 @@ int WebPWriteTIFF(FILE* fout, const struct WebPDecBuffer* const buffer); | ||||
| int WebPWriteAlphaPlane(FILE* fout, const struct WebPDecBuffer* const buffer); | ||||
|  | ||||
| // Save as YUV samples as PGM format (using IMC4 layout). | ||||
| // See: http://www.fourcc.org/yuv.php#IMC4. | ||||
| // See: https://www.fourcc.org/yuv.php#IMC4. | ||||
| // (very convenient format for viewing the samples, esp. for odd dimensions). | ||||
| int WebPWritePGM(FILE* fout, const struct WebPDecBuffer* const buffer); | ||||
|  | ||||
|   | ||||
| @@ -133,7 +133,7 @@ static const struct { | ||||
|                  MetadataPayload* const payload); | ||||
|   size_t storage_offset; | ||||
| } kPNGMetadataMap[] = { | ||||
|   // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/PNG.html#TextualData | ||||
|   // https://exiftool.org/TagNames/PNG.html#TextualData | ||||
|   // See also: ExifTool on CPAN. | ||||
|   { "Raw profile type exif", ProcessRawProfile, METADATA_OFFSET(exif) }, | ||||
|   { "Raw profile type xmp",  ProcessRawProfile, METADATA_OFFSET(xmp) }, | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| # (the previous build will be erased if it exists). | ||||
| # | ||||
| # This script is inspired by the build script written by Carson McDonald. | ||||
| # (http://www.ioncannon.net/programming/1483/using-webp-to-reduce-native-ios-app-size/). | ||||
| # (https://www.ioncannon.net/programming/1483/using-webp-to-reduce-native-ios-app-size/). | ||||
|  | ||||
| set -e | ||||
|  | ||||
| @@ -86,7 +86,7 @@ if [[ ! -e ${SRCDIR}/configure ]]; then | ||||
| Error creating configure script! | ||||
| This script requires the autoconf/automake and libtool to build. MacPorts can | ||||
| be used to obtain these: | ||||
| http://www.macports.org/install.php | ||||
| https://www.macports.org/install.php | ||||
| EOF | ||||
|     exit 1 | ||||
|   fi | ||||
|   | ||||
| @@ -47,7 +47,7 @@ else | ||||
| endif | ||||
|  | ||||
| # To install libraries on Mac OS X: | ||||
| # 1. Install MacPorts (http://www.macports.org/install.php) | ||||
| # 1. Install MacPorts (https://www.macports.org/install.php) | ||||
| # 2. Run "sudo port install jpeg" | ||||
| # 3. Run "sudo port install libpng" | ||||
| # 4. Run "sudo port install tiff" | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH CWEBP 1 "November 19, 2020" | ||||
| .TH CWEBP 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| cwebp \- compress an image file to a WebP file | ||||
| .SH SYNOPSIS | ||||
| @@ -222,7 +222,7 @@ Compute and report average PSNR (Peak\-Signal\-To\-Noise ratio). | ||||
| .TP | ||||
| .B \-print_ssim | ||||
| Compute and report average SSIM (structural similarity | ||||
| metric, see http://en.wikipedia.org/wiki/SSIM for additional details). | ||||
| metric, see https://en.wikipedia.org/wiki/SSIM for additional details). | ||||
| .TP | ||||
| .B \-print_lsim | ||||
| Compute and report local similarity metric (sum of lowest error amongst the | ||||
| @@ -298,7 +298,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| cwebp \-q 50 -lossless picture.png \-o picture_lossless.webp | ||||
| @@ -322,5 +322,5 @@ for the Debian project (and may be used by others). | ||||
| .BR dwebp (1), | ||||
| .BR gif2webp (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH DWEBP 1 "November 19, 2020" | ||||
| .TH DWEBP 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| dwebp \- decompress a WebP file to an image file | ||||
| .SH SYNOPSIS | ||||
| @@ -113,7 +113,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| dwebp picture.webp \-o output.png | ||||
| @@ -138,7 +138,7 @@ for the Debian project (and may be used by others). | ||||
| .BR gif2webp (1), | ||||
| .BR webpmux (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
| .SS Output file format details | ||||
| PAM: http://netpbm.sourceforge.net/doc/pam.html | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH GIF2WEBP 1 "May 1, 2020" | ||||
| .TH GIF2WEBP 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| gif2webp \- Convert a GIF image to WebP | ||||
| .SH SYNOPSIS | ||||
| @@ -131,7 +131,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| gif2webp picture.gif \-o picture.webp | ||||
| @@ -160,5 +160,5 @@ Debian project (and may be used by others). | ||||
| .BR dwebp (1), | ||||
| .BR webpmux (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH IMG2WEBP 1 "May 1, 2020" | ||||
| .TH IMG2WEBP 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| img2webp \- create animated WebP file from a sequence of input images. | ||||
| .SH SYNOPSIS | ||||
| @@ -86,7 +86,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH AUTHORS | ||||
| \fBimg2webp\fP is a part of libwebp and was written by the WebP team. | ||||
| @@ -101,5 +101,5 @@ for the Debian project (and may be used by others). | ||||
| .BR webpmux (1), | ||||
| .BR gif2webp (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH VWEBP 1 "June 5, 2019" | ||||
| .TH VWEBP 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| vwebp \- decompress a WebP file and display it in a window | ||||
| .SH SYNOPSIS | ||||
| @@ -77,7 +77,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| vwebp picture.webp | ||||
| @@ -97,5 +97,5 @@ This manual page was written for the Debian project (and may be used by others). | ||||
| .SH SEE ALSO | ||||
| .BR dwebp (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH WEBPINFO 1 "November 24, 2017" | ||||
| .TH WEBPINFO 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| webpinfo \- print out the chunk level structure of WebP files | ||||
| along with basic integrity checks. | ||||
| @@ -52,7 +52,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| .br | ||||
| @@ -76,5 +76,5 @@ for the Debian project (and may be used by others). | ||||
| .SH SEE ALSO | ||||
| .BR webpmux (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| .\"                                      Hey, EMACS: -*- nroff -*- | ||||
| .TH WEBPMUX 1 "November 3, 2021" | ||||
| .TH WEBPMUX 1 "November 17, 2021" | ||||
| .SH NAME | ||||
| webpmux \- create animated WebP files from non\-animated WebP images, extract | ||||
| frames from animated WebP images, and manage XMP/EXIF metadata and ICC profile. | ||||
| @@ -191,7 +191,7 @@ Please report all bugs to the issue tracker: | ||||
| https://bugs.chromium.org/p/webp | ||||
| .br | ||||
| Patches welcome! See this page to get started: | ||||
| http://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
| https://www.webmproject.org/code/contribute/submitting\-patches/ | ||||
|  | ||||
| .SH EXAMPLES | ||||
| .P | ||||
| @@ -267,5 +267,5 @@ for the Debian project (and may be used by others). | ||||
| .BR dwebp (1), | ||||
| .BR gif2webp (1) | ||||
| .br | ||||
| Please refer to http://developers.google.com/speed/webp/ for additional | ||||
| Please refer to https://developers.google.com/speed/webp/ for additional | ||||
| information. | ||||
|   | ||||
| @@ -84,7 +84,7 @@ static const uint8_t kCodeToPlane[CODE_TO_PLANE_CODES] = { | ||||
| // to 256 (green component values) + 24 (length prefix values) | ||||
| // + color_cache_size (between 0 and 2048). | ||||
| // All values computed for 8-bit first level lookup with Mark Adler's tool: | ||||
| // http://www.hdfgroup.org/ftp/lib-external/zlib/zlib-1.2.5/examples/enough.c | ||||
| // https://github.com/madler/zlib/blob/v1.2.5/examples/enough.c | ||||
| #define FIXED_TABLE_SIZE (630 * 3 + 410) | ||||
| static const uint16_t kTableSize[12] = { | ||||
|   FIXED_TABLE_SIZE + 654, | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| // | ||||
| // ARM NEON version of speed-critical encoding functions. | ||||
| // | ||||
| // adapted from libvpx (http://www.webmproject.org/code/) | ||||
| // adapted from libvpx (https://www.webmproject.org/code/) | ||||
|  | ||||
| #include "src/dsp/dsp.h" | ||||
|  | ||||
|   | ||||
| @@ -10,7 +10,7 @@ | ||||
| // inline YUV<->RGB conversion function | ||||
| // | ||||
| // The exact naming is Y'CbCr, following the ITU-R BT.601 standard. | ||||
| // More information at: http://en.wikipedia.org/wiki/YCbCr | ||||
| // More information at: https://en.wikipedia.org/wiki/YCbCr | ||||
| // Y = 0.2569 * R + 0.5044 * G + 0.0979 * B + 16 | ||||
| // U = -0.1483 * R - 0.2911 * G + 0.4394 * B + 128 | ||||
| // V = 0.4394 * R - 0.3679 * G - 0.0715 * B + 128 | ||||
|   | ||||
| @@ -161,7 +161,7 @@ static void SetBitDepths(const HuffmanTree* const tree, | ||||
| // especially when population counts are longer than 2**tree_limit, but | ||||
| // we are not planning to use this with extremely long blocks. | ||||
| // | ||||
| // See http://en.wikipedia.org/wiki/Huffman_coding | ||||
| // See https://en.wikipedia.org/wiki/Huffman_coding | ||||
| static void GenerateOptimalTree(const uint32_t* const histogram, | ||||
|                                 int histogram_size, | ||||
|                                 HuffmanTree* tree, int tree_depth_limit, | ||||
|   | ||||
| @@ -30,7 +30,7 @@ | ||||
|  | ||||
| #define DFIX 4           // extra precision for ordered dithering | ||||
| #define DSIZE 4          // dithering size (must be a power of two) | ||||
| // cf. http://en.wikipedia.org/wiki/Ordered_dithering | ||||
| // cf. https://en.wikipedia.org/wiki/Ordered_dithering | ||||
| static const uint8_t kOrderedDither[DSIZE][DSIZE] = { | ||||
|   {  0,  8,  2, 10 },     // coefficients are in DFIX fixed-point precision | ||||
|   { 12,  4, 14,  6 }, | ||||
|   | ||||
| @@ -23,7 +23,7 @@ | ||||
| // alloc/free etc) is printed. For debugging/tuning purpose only (it's slow, | ||||
| // and not multi-thread safe!). | ||||
| // An interesting alternative is valgrind's 'massif' tool: | ||||
| //    http://valgrind.org/docs/manual/ms-manual.html | ||||
| //    https://valgrind.org/docs/manual/ms-manual.html | ||||
| // Here is an example command line: | ||||
| /*    valgrind --tool=massif --massif-out-file=massif.out \ | ||||
|                --stacks=yes --alloc-fn=WebPSafeMalloc --alloc-fn=WebPSafeCalloc | ||||
|   | ||||
| @@ -85,7 +85,7 @@ WEBP_EXTERN uint8_t* WebPDecodeBGR(const uint8_t* data, size_t data_size, | ||||
| // Upon return, the Y buffer has a stride returned as '*stride', while U and V | ||||
| // have a common stride returned as '*uv_stride'. | ||||
| // Return NULL in case of error. | ||||
| // (*) Also named Y'CbCr. See: http://en.wikipedia.org/wiki/YCbCr | ||||
| // (*) Also named Y'CbCr. See: https://en.wikipedia.org/wiki/YCbCr | ||||
| WEBP_EXTERN uint8_t* WebPDecodeYUV(const uint8_t* data, size_t data_size, | ||||
|                                    int* width, int* height, | ||||
|                                    uint8_t** u, uint8_t** v, | ||||
|   | ||||
| @@ -105,7 +105,7 @@ if [[ ! -e ${SRCDIR}/configure ]]; then | ||||
| Error creating configure script! | ||||
| This script requires the autoconf/automake and libtool to build. MacPorts or | ||||
| Homebrew can be used to obtain these: | ||||
| http://www.macports.org/install.php | ||||
| https://www.macports.org/install.php | ||||
| https://brew.sh/ | ||||
| EOF | ||||
|     exit 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user