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

WIP: Add stage epf #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

WIP: Add stage epf #96

wants to merge 1 commit into from

Conversation

inflation
Copy link
Contributor

Just a quick POC for easier stage 0. It seems to have a lot of offset manipulations so fingers crossed 🤞 for the compiler to get rid of the bound checks.

It's also awkward to work with the row type since it's behind a large &mut[Channel] reference.

@veluca93
Copy link
Member

Just a quick POC for easier stage 0. It seems to have a lot of offset manipulations so fingers crossed 🤞 for the compiler to get rid of the bound checks.

I wouldn't worry about that yet, we'll speed things up after we have a complete decoder :-)

It's also awkward to work with the row type since it's behind a large &mut[Channel] reference.

How so?

/// (inverse) multiplier for sigma on borders
border_sad_mul: f32,
channel_scale: [f32; 3],
sigma: Arc<[f32]>,
Copy link
Member

Choose a reason for hiding this comment

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

Why is this not an Arc<Image>?

@inflation
Copy link
Contributor Author

inflation commented Feb 10, 2025

Just did some refactoring. The row structure is not so bad after rethinking.

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