]> git.sesse.net Git - movit/blobdiff - util.cpp
Add an effect to do re-slicing of the image, for overlap/discard.
[movit] / util.cpp
index b86e3f77c9d4842fdea43cfbfe025bc786a2fa1c..8162f712d02eed8f5b47b7f481b977b827f56f8f 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -215,4 +215,9 @@ void cleanup_vertex_attribute(GLuint glsl_program_num, const string &attribute_n
        check_error();
 }
 
+unsigned div_round_up(unsigned a, unsigned b)
+{
+       return (a + b - 1) / b;
+}
+
 }  // namespace movit