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

We should impl AsRef<[u16]> for Plane depending on the bit_depth #110

Open
haixuanTao opened this issue Mar 30, 2025 · 2 comments
Open

We should impl AsRef<[u16]> for Plane depending on the bit_depth #110

haixuanTao opened this issue Mar 30, 2025 · 2 comments

Comments

@haixuanTao
Copy link
Contributor

Currently, we only retrieve raw parts of Plane as u8 independently from the data being coded with a 10 or 12 bit depth and I think it would be convenient to reference a plane as a u16 when it is the appropriate type.

Thanks for this awesome crate :)

@sdroege
Copy link
Contributor

sdroege commented Mar 30, 2025

I'm using https://docs.rs/byte-slice-cast for that purpose, FWIW.

@haixuanTao
Copy link
Contributor Author

Yeah, I use https://docs.rs/bytemuck/latest/bytemuck/ same thing :)

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

No branches or pull requests

2 participants