]> git.sesse.net Git - nageru/blobdiff - flow.h
Make the output actually follow the input in an interpolated fashion.
[nageru] / flow.h
diff --git a/flow.h b/flow.h
index 1cf0b1e765b78283747fa8c244c366b1829c26e5..6475d9b7116d7bff2d61b1769176efb2ea17a0ce 100644 (file)
--- a/flow.h
+++ b/flow.h
@@ -21,7 +21,7 @@ struct OperatingPoint {
        unsigned search_iterations;  // Halved from the paper.
        unsigned patch_size_pixels;
        float patch_overlap_ratio;
-       bool variational_refinement;  // TODO: Actually disabling this is not implemented yet!
+       bool variational_refinement;
 
        // Not part of the original paper; used for interpolation.
        // NOTE: Values much larger than 1.0 seems to trigger Haswell's “PMA stall”;
@@ -78,6 +78,8 @@ static constexpr OperatingPoint operating_point4 = {
        8.0f    // Splat size (pixels).
 };
 
+int find_num_levels(int width, int height);
+
 // A class that caches FBOs that render to a given set of textures.
 // It never frees anything, so it is only suitable for rendering to
 // the same (small) set of textures over and over again.