cmd_bmp: Add support for displaying gzip compressed bmps
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Fri, 30 Nov 2007 16:29:59 +0000 (17:29 +0100)
committerWolfgang Denk <wd@denx.de>
Wed, 9 Jan 2008 13:55:18 +0000 (14:55 +0100)
commit43ef1c381f9195504a2488f5cb909227eb97d475
treeddbd6d92a2de97b504c56b1d5a14c68f73f482f3
parentd197ffd8172c6fdef38733424640a9a47295d6e9
cmd_bmp: Add support for displaying gzip compressed bmps

The existing code can show information about a gzip compressed BMP
image, but can't actually display it.

Therefore, move the decompression code out of bmp_info() and use it in
bmp_display() as well in order to display a compressed BMP image.

Also, clean things up a bit and fix a memory leak while we're at it.

[hskinnemoen@atmel.com: a bit of refactoring]
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
common/cmd_bmp.c