// Unit tests for YCbCrInput.
-// FIXME: This class really ought to support mipmaps.
-#include <GL/glew.h>
+#include <epoxy/gl.h>
#include <stddef.h>
#include "effect_chain.h"
#include "util.h"
#include "ycbcr_input.h"
-TEST(YCbCrInput, Simple444) {
+namespace movit {
+
+TEST(YCbCrInputTest, Simple444) {
const int width = 1;
const int height = 5;
expect_equal(expected_data, out_data, 4 * width, height, 0.025, 0.002);
}
-TEST(YCbCrInput, FullRangeRec601) {
+TEST(YCbCrInputTest, FullRangeRec601) {
const int width = 1;
const int height = 5;
expect_equal(expected_data, out_data, 4 * width, height, 0.025, 0.002);
}
-TEST(YCbCrInput, Rec709) {
+TEST(YCbCrInputTest, Rec709) {
const int width = 1;
const int height = 5;
expect_equal(expected_data, out_data, 4 * width, height, 0.025, 0.002);
}
-TEST(YCbCrInput, Rec2020) {
+TEST(YCbCrInputTest, Rec2020) {
const int width = 1;
const int height = 5;
expect_equal(expected_data, out_data, 4 * width, height, 0.025, 0.002);
}
-TEST(YCbCrInput, Subsampling420) {
+TEST(YCbCrInputTest, Subsampling420) {
const int width = 4;
const int height = 4;
expect_equal(expected_data, out_data, width, height, 0.01, 0.001);
}
-TEST(YCbCrInput, Subsampling420WithNonCenteredSamples) {
+TEST(YCbCrInputTest, Subsampling420WithNonCenteredSamples) {
const int width = 4;
const int height = 4;
}
// Yes, some 4:2:2 formats actually have this craziness.
-TEST(YCbCrInput, DifferentCbAndCrPositioning) {
+TEST(YCbCrInputTest, DifferentCbAndCrPositioning) {
const int width = 4;
const int height = 4;
expect_equal(expected_data_blue, out_data, width, height, 0.01, 0.001);
}
-TEST(YCbCrInput, PBO) {
+TEST(YCbCrInputTest, PBO) {
const int width = 1;
const int height = 5;
glDeleteBuffers(1, &pbo);
}
+
+} // namespace movit