Repository navigation
forked from elanthis/upng
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
uPNG -- derived from LodePNG version 20100808 ========================================== Copying ------- Copyright (c) 2005-2010 Lode Vandevenne Copyright (c) 2010 Sean Middleditch Copyright (c) 2013-2014 Matthew Hungerford Copyright (c) 2015 by Pebble Inc. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. PebbleOS fork ------------- This is the uPNG used by PebbleOS. It differs from upstream in: - APNG support (iterative frame decoding) and PNG8 alpha palettes; - decoding from an in-memory buffer only, into the image's own format; - inflate through uzlib (https://github.com/pfalcon/uzlib), which must be on the include path and linked in; - allocation through UPNG_MALLOC() and UPNG_FREE(), malloc() and free() unless UPNG_CONFIG_FILE names a header that defines them; - validation of chunk sizes, frame geometry and image dimensions against malformed input. See upng.h for the API.