Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify various aspects of interpreting DIBs with compression of BI_BITFIELDS #5241

Open
peteroupc opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@peteroupc
Copy link

peteroupc commented Dec 12, 2024

Type of issue

Missing information

Feedback

This feedback relates to Windows device-independent bitmap (DIB) formats with the BI_BITFIELDS compression mode.

Clarify the meaning of bV4ClrUsed of BITMAPV4HEADER (and the like member of BITMAPINFOHEADER and BITMAPINFOV5HEADER) when bV4Compression is BI_BITFIELDS. Is this member 0 in this case? Is this member equal to 3, the size of bmiColors, or the number of colors in the color table if any? Can the DIB contain both a color table and color masks?

Also, clarify the valid choices for color masks. For example, can one of the color masks be zero?

Finally, clarify the conversion of color components to 8 bits per color component, especially when the color masks reflect that a color component has fewer than 8 bits.

Also, the documentation for BITMAPV4HEADER says bV4V4Compression in one place, rather than bV4Compression.

@peteroupc peteroupc changed the title Clarify meaning of biClrUsed and presence of color tables and color masks in DIBs when compression is BI_BITFIELDS Clarify meaning of biClrUsed and presence of a color table in DIBs when compression is BI_BITFIELDS Dec 12, 2024
@peteroupc peteroupc changed the title Clarify meaning of biClrUsed and presence of a color table in DIBs when compression is BI_BITFIELDS Clarify meaning of biClrUsed, presence of a color table, and valid color masks in DIBs when compression is BI_BITFIELDS Dec 12, 2024
@peteroupc peteroupc changed the title Clarify meaning of biClrUsed, presence of a color table, and valid color masks in DIBs when compression is BI_BITFIELDS Clarify various aspects of interpreting DIBs with compression of BI_BITFIELDS Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant