Skip to content

Implementing UncompressPcxImage; Adding tests#1

Open
sjoblomj wants to merge 1 commit intoStarsurgical:bmpfrom
sjoblomj:pcx
Open

Implementing UncompressPcxImage; Adding tests#1
sjoblomj wants to merge 1 commit intoStarsurgical:bmpfrom
sjoblomj:pcx

Conversation

@sjoblomj
Copy link

@sjoblomj sjoblomj commented Feb 9, 2026

No description provided.

Comment on lines -176 to +248
if (imagebitdepth == 8) {
if (hasExtendedPalette) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that we should do a more rigorous check than what the previous code did.

reinterpret_cast<uint8_t*>(imagedata) + sizeof(PCXFILEREC),
destbytes,
imagebytes - extra - sizeof(PCXFILEREC),
imagewidth,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The width is not needed

Comment on lines -190 to +261
if (paletteentries && imagebitdepth == 8) {
if (hasExtendedPalette) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that we should do a more rigorous check than what the previous code did.

@heinermann
Copy link
Member

out.txt

Quite a few failed tests against the real storm.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants