Skip to content

deps: use get_plane2 introduced by libheif 1.20.2#4851

Merged
lgritz merged 2 commits into
AcademySoftwareFoundation:mainfrom
toge:follow-libheif-1_20_2
Aug 7, 2025
Merged

deps: use get_plane2 introduced by libheif 1.20.2#4851
lgritz merged 2 commits into
AcademySoftwareFoundation:mainfrom
toge:follow-libheif-1_20_2

Conversation

@toge

@toge toge commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Description

libheif 1.20.2 introduces get_plane2() for compatibility. ref

Because get_plane() has been marked as deprecated, we should use get_plane2() instead.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable. (Check if there is no
    need to update the documentation, for example if this is a bug fix that
    doesn't change the API.)
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • If I added or modified a C++ API call, I have also amended the
    corresponding Python bindings (and if altering ImageBufAlgo functions, also
    exposed the new functionality as oiiotool options).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format before submitting, I definitely will look at the CI
    test that runs clang-format and fix anything that it highlights as being
    nonconforming.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 7, 2025

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

Signed-off-by: toge <toge.mail@gmail.com>
@toge toge force-pushed the follow-libheif-1_20_2 branch from 8e5d71f to 2d3f8c1 Compare August 7, 2025 02:29
Comment thread src/heif.imageio/heifinput.cpp Outdated

@lgritz lgritz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix.

I tested it on my end as well -- and since on my laptop, Homebrew just upgraded to the new libheif which was broken, and this fixes it perfectly, I can verify directly that this is the right fix.

Co-authored-by: Larry Gritz <lg@larrygritz.com>
Signed-off-by: toge <toge.mail@gmail.com>
@lgritz

lgritz commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator

Just out of curiosity, do you know why this was done on the libheif side? It looks like the old and new functions take the same arguments, so why make a new function and deprecate the old one instead of just changing the internal implementation of the one that existed?

@kmilos

kmilos commented Aug 7, 2025

Copy link
Copy Markdown

See strukturag/libheif#1566

@lgritz lgritz merged commit ae46891 into AcademySoftwareFoundation:main Aug 7, 2025
28 checks passed
@lgritz lgritz added the build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. label Aug 7, 2025
@lgritz lgritz changed the title use get_plane2 introduced by libheif 1.20.2 deps: use get_plane2 introduced by libheif 1.20.2 Aug 7, 2025
@toge

toge commented Aug 7, 2025

Copy link
Copy Markdown
Contributor Author

@lgritz
Thanks!

@lgritz

lgritz commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator

I'll do a backport immediately and a patch for 3.0.9.1 since people on Mac in particular might immediately run into this build break if they're getting their libheif dependency from Homebrew.

lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Aug 7, 2025
…ndation#4851)

libheif 1.20.2 introduces `get_plane2()` for compatibility.
[ref](strukturag/libheif#1566)

Because `get_plane()` has been marked as deprecated, we should use
`get_plane2()` instead.

---------

Signed-off-by: toge <toge.mail@gmail.com>
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Sep 14, 2025
…ndation#4851)

libheif 1.20.2 introduces `get_plane2()` for compatibility.
[ref](strukturag/libheif#1566)

Because `get_plane()` has been marked as deprecated, we should use
`get_plane2()` instead.

---------

Signed-off-by: toge <toge.mail@gmail.com>
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Sep 15, 2025
…ndation#4851)

libheif 1.20.2 introduces `get_plane2()` for compatibility.
[ref](strukturag/libheif#1566)

Because `get_plane()` has been marked as deprecated, we should use
`get_plane2()` instead.

---------

Signed-off-by: toge <toge.mail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants