unsigned width, unsigned height)
: image_format(image_format),
ycbcr_format(ycbcr_format),
- needs_mipmaps(false),
width(width),
height(height),
resource_pool(NULL)
heights[2] = height / ycbcr_format.chroma_subsampling_y;
pixel_data[0] = pixel_data[1] = pixel_data[2] = NULL;
-
- register_int("needs_mipmaps", &needs_mipmaps);
}
YCbCrInput::~YCbCrInput()
}
}
+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