Skip to content

Remove turbojpeg#67

Merged
ruccho merged 4 commits intomainfrom
feature/remove_turbojpeg
Nov 17, 2025
Merged

Remove turbojpeg#67
ruccho merged 4 commits intomainfrom
feature/remove_turbojpeg

Conversation

@ruccho
Copy link
Collaborator

@ruccho ruccho commented Nov 17, 2025

On iOS, turbojpeg that unienc depends on for the legacy mode is confused with Unity's one by the linker because unienc is a static library for iOS. ImageConversion.EncodeToJPG() emits an error when libunienc.a is linked because these two versions of turbojpeg is incompatible.

JPEG parameter struct mismatch: library thinks size is 520, caller expects 504

This PR removes turbojpeg and uses ImageConversion.LoadImage() instead. It is significant performance regression but reasonable because turbojpeg is only used for the legacy mode, which is already deprecated.

@ruccho ruccho requested a review from hkmt-mmy November 17, 2025 08:47
@ruccho ruccho merged commit f0f5082 into main Nov 17, 2025
@ruccho ruccho deleted the feature/remove_turbojpeg branch November 17, 2025 09:21
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.

2 participants