]> git.sesse.net Git - movit/blobdiff - colorspace_conversion_effect.cpp
Make the ResampleEffect accuracy test stricter.
[movit] / colorspace_conversion_effect.cpp
index bb23afc74da6270aa7d738d9005a2aebcf61e6e4..0fcea612c4198b8cf8d8a96d40bfbea4c8b25f8e 100644 (file)
@@ -7,6 +7,7 @@
 #include "util.h"
 
 using namespace Eigen;
+using namespace std;
 
 // Color coordinates from Rec. 709; sRGB uses the same primaries.
 static const double rec709_x_R = 0.640, rec709_x_G = 0.300, rec709_x_B = 0.150;
@@ -30,7 +31,7 @@ ColorspaceConversionEffect::ColorspaceConversionEffect()
        register_int("destination_space", (int *)&destination_space);
 }
 
-Matrix3d get_xyz_matrix(Colorspace space)
+Matrix3d ColorspaceConversionEffect::get_xyz_matrix(Colorspace space)
 {
        if (space == COLORSPACE_XYZ) {
                return Matrix3d::Identity();
@@ -126,7 +127,7 @@ Matrix3d get_xyz_matrix(Colorspace space)
        return m;
 }
 
-std::string ColorspaceConversionEffect::output_fragment_shader()
+string ColorspaceConversionEffect::output_fragment_shader()
 {
        // Create a matrix to convert from source space -> XYZ,
        // another matrix to convert from XYZ -> destination space,