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

Add libheif (plus some small fixes) #2796

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

Conversation

L4cache
Copy link
Contributor

@L4cache L4cache commented Nov 18, 2024

Implements #2516
It's not perfect but at least most important functions are working, and I don't think I can fix the remaining issues.

build/media-suite_compile.sh Show resolved Hide resolved
build/media-suite_compile.sh Show resolved Hide resolved
Comment on lines 2445 to 2452
sed -i 's/find_package(vvdec 2.3.0)/find_package(vvdec 3.0.0)/' CMakeLists.txt
sed -i 's/find_package(Doxygen)/#/' CMakeLists.txt # no configurable option?
sed -i 's/find_package(Brotli)/#/' CMakeLists.txt # linking difficulties
sed -i 's/find_package(TIFF)/#/' heifio/CMakeLists.txt # configure & linking difficulties
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to fix these upstream if possible. If not, or if upstream rejects changes to fix these, then I am fine with adding them here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll open issue in the upstream... later... it's midnight where I live...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Man, I don't think they are going to be fixed anytime soon, maybe we can merge it for now, or transfer them into patches?

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer transferring to patches since it makes it easier for me to know if it breaks or is no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you push to the branch and patches repo when you decide to merge this PR? Or shall I do it and also open a PR in the patches repo?

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer that you do it so the authorship of the changes is preserved

build/media-suite_compile.sh Show resolved Hide resolved
build/media-suite_compile.sh Show resolved Hide resolved
@L4cache
Copy link
Contributor Author

L4cache commented Dec 7, 2024

Where's that comment suggesting a shared option?

Transfer the CMakeLists edits to patch.
Add shared option.
And some cosmetics.
@1480c1
Copy link
Member

1480c1 commented Dec 7, 2024

Where's that comment suggesting a shared option?

Idk, I think it was something about making it so that most of the binaries are shared or something since they link a lot of libraries?

@gitoss
Copy link

gitoss commented Dec 7, 2024

Where's that comment suggesting a shared option?

Idk, I think it was something about making it so that most of the binaries are shared or something since they link a lot of libraries?

I moved the comment to the feature request - essentially, with shared compilation it's 4x small exe + 1x large heif.dll instead of 4x large exe. Compling av1an w/ mabs has both options, shared and static.

I know the shared result from compiling libheif myself manually once, but gave up on it due to the hassle with broken doxygen (and everything else the pull reques solves by patching/sed)

#2516 (comment)

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.

3 participants