]> git.sesse.net Git - movit/blobdiff - util.h
Add an effect to do re-slicing of the image, for overlap/discard.
[movit] / util.h
diff --git a/util.h b/util.h
index 627c62934d7ce857ef4bb2263e35c6d1e30d4ec9..c59231d205d2537c4ec965a4b5b85cf4162ff8f4 100644 (file)
--- a/util.h
+++ b/util.h
@@ -34,6 +34,9 @@ void print_3x3_matrix(const Eigen::Matrix3d &m);
 // Output a GLSL 3x3 matrix declaration.
 std::string output_glsl_mat3(const std::string &name, const Eigen::Matrix3d &m);
 
+// Calculate a / b, rounding up. Does not handle overflow correctly.
+unsigned div_round_up(unsigned a, unsigned b);
+
 // Calculate where to sample, and with what weight, if one wants to use
 // the GPU's bilinear hardware to sample w1 * x[0] + w2 * x[1].
 //