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

DDS: alpha/luminance format fixes, add & enable more tests #3581

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

aras-p
Copy link
Contributor

@aras-p aras-p commented Oct 4, 2022

Description

Makes A8, L8, L8A8 formats actually work now. While developing #3573 at one time I had them working properly, but then
while fixing the address sanitizer failure for 3-channel formats I botched them again. Note to self: never again do a "yeah I'll add tests later", since if I had all of them running all the time this would not have happened. 🤦

Tests

Extend test coverage for more formats & channel size cases. With more test images recently added (AcademySoftwareFoundation/OpenImageIO-images#5), start using them for DDS tests. This covers now:

  • Alpha, Luminance and Alpha+Luminance formats,
  • RGB formats with rarer channel sizes (rgb10 a2, r3g3b2),
  • Several "broken" DDS file cases
  • Removed usage of sample-DXT1 since it is well covered by others.

Checklist:

  • I have read the contribution guidelines.
  • If this is more extensive than a small change to existing code, I
    have previously submitted a Contributor License Agreement
    (individual, and if there is any way my
    employers might think my programming belongs to them, then also
    corporate).
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • My code follows the prevailing code style of this project.

While developing #3573 at one time I had them working properly, but then
while fixing the address sanitizer failure for 3-channel formats I
botched them again. Note to self: never again do a "yeah I'll add tests
later", since if I had all of them running all the time this would
not have happened. 🤦
With more test images recently added (#3459),
start using them for DDS tests. This covers now:
- Alpha, Luminance and Alpha+Luminance formats,
- RGB formats with rarer channel sizes (rgb10 a2, r3g3b2),
- Several "broken" DDS file cases
- Removed usage of sample-DXT1 since it is well covered by others.
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@lgritz lgritz merged commit 4ee3535 into AcademySoftwareFoundation:master Oct 5, 2022
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Oct 6, 2022
…ftwareFoundation#3581)

* DDS: fixes for A8, L8, A8L8 formats

While developing AcademySoftwareFoundation#3573 at one time I had them working properly, but then
while fixing the address sanitizer failure for 3-channel formats I
botched them again. Note to self: never again do a "yeah I'll add tests
later", since if I had all of them running all the time this would
not have happened. 🤦

* DDS: extend test coverage for more formats & channel size cases

With more test images recently added (AcademySoftwareFoundation#3459),
start using them for DDS tests. This covers now:
- Alpha, Luminance and Alpha+Luminance formats,
- RGB formats with rarer channel sizes (rgb10 a2, r3g3b2),
- Several "broken" DDS file cases
- Removed usage of sample-DXT1 since it is well covered by others.
@aras-p aras-p deleted the dds branch October 7, 2022 19:56
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.

None yet

2 participants