]> git.sesse.net Git - movit/blobdiff - ycbcr_input.h
Add a hack so that RGBA pixels are flipped properly in unit tests.
[movit] / ycbcr_input.h
index 379279fbf7e101afda0684b7e446c7d7b0f93299..76afc3aa676edc43579d4da21fed51c828de0740 100644 (file)
@@ -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"; }
 
@@ -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;