Skip to content

[vImage] Don't Infer Pixel Size in Buffer Copy #24389

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

Merged

Conversation

FlexMonkey
Copy link
Contributor

@FlexMonkey FlexMonkey commented Apr 30, 2019

A buffer's rowBytes doesn't have a direct relationship with its width, so rowBytes / Int(width) isn't a good way to calculate pixel size. To resolve this, I've added pixelSize as a parameter to vImage_Buffer.copy.

Attention: @stephentyrone

A buffer's `rowBytes` doesn't have a direct relationship with its `height`, so `rowBytes / Int(width)` isn't a good way to calculate pixel size. To resolve this, I've added `pixelSize` as a parameter to `vImage_Buffer.copy`.
@stephentyrone
Copy link
Contributor

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 12cb781 into swiftlang:master Apr 30, 2019
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.

3 participants