Closed Bug 679486 Opened 13 years ago Closed 13 years ago

Create some BMP reftests for OS/2 bitmaps

Categories

(Core :: Graphics: ImageLib, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: bbondy, Assigned: bbondy)

References

Details

Attachments

(1 file)

We have very good coverage of BMP decoders via Bug 600556, but not yet any coverage for OS/2 bitmaps.  These are bitmaps with an information header of 12 bytes instead of 40 bytes. 

We should have support for OS2 bitmaps for Bit per pixels
- 1
- 4
- 8 
- 24

Since OS/2 bitmaps do not have compression, we should only need the basic equivalent tests for our current coverage.

I can't seem to find an image editing software that allows you to encode in a specific way for OS/2 bitmaps but what I will do is use a hex editor to manually generate the input test OS/2 bitmap headers, and use the equivalent data from the normal BMP handling code.   After making sure with other programs that they are correct I will implement the reftests.
Assignee: nobody → netzen
Depends on: 600556
OS: Windows 7 → All
Since just the Bitmap Information Header changes, and the color table changes, but not the data handling for OS/2 bitmaps vs MS bitmaps.  I did just one ref test per Bit Per Pixel value.  

I also did a test for an invalid OS/2 Bit Per Pixel value.

I did these ref tests because I wanted to be sure that my BMP refactoring did not cause any regressions and that we had proper handling in general for OS/2 bitmaps.
Attachment #553787 - Flags: review?(joe)
Blocks: 679725
Attachment #553787 - Flags: review?(joe) → review+
http://hg.mozilla.org/mozilla-central/rev/db59a3f2f661
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: