From: Steinar H. Gunderson Date: Wed, 29 Jul 2015 11:53:44 +0000 (+0200) Subject: Unbreak YCbCrInput (it needs to still support setting the "needs_mipmaps" int to... X-Git-Tag: 1.2.0~46 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=772ea97db9042d4357814b834563036217d548b9 Unbreak YCbCrInput (it needs to still support setting the "needs_mipmaps" int to zero). --- diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index cf6632f..6cf3116 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -241,4 +241,13 @@ void YCbCrInput::invalidate_pixel_data() } } +bool YCbCrInput::set_int(const std::string& key, int value) +{ + if (key == "needs_mipmaps") { + // We currently do not support this. + return (value == 0); + } + return Effect::set_int(key, value); +} + } // namespace movit diff --git a/ycbcr_input.h b/ycbcr_input.h index 3049277..4c7b3e9 100644 --- a/ycbcr_input.h +++ b/ycbcr_input.h @@ -91,6 +91,8 @@ public: resource_pool = chain->get_resource_pool(); } + bool set_int(const std::string& key, int value); + private: ImageFormat image_format; YCbCrFormat ycbcr_format;