[PATCH 11/11] png: add picoPNG lib support

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 12 03:39:04 EDT 2012


On Sat, Sep 08, 2012 at 08:05:42PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> This is an alternative to LodePNG take from http://forge.voodooprojects.org/
> which is base on picoPNG C++ wrote by Lode Vandevenne. The same author as
> LodePNG.
> 
> PicoPNG only support RGBA PNG8
> 
> The source code of picopng.c was just adapted to be compliant with C89 and drop
> the internal ZLIB support. Coding style untouched.
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  lib/Kconfig    |    5 +
>  lib/Makefile   |    1 +
>  lib/picopng.c  |  810 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  lib/picopng.h  |   34 +++
>  lib/png_pico.c |   85 ++++++
>  5 files changed, 935 insertions(+)
>  create mode 100644 lib/picopng.c
>  create mode 100644 lib/picopng.h
>  create mode 100644 lib/png_pico.c
> 
> diff --git a/lib/Kconfig b/lib/Kconfig
> index 2405d59..1fc6704 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -62,6 +62,11 @@ config LODEPNG
>  	help
>  	  Mostly PNG support
>  
> +config PICOPNG
> +	bool "picoPNG"
> +	help
> +	  Support only RGBA PNG8

	  This PNG libraray only supports RGBA PNG8 but is much smaller
	  in binary size then lodepng.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list