// Unit tests for DitherEffect.
+//
+// Note: Dithering of multiple outputs is tested (somewhat weakly)
+// in YCbCrConversionEffectTest.
#include <epoxy/gl.h>
#include <math.h>
#include "gtest/gtest.h"
#include "image_format.h"
#include "test_util.h"
+#include "util.h"
namespace movit {
unsigned char out_data[size * size];
EffectChainTester tester(data, size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, GL_RGBA8);
+ check_error();
tester.get_chain()->set_dither_bits(8);
+ check_error();
tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR);
+ check_error();
expect_equal(expected_data, out_data, size, size);
}