Skip to content

Support compressed (lossless/lossy) Fujifilm RAF files#53

Open
naorunaoru wants to merge 2 commits intopedrocr:masterfrom
naorunaoru:master
Open

Support compressed (lossless/lossy) Fujifilm RAF files#53
naorunaoru wants to merge 2 commits intopedrocr:masterfrom
naorunaoru:master

Conversation

@naorunaoru
Copy link

Opening it as a draft, because the code requires some cleanup, but still: it works.

I'm using it in my project:
https://github.com/naorunaoru/x-veon

@pedrocr
Copy link
Owner

pedrocr commented Feb 14, 2026

The changes look in general fine but there's several different things in them besides the RAF changes. Maybe split it into different PRs so we can go incrementally?

@naorunaoru
Copy link
Author

@pedrocr Yes, there's some leftover stuff from WASM tests. I'll move it out once I got more time. Also I was trying to revive the test harness but without much success for now.

@pedrocr
Copy link
Owner

pedrocr commented Feb 15, 2026

On the test harness I may have other local changes for it. And for camera support I also have some automated tooling that's not on this repo.

Add a decoder for Fujifilm's compressed RAF format, supporting both
lossless (IS version 0x0110) and lossy (IS version 0x0010) compression.

The decoder handles the Fuji-specific interleaved block structure with
gradient-based prediction, outputting pixels at a fixed CFA phase
matching libraw/rawpy. Zero-filled sensor borders are auto-detected
and used to set correct crop values.
@naorunaoru naorunaoru marked this pull request as ready for review March 9, 2026 22:48
@naorunaoru
Copy link
Author

@pedrocr I've cleaned up the code. Let me know if you'd also like to exclude adding more Fuji cameras from this PR.

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