mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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`.
8.5 KiB
8.5 KiB