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

Reimplement image input handling for toktx. #702

Merged
merged 24 commits into from
May 17, 2023
Merged

Reimplement image input handling for toktx. #702

merged 24 commits into from
May 17, 2023

Conversation

MarkCallow
Copy link
Collaborator

  • Adds imageio library.
  • Reworks toktx to use the imageio library and break up the
    gigantic main loop.
  • Adds {fmt] library used by imageio.

The output plugins and the EXR input plugin are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

Császár Mátyás and others added 24 commits May 15, 2023 09:11
* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"
* Adds imageio library.
* Reworks toktx to use the imageio library and break up the
  gigantic main loop.
* Fixes {fmt} licensing to pass reuse lint.

The output plugins and the EXR input plugin are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.
* Remove unnecessary include of imageio.h in image.hpp.

* Remove imageio include path from unittests. Was there for image.hpp
  required by image_unittests.
Works without it on Xcode.
in hope of find where the error happens.

Revert to building both configs.
@MarkCallow MarkCallow merged commit 1646c4d into main May 17, 2023
@MarkCallow MarkCallow deleted the imageio branch May 18, 2023 02:34
@MarkCallow
Copy link
Collaborator Author

This PR shows as having a failed build because the VS2017 build did not work. That has been removed from CI but GitHub failed to notice the removal and continues to show the failed build.

KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 21, 2024
* Add imageio library.
* Rework toktx to use the imageio library and break up the
   gigantic main loop.
* Add git subrepo of {fmt} library 9.1.0 used by imageio
* Remove VS2017 builds from CI as fmt needs a more recent version.

The output plugins are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

fmt was previously added to another branch via PR KhronosGroup#662.

* Adopt fmt 9.1.0 for formatting (KhronosGroup#662)

* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"

The parent in other_projects/fmt/.gitrepo has been updated to account for this current PR.


Co-authored-by: Császár Mátyás <[email protected]>
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
* Add imageio library.
* Rework toktx to use the imageio library and break up the
   gigantic main loop.
* Add git subrepo of {fmt} library 9.1.0 used by imageio
* Remove VS2017 builds from CI as fmt needs a more recent version.

The output plugins are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

fmt was previously added to another branch via PR KhronosGroup#662.

* Adopt fmt 9.1.0 for formatting (KhronosGroup#662)

* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"

The parent in other_projects/fmt/.gitrepo has been updated to account for this current PR.


Co-authored-by: Császár Mátyás <[email protected]>
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
* Add imageio library.
* Rework toktx to use the imageio library and break up the
   gigantic main loop.
* Add git subrepo of {fmt} library 9.1.0 used by imageio
* Remove VS2017 builds from CI as fmt needs a more recent version.

The output plugins are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

fmt was previously added to another branch via PR KhronosGroup#662.

* Adopt fmt 9.1.0 for formatting (KhronosGroup#662)

* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"

The parent in other_projects/fmt/.gitrepo has been updated to account for this current PR.


Co-authored-by: Császár Mátyás <[email protected]>
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
* Add imageio library.
* Rework toktx to use the imageio library and break up the
   gigantic main loop.
* Add git subrepo of {fmt} library 9.1.0 used by imageio
* Remove VS2017 builds from CI as fmt needs a more recent version.

The output plugins are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

fmt was previously added to another branch via PR KhronosGroup#662.

* Adopt fmt 9.1.0 for formatting (KhronosGroup#662)

* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"

The parent in other_projects/fmt/.gitrepo has been updated to account for this current PR.


Co-authored-by: Császár Mátyás <[email protected]>
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
* Add imageio library.
* Rework toktx to use the imageio library and break up the
   gigantic main loop.
* Add git subrepo of {fmt} library 9.1.0 used by imageio
* Remove VS2017 builds from CI as fmt needs a more recent version.

The output plugins are empty shells.

All toktx tests pass. Some golden images are modified due to
toktx now doing a transfer function conversion from BT709
to sRGB when reading npbm files. Some tests are modified because
toktx no longer chooses sRGB or Linear when the gamma is
somewhere between them.

fmt was previously added to another branch via PR KhronosGroup#662.

* Adopt fmt 9.1.0 for formatting (KhronosGroup#662)

* git subrepo clone --branch=9.1.0 https://github.com/fmtlib/fmt.git other_projects/fmt

subrepo:
  subdir:   "other_projects/fmt"
  merged:   "a3370119"
upstream:
  origin:   "https://github.com/fmtlib/fmt.git"
  branch:   "9.1.0"
  commit:   "a3370119"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"

The parent in other_projects/fmt/.gitrepo has been updated to account for this current PR.


Co-authored-by: Császár Mátyás <[email protected]>
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