-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Targa improvements: attribs, unassociated alpha handling, and more (#…
…3279) The main event: * Assume that for a TGA 1.0 file (too old to have the header field that says if alpha is associated, unassociated, or meaningless), if the alpha is zero everywhere, it means that it's meaningless, not unassociated, so in that case we should skip the auto-premultiplication. (See issue 3277) Public-ish stuff: * Be more consistent with Targa-specific attributes all being called "targa:foo" (most were, but one was "tga:alpha_type"). * Document all the targa-specific attributes (a few were not). * Add "targa:version" to reveal whether the file was a TGA 1.0 or 2.0 version of the format. Internal stuff, opportunistic: * Some more minor conversions of string fomatting to fmt style. * Convert some std::cerr debugging code (commented out) to the DBG macro we use anywhere.
- Loading branch information
Showing
3 changed files
with
96 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters