X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_input.h;h=6c33cec9ef4525b0d77e479dc76af7dce2fb8777;hp=379279fbf7e101afda0684b7e446c7d7b0f93299;hb=e4962fca40fbd8c229f4ca1103b5addbd7375bd4;hpb=4a9b478d0cc333e7b47a766d3d27ffe67c08f15a diff --git a/ycbcr_input.h b/ycbcr_input.h index 379279f..6c33cec 100644 --- a/ycbcr_input.h +++ b/ycbcr_input.h @@ -30,6 +30,7 @@ public: YCbCrInput(const ImageFormat &image_format, const YCbCrFormat &ycbcr_format, unsigned width, unsigned height); + ~YCbCrInput(); virtual std::string effect_type_id() const { return "YCbCrInput"; } @@ -47,7 +48,7 @@ public: 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 @@ -66,12 +67,6 @@ public: 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) { @@ -80,11 +75,6 @@ public: } } - unsigned get_pitch(unsigned channel) { - assert(channel >= 0 && channel < 3); - return pitch[channel]; - } - private: ImageFormat image_format; YCbCrFormat ycbcr_format;