X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_input.cpp;h=d3d71749a5be4eef4bdbbc1f50768b21e0af7e33;hp=6e73d3e2015e219e0fc7f1b7a3961515db96e146;hb=92573f7be18bfca16dd3292cbe536d7d7912198f;hpb=85f9719bf3519b1f1942738d11601584f5d38725 diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index 6e73d3e..d3d7174 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -13,6 +13,8 @@ using namespace Eigen; using namespace std; +namespace movit { + namespace { // OpenGL has texel center in (0.5, 0.5), but different formats have @@ -63,7 +65,6 @@ YCbCrInput::YCbCrInput(const ImageFormat &image_format, unsigned width, unsigned height) : image_format(image_format), ycbcr_format(ycbcr_format), - finalized(false), needs_mipmaps(false), width(width), height(height), @@ -96,11 +97,6 @@ YCbCrInput::~YCbCrInput() } } -void YCbCrInput::finalize() -{ - finalized = true; -} - void YCbCrInput::set_gl_state(GLuint glsl_program_num, const string& prefix, unsigned *sampler_num) { for (unsigned channel = 0; channel < 3; ++channel) { @@ -255,3 +251,5 @@ void YCbCrInput::invalidate_pixel_data() } } } + +} // namespace movit