// Unit tests for BlurEffect.
+#include <GL/glew.h>
#include <math.h>
#include <string.h>
// We don't do any fancy gamut mapping or similar; colors that are out-of-gamut
// will simply stay out-of-gamut, and probably clip in the output stage.
-#include <string>
#include <Eigen/Core>
+#include <string>
#include "effect.h"
#include "image_format.h"
// Unit tests for DeconvolutionSharpenEffect.
+#include <GL/glew.h>
#include <math.h>
#include <stdlib.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <sys/time.h>
#include <time.h>
// Unit tests for DiffusionEffect.
+#include <GL/glew.h>
+
#include "diffusion_effect.h"
#include "effect_chain.h"
#include "gtest/gtest.h"
#include <GL/glew.h>
#include <assert.h>
+#include <stdio.h>
#include <algorithm>
#include "dither_effect.h"
#include "effect.h"
#include "effect_util.h"
-#include "util.h"
using namespace std;
#include <algorithm>
#include <set>
#include <stack>
+#include <utility>
#include <vector>
#include "alpha_division_effect.h"
#include "effect_chain.h"
#include "flat_input.h"
#include "gtest/gtest.h"
+#include "init.h"
#include "input.h"
#include "mirror_effect.h"
#include "multiply_effect.h"
#include <GL/glew.h>
+#include <math.h>
-#include "fft_pass_effect.h"
#include "effect_util.h"
+#include "fft_pass_effect.h"
#include "util.h"
using namespace std;
// scaling), and as fp16 has quite limited range at times, this can be relevant
// on some GPUs for larger sizes.
-#include <stdio.h>
#include <GL/glew.h>
+#include <assert.h>
+#include <stdio.h>
#include <string>
#include "effect.h"
// Unit tests for FFTPassEffect.
#include <math.h>
+#include <stdlib.h>
+#include <string.h>
#include "effect_chain.h"
+#include "fft_pass_effect.h"
+#include "glew.h"
#include "gtest/gtest.h"
#include "image_format.h"
-#include "fft_pass_effect.h"
#include "multiply_effect.h"
#include "test_util.h"
-#include <math.h>
-#include <string.h>
#include <assert.h>
-#include "gamma_compression_effect.h"
#include "effect_util.h"
+#include "gamma_compression_effect.h"
#include "util.h"
using namespace std;
// Note that Movit's internal formats generally do not have enough accuracy
// for 12-bit input or output.
+#include <GL/glew.h>
#include <string>
#include "effect.h"
// However, the accuracy tests are somewhat simpler, since we
// only need to care about absolute errors and not relative.
-#include <math.h>
#include <GL/glew.h>
+#include <math.h>
+
#include "gtest/gtest.h"
+#include "gtest/gtest-message.h"
#include "image_format.h"
#include "test_util.h"
-#include <math.h>
#include <assert.h>
#include "effect_util.h"
// Note that Movit's internal formats generally do not have enough accuracy
// for 12-bit input or output.
+#include <GL/glew.h>
#include <string>
#include "effect.h"
// Unit tests for GammaExpansionEffect.
-#include <math.h>
#include <GL/glew.h>
+#include <math.h>
#include "gamma_expansion_effect.h"
#include "gtest/gtest.h"
+#include "gtest/gtest-message.h"
#include "test_util.h"
TEST(GammaExpansionEffectTest, sRGB_KeyValues) {
// Unit tests for GlowEffect.
+#include <GL/glew.h>
#include <math.h>
#include "effect_chain.h"
// Unit tests for LiftGammaGainEffect.
+#include <GL/glew.h>
+
#include "effect_chain.h"
#include "gtest/gtest.h"
#include "image_format.h"
-#include <GL/glew.h>
-
#include "multiply_effect.h"
#include "util.h"
// Unit tests for AlphaMultiplicationEffect.
+#include <GL/glew.h>
#include <stddef.h>
#include "effect_chain.h"
// Unit tests for ResampleEffect.
+#include <GL/glew.h>
#include <math.h>
-#include <iomanip>
#include "effect_chain.h"
#include "flat_input.h"
+#include "glew.h"
#include "gtest/gtest.h"
#include "image_format.h"
#include "resample_effect.h"
-#include "resource_pool.h"
-
-#include <stdio.h>
+#include <assert.h>
#include <pthread.h>
-
+#include <stdio.h>
+#include <stdlib.h>
#include <algorithm>
#include <map>
#include <string>
#include <utility>
+#include "glew.h"
#include "init.h"
+#include "resource_pool.h"
#include "util.h"
using namespace std;
// safely called from multiple threads at the same time, provided they have
// separate (but sharing) OpenGL contexts.
+#include <GL/glew.h>
+#include <pthread.h>
+#include <stddef.h>
#include <list>
#include <map>
#include <string>
#include <utility>
-#include <GL/glew.h>
-#include <pthread.h>
class ResourcePool {
public:
#include <assert.h>
-#include <gtest/gtest-message.h>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include "flat_input.h"
+#include "glew.h"
#include "gtest/gtest.h"
+#include "gtest/gtest-message.h"
#include "init.h"
#include "resource_pool.h"
#include "test_util.h"
// Unit tests for UnsharpMaskEffect.
+#include <GL/glew.h>
#include <math.h>
#include "effect_chain.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <Eigen/Core>
#include <GL/glew.h>
+#include <assert.h>
#include <math.h>
#include "effect_util.h"
-#include "vignette_effect.h"
#include "util.h"
+#include "vignette_effect.h"
using namespace std;
// Unit tests for VignetteEffect.
+#include <GL/glew.h>
#include <math.h>
#include "effect_chain.h"
-#include "vignette_effect.h"
#include "gtest/gtest.h"
#include "image_format.h"
#include "test_util.h"
+#include "vignette_effect.h"
TEST(VignetteEffectTest, HugeInnerRadiusDoesNothing) {
const int size = 4;
#include "colorspace_conversion_effect.h"
#include "d65.h"
#include "effect_util.h"
+#include "image_format.h"
#include "util.h"
#include "white_balance_effect.h"
// Unit tests for WhiteBalanceEffect.
-#include <iomanip>
+#include <GL/glew.h>
#include "effect_chain.h"
#include "gtest/gtest.h"
// Unit tests for YCbCrInput.
// FIXME: This class really ought to support mipmaps.
+#include <GL/glew.h>
#include <stddef.h>
#include "effect_chain.h"
#include "gtest/gtest.h"
#include "test_util.h"
-#include "ycbcr_input.h"
#include "util.h"
+#include "ycbcr_input.h"
TEST(YCbCrInput, Simple444) {
const int width = 1;