Skip to content

add PNG support

Jean-Christophe PLAGNIOL-VILLARD barebox 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 5 repliesIn review
  2. v311 patches 7 repliesSuperseded
  3. v211 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches19 repliesSuperseded

Changes in v4 from the cover letter

- fix comment
- reorder graphic_utilils adding

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11bmp: rename it to splashDocumentation/commands.dox arch/arm/boards/eukrea_cpuimx25/env/bin/init_board arch/arm/boards/eukrea_cpuimx27/env/bin/init +20 more+33 -330 replies
2/11bmp: split bmp rending in lib/bmp.ccommands/Kconfig commands/splash.c include/bmp_layout.h +3 more+159 -1133 replies
3/11Introduce graphic utilsinclude/graphic_utils.h lib/Makefile lib/bmp.c +1 more+107 -230 replies
4/11introduce image_renderer frameworkinclude/image_renderer.h lib/Kconfig lib/Makefile +1 more+187 -00 replies
5/11filetype: add BMP supportcommon/filetype.c include/filetype.h+3 -01 reply
6/11splash/bmp: switch to image_renderercommands/Kconfig commands/splash.c lib/Kconfig +3 more+65 -420 replies
7/11splash: add support to set a background colorcommands/splash.c+17 -30 replies
8/11graphic_utils: add rgba supportinclude/graphic_utils.h lib/graphic_utils.c+105 -00 replies
9/11filetype: add PNG supportcommon/filetype.c include/filetype.h+4 -01 reply
10/11add PNG supportcommands/Kconfig lib/Kconfig lib/Makefile +5 more+7793 -30 replies
11/11png: add picoPNG lib supportlib/Kconfig lib/Makefile lib/picopng.c +2 more+936 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH 00/11 v4] add PNG support

Hi,

v4:
- fix comment
- reorder graphic_utilils adding

v3:
- fix comment
- add introduce image helper
while use the image renderer for multiple image support I found tis was missing

This even simplify png implemtation by not duplication the rendering

v2:

fix comment
fix missing select
drop logo (will be send in a seprated pull)

please pull
The following changes since commit 4271879e3b82e2e4d52a46f7c4ef01461a786b5e:

fsl TSEC: register map boundary (2012-09-11 10:06:09 +0200)

are available in the git repository at:

git://git.jcrosoft.org/barebox.git tags/png

for you to fetch changes up to 7dad2c8a260282c07ada0c291a441a16563746ef:

png: add picoPNG lib support (2012-09-12 21:21:07 +0800)

----------------------------------------------------------------
Introduce PNG support

This will allow to reduce the binary size and support transparent image png + png8 is 50% less than lzo + bmp (same image)

- rename bmp to splash
- add background support (usefull for transparent image)
- add LodePNG and PicoPNG

PicoPNG only support PNG8 RGBA where LodePNG support most of the PNG (PNG24 & PNG8). PicoPNG is ~5KiB smaller than LodePNG.

Attention the coding style on both PicoPNG and LodePNG are untouched for maintainance purpose.

Use LodePNG version 20120729 from http://lodev.org/lodepng/
Use from http://forge.voodooprojects.org/
which is base on picoPNG C++ wrote by Lode Vandevenne. The same author as LodePNG.

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (11):
bmp: rename it to splash
bmp: split bmp rending in lib/bmp.c Introduce graphic utils
introduce image_renderer framework
filetype: add BMP support
splash/bmp: switch to image_renderer
splash: add support to set a background color
graphic_utils: add rgba support
filetype: add PNG support
add PNG support
png: add picoPNG lib support

 Documentation/commands.dox                         |    2 +-
 arch/arm/boards/eukrea_cpuimx25/env/bin/init_board |    4 +-
 arch/arm/boards/eukrea_cpuimx27/env/bin/init       |    4 +-
 arch/arm/boards/eukrea_cpuimx35/env/bin/init_board |    4 +-
 arch/arm/boards/eukrea_cpuimx51/env/bin/init_board |    4 +-
 arch/arm/boards/karo-tx25/env/bin/init_board       |    2 +-
 arch/arm/boards/mioa701/env/bin/init               |    2 +-
 arch/arm/configs/chumbyone_defconfig               |    2 +-
 arch/arm/configs/cupid_defconfig                   |    2 +-
 arch/arm/configs/eukrea_cpuimx25_defconfig         |    2 +-
 arch/arm/configs/eukrea_cpuimx27_defconfig         |    2 +-
 arch/arm/configs/eukrea_cpuimx35_defconfig         |    2 +-
 arch/arm/configs/freescale_mx35_3stack_defconfig   |    2 +-
 arch/arm/configs/imx28evk_defconfig                |    2 +-
 arch/arm/configs/mioa701_defconfig                 |    2 +-
 arch/arm/configs/neso_defconfig                    |    2 +-
 arch/arm/configs/pcm027_defconfig                  |    2 +-
 arch/arm/configs/pcm038_defconfig                  |    2 +-
 arch/arm/configs/tx25stk5_defconfig                |    2 +-
 arch/arm/configs/tx28stk5_defconfig                |    2 +-
 commands/Kconfig                                   |    5 +-
 commands/Makefile                                  |    2 +-
 commands/bmp.c                                     |  221 ------
 commands/splash.c                                  |  133 ++++
 common/filetype.c                                  |    5 +
 include/filetype.h                                 |    2 +
 include/graphic_utils.h                            |   17 +
 include/image_renderer.h                           |   85 +++
 lib/Kconfig                                        |   36 +
 lib/Makefile                                       |    5 +
 lib/bmp.c                                          |  134 ++++
 {include => lib}/bmp_layout.h                      |   11 +
 lib/graphic_utils.c                                |  191 +++++
 lib/image_renderer.c                               |   96 +++
 lib/lodepng.c                                      | 5928 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/lodepng.h                                      | 1640 +++++++++++++++++++++++++++++++++++++++
 lib/picopng.c                                      |  810 ++++++++++++++++++++
 lib/picopng.h                                      |   34 +
 lib/png.c                                          |   89 +++
 lib/png.h                                          |   21 +
 lib/png_lode.c                                     |   90 +++
 lib/png_pico.c                                     |   85 +++
 42 files changed, 9440 insertions(+), 248 deletions(-)
 delete mode 100644 commands/bmp.c
 create mode 100644 commands/splash.c
 create mode 100644 include/graphic_utils.h
 create mode 100644 include/image_renderer.h
 create mode 100644 lib/bmp.c
 rename {include => lib}/bmp_layout.h (85%)
 create mode 100644 lib/graphic_utils.c
 create mode 100644 lib/image_renderer.c
 create mode 100644 lib/lodepng.c
 create mode 100644 lib/lodepng.h
 create mode 100644 lib/picopng.c
 create mode 100644 lib/picopng.h
 create mode 100644 lib/png.c
 create mode 100644 lib/png.h
 create mode 100644 lib/png_lode.c
 create mode 100644 lib/png_pico.c

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox