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

Merge branch 'master' into 'dev' #3061

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open

Merge branch 'master' into 'dev' #3061

wants to merge 14 commits into from

Conversation

Lestropie
Copy link
Member

@Lestropie Lestropie commented Jan 14, 2025

Merge of current master into dev, necessary for PRs targeting dev to pass CI checks.

Lestropie and others added 9 commits September 11, 2023 15:47
Fixes erroneous check put in place in #2535 (3acf6cc).
- Fix failure to return dynamically allocated memory (two separate instances).
- Fix orientation of exported PNGs in some use cases.
- Fix excessive memory allocation for images spread across multiple PNG files.
- When reading from multiple input PNG images, allocate memory for read buffers on a per-slice basis.
- Do not attempt to support writing bitwise images, even if the number of pixels in the width direction is a factor of 8.
- Fix intensity scaling of bitwise images such that values of 0 and 255 are used in the output uint8 image.
 Add test data and tests for verifying operation of PNG export.
- Fix erroneous modification of strides upon header concatenation; this replicates the fix included in 41c02e9 as part of #2806, but is necessary for the suite of fixes here to work. Note that this affects mrcat in addition to multi-image format handling.
- Fix setting of strides upon PNG read.
- Expand testing of PNG handling. Evaluation of read and write functionality is performed separately, with the reference data fully visible and verifiable within the test data repository. Some previous tests bundled read and write testing together, which obscured the erroneous intermediate interpretation.
- Omit explicit deletion of ImageIO::Base data where unnecessary; this can be handled by ImageIO::Base::close().
- FIx additional memory leaks in ImageIO::PNG.
Lots of manual merging by Robert E. Smith <[email protected]>
@Lestropie Lestropie self-assigned this Jan 14, 2025
@Lestropie Lestropie added this to the 3.1.0 updates milestone Jan 14, 2025
…o_dev

Manual merge of the contents of #2713 onto dev, as they were omitted from 9896ccf.
Includes updating the commit hash for the "test_data" repository, which merges the changes to test data implemented as part of #2713 onto the dev branch version of those test data.

Conflicts:
	core/file/png.cpp
	core/file/png.h
	core/formats/png.cpp
	core/header.cpp
	core/image_io/png.cpp
	core/image_io/scratch.cpp
	core/image_io/tiff.cpp
	core/image_io/variable_scaling.cpp
	core/image_io/variable_scaling.h
	cpp/core/image_io/pipe.h
	cpp/core/image_io/png.h
	cpp/core/image_io/ram.cpp
	cpp/core/image_io/scratch.h
	testing/binaries/data
	testing/binaries/tests/mrconvert~0411e034e23801672354bda98700491cff8e4f73
Lestropie added a commit that referenced this pull request Jan 15, 2025
Resolution of content merged to dev initially omitted from #3061.
- #2693 (completely omitted)
- #3005 (partial propagation / independent address of some common issues on both branches)
- #3001 (completely omitted)
- #2908 (completely omitted)
- #2955 (completely omitted)
- #2600 (completely omitted)
- #2962 (completely omitted)
- #2935 (completely omitted)
- #2923 (completely omitted)
- #2910 (completely omitted)
- #2638 (completely omitted)
- #2698 (completely omitted)
- #2721 (completely omitted)
- #2794 (completely omitted)
- #2768 (completely omitted; required modification to conform to other dev changes)
- #2713 (residual compilation errors following adf8fdd, including resolution against changes in #2437 on dev.
Resolution of content merged to dev initially omitted from #3061.
- #2693 (completely omitted)
- #3005 (partial propagation / independent address of some common issues on both branches)
- #3001 (completely omitted)
- #2908 (completely omitted)
- #2955 (completely omitted)
- #2600 (completely omitted)
- #2962 (completely omitted)
- #2935 (completely omitted)
- #2923 (completely omitted)
- #2910 (completely omitted)
- #2638 (completely omitted)
- #2698 (completely omitted)
- #2721 (completely omitted)
- #2794 (completely omitted)
- #2768 (completely omitted; required modification to conform to other dev changes)
- #2713 (residual compilation errors following adf8fdd, including resolution against changes in #2437 on dev.
Lestropie added a commit that referenced this pull request Jan 15, 2025
- Install libpng-dev on Linux GCC workflow so that mrconvert tests involving the PNG format can succeed.
- Modify DEBUG call in ImageIO::PNG::load(): concatenation of an empty string seemingly causing a string overflow when compiling on Windows.
@Lestropie
Copy link
Member Author

@daljit46: Clang-tidy is currently failing for reasons other than the content of the PR; are you able to have a look?

@daljit46
Copy link
Member

It seems like we need to update our clang-tidy-review action to its latest version (0.20.0). @Lestropie shall we do that in this PR or in a separate one?

@Lestropie
Copy link
Member Author

shall we do that in this PR or in a separate one?

Go separate: better provenance, and it's not a CI block here anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants