]> git.sesse.net Git - movit/blobdiff - flat_input.cpp
Add YCbCr input. Required a bit of reworking of the sRGB extension stuff, but seems...
[movit] / flat_input.cpp
index 2541dc45af94c50383a8a89d9b1639dd1650b480..c7f417b873ddc64496d07e5311fa24e1c91c1127 100644 (file)
@@ -12,13 +12,13 @@ FlatInput::FlatInput(ImageFormat image_format, unsigned width, unsigned height)
        : image_format(image_format),
          needs_update(false),
          finalized(false),
-         use_srgb_texture_format(false),
+         output_linear_gamma(false),
          needs_mipmaps(false),
          width(width),
          height(height),
          pitch(width)
 {
-       register_int("use_srgb_texture_format", &use_srgb_texture_format);
+       register_int("output_linear_gamma", &output_linear_gamma);
        register_int("needs_mipmaps", &needs_mipmaps);
 }
 
@@ -26,7 +26,7 @@ void FlatInput::finalize()
 {
        // Translate the input format to OpenGL's enums.
        GLenum internal_format;
-       if (use_srgb_texture_format) {
+       if (output_linear_gamma) {
                internal_format = GL_SRGB8;
        } else {
                internal_format = GL_RGBA8;