]> git.saurik.com Git - wxWidgets.git/commit - tests/image/horse_rle8_flipped.bmp
Improved BMP decoding.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 17 Aug 2011 21:01:09 +0000 (21:01 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 17 Aug 2011 21:01:09 +0000 (21:01 +0000)
commitd06c3098ab6add89fbee763416d5e5546c66fe23
tree2b93aa53eae236cf1879a36ea0e61e8c673321be
parentee19ab6d804cd61575ca03131888c7d6f2a4daa1
Improved BMP decoding.

The BMP decoder did not handle images that are not stored upside down but straight up (in which case the height is negative). Also with RLE4 or RLE8 compressed images the 'end of scanline' RLE marker was not handled correctly. Fixed the issues and added a unit test for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagbmp.cpp
tests/image/horse_grey.bmp [new file with mode: 0644]
tests/image/horse_grey_flipped.bmp [new file with mode: 0644]
tests/image/horse_rle4.bmp [new file with mode: 0644]
tests/image/horse_rle4_flipped.bmp [new file with mode: 0644]
tests/image/horse_rle8.bmp [new file with mode: 0644]
tests/image/horse_rle8_flipped.bmp [new file with mode: 0644]
tests/image/image.cpp