YCbCrInput(const ImageFormat &image_format,
const YCbCrFormat &ycbcr_format,
unsigned width, unsigned height);
+ ~YCbCrInput();
virtual std::string effect_type_id() const { return "YCbCrInput"; }
unsigned get_width() const { return width; }
unsigned get_height() const { return height; }
- ColorSpace get_color_space() const { return image_format.color_space; }
+ Colorspace get_color_space() const { return image_format.color_space; }
GammaCurve get_gamma_curve() const { return image_format.gamma_curve; }
// Tells the input where to fetch the actual pixel data. Note that if you change
needs_update = true;
}
- const unsigned char *get_pixel_data(unsigned channel) const
- {
- assert(channel >= 0 && channel < 3);
- return pixel_data[channel];
- }
-
void set_pitch(unsigned channel, unsigned pitch) {
assert(channel >= 0 && channel < 3);
if (this->pitch[channel] != pitch) {
}
}
- unsigned get_pitch(unsigned channel) {
- assert(channel >= 0 && channel < 3);
- return pitch[channel];
- }
-
private:
ImageFormat image_format;
YCbCrFormat ycbcr_format;