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

Floating point image support. #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Trico-Everfire
Copy link

@Trico-Everfire Trico-Everfire commented Apr 8, 2023

I've worked the better part of a week adding floating point image support (RGB(A)FP32/RGBAFP16) to VTFLib, currently, there are some criteria missing, as well as proper cleanup/making sure no memory leaks occur. (I am sure there are some as of writing this) and would love to have some feedback.

roadmap:

  • RGBAFP32 Write
  • RGBAFP32 Read
  • RGBAFP16 Write
  • RGBAFP16 Read
  • Convert RGBAFP32 > supported formats.
  • Convert supported formats. > RGBAFP32.
  • Convert RGBAFP16 > supported formats.
  • Convert supported formats. > RGBAFP16.
  • Floating Point Resize.
  • Floating Point Gamma Correction.
  • Floating point Mipmap creation.

@Trico-Everfire
Copy link
Author

Everything but FP gamma correction has been supported. Needs extensive testing, basic testing tells to and from 32/16fp works flawlessly.

@Trico-Everfire
Copy link
Author

Also fixed a memory leak in the original Create() function related to resize which coincidentally altered the original image data rather than copying, which resulted in the original image data losing track of it's actual size.

@Trico-Everfire Trico-Everfire marked this pull request as ready for review April 12, 2023 02:46
@Trico-Everfire
Copy link
Author

I have made the mistake of leaving clang-format on when making the PR, I apologize to the reviewers.

@Trico-Everfire Trico-Everfire force-pushed the feat/floating_point_support branch from a0e35d1 to 6aab315 Compare April 14, 2023 20:41
@Trico-Everfire
Copy link
Author

This PR is ready for review.

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.

1 participant