WIP: Add JPEG XL import/export with OpenImageIO #118989

Draft
Peter Kovář wants to merge 1 commits from PEAK/blender:peak-patch-jxl into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

This PR adds JPEG XL I/O based on Initial JPEG XL support for image input/output #4055

Signed-off-by: Peter Kovář peter.kovar@reflexion.tv

This PR adds JPEG XL I/O based on [Initial JPEG XL support for image input/output #4055](https://github.com/AcademySoftwareFoundation/OpenImageIO/pull/4055) Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
Peter Kovář added 1 commit 2024-03-01 22:45:19 +01:00
252b02dd8b Add JPEG XL import/export with OpenImageIO
Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
Jesse Yurkovich changed title from Add JPEG XL import/export with OpenImageIO to WIP: Add JPEG XL import/export with OpenImageIO 2024-03-02 22:35:15 +01:00

I've added the "WIP" tag to the title as I think it's a bit too early to review this on our side.

We'll need to wait for OIIO to actually accept the patch AND for them to make an official release with the changes before spending time here.

Logistics:
The platform maintainers first need to decide if they're willing to accept a new dependency on libjxl because we'll need precompiled libraries and build system support for all the platforms if we decide to support the format at all.

Then the next opportunity to update our library dependencies, for OIIO and libjxl, is around the transition from bcon1 to bcon2 scheduled for May 1st, so that would be the earliest that a commit on Blender's side could be made. This assumes OIIO has made an official release by then.

I'll comment on the upstream patch as I have further questions about support for different bit-depths, compression settings, and alpha channel processing.

I've added the "WIP" tag to the title as I think it's a bit too early to review this on our side. We'll need to wait for OIIO to actually accept the patch AND for them to make an official release with the changes before spending time here. Logistics: The platform maintainers first need to decide if they're willing to accept a new dependency on `libjxl` because we'll need precompiled libraries and build system support for all the platforms if we decide to support the format at all. Then the next opportunity to update our library dependencies, for OIIO and `libjxl`, is around the transition from bcon1 to bcon2 scheduled for May 1st, so that would be the earliest that a commit on Blender's side could be made. This assumes OIIO has made an official release by then. I'll comment on the upstream patch as I have further questions about support for different bit-depths, compression settings, and alpha channel processing.
First-time contributor

The JXL format actually has reserved channels for Alpha, Depth and Thermal (you never know what people will do with Blender :P). On the Jpeg XL Discord server we were also discussing if OIIO would be able to make use of them.

Libjxl's tools (cjxl) automatically detect the bitdepth and encode it accordingly, so it's another case where OIIO might actually be restrictive, but I'll have to read the upstream patch as you mentioned.
Glad to see work is being done though.

The JXL format actually has reserved channels for Alpha, Depth and Thermal (you never know what people will do with Blender :P). On the Jpeg XL Discord server we were also discussing if OIIO would be able to make use of them. Libjxl's tools (cjxl) automatically detect the bitdepth and encode it accordingly, so it's another case where OIIO might actually be restrictive, but I'll have to read the upstream patch as you mentioned. Glad to see work is being done though.
This pull request is marked as a work in progress.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u peak-patch-jxl:PEAK-peak-patch-jxl
git checkout PEAK-peak-patch-jxl
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#118989
No description provided.