Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Jan 6, 2016

This builds on PR #1644 by @jleclanche.

Add unit tests with @Metallicow's test images from #1644 (comment) ("License CC0/Public domain/PIL whatever").

I just picked the smallest of each image format.

DdsImagePlugin.py is now 97.59% covered; just four lines uncovered. They could perhaps be exercised with other test images.

Closes #1644 and fixes #252.

@hugovk
Copy link
Member Author

hugovk commented Jan 6, 2016

Should decode565(), dxt1() and dxt5() be prefixed with underscores to denote internal functions?

@jleclanche
Copy link
Contributor

Like I was telling @wiredfool the other day, dxt1 and dxt5 should be implemented as pixel formats in decode.cif you really wanted to do it right.
And ideally, users should be able to pass pixel format decoders as callables rather than just strings (which forces you to implement them in decode.c).

But yeah the plugin I provided is meant to be a starting point.

@hugovk
Copy link
Member Author

hugovk commented Jan 6, 2016

Yep, might be an idea to add that as TODOs in the code for now. Edit: Added TODOs and underscores.

@jleclanche
Copy link
Contributor

I filed the todo in #1652 where it won't bitrot.

Consider squashing some of your commits but the code looks good.

@wiredfool
Copy link
Member

See #1654

@wiredfool wiredfool closed this Jan 15, 2016
@hugovk hugovk deleted the dds branch January 16, 2016 08:06
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.

Request DDSImagePlugin

3 participants