Skip to content

Add a safe wrapper for image_mirror_ptr()#440

Open
Shnatsel wants to merge 1 commit intomozilla:masterfrom
Shnatsel:safe-mirror
Open

Add a safe wrapper for image_mirror_ptr()#440
Shnatsel wants to merge 1 commit intomozilla:masterfrom
Shnatsel:safe-mirror

Conversation

@Shnatsel
Copy link

This is needed for adding AVIF orientation support to the image crate: image-rs/image#2750

I'm using ptr::read_unaligned as a hedge against future changes, the struct is 1 byte anyway so this doesn't matter either way. I'm happy to change it to ptr::read if you prefer.

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.

1 participant