summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/utils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2018-11-18 05:47:43 +0100
committerJan Ekström <jeebjp@gmail.com>2019-04-21 23:55:22 +0300
commit9f7dcc0726ab635fb34fb7310e54b1aec9467f14 (patch)
tree101680ce8c4e729f6eba6bc67db3e5f33a12c160 /video/out/vulkan/utils.h
parenta3c808c6c8db685b492bd61fe4af01cb42ceaf18 (diff)
downloadmpv-9f7dcc0726ab635fb34fb7310e54b1aec9467f14.tar.bz2
mpv-9f7dcc0726ab635fb34fb7310e54b1aec9467f14.tar.xz
mp_image: align stride to multiple of texel size
This helps with compatibility and/or performance in particular for oddly-sized formats like rgb24. We use a loop to avoid having to calculate the lcm (or waste bytes in the extremely common case of the byte size and the stride align having shared factors).
Diffstat (limited to 'video/out/vulkan/utils.h')
0 files changed, 0 insertions, 0 deletions