/* ------------------------------------------------------------------
 * GEM - Graphics Environment for Multimedia
 *
 * SPDX-FileCopyrightText: © 2002, Chris Clepper and the GEM contributors
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * ------------------------------------------------------------------
 */

#ifndef _INCLUDE__GEM_PIXES_PIX_SCANLINE_H_
#define _INCLUDE__GEM_PIXES_PIX_SCANLINE_H_

#include "Base/GemPixObj.h"

/*-----------------------------------------------------------------
-------------------------------------------------------------------
CLASS
    pix_scanline



KEYWORDS
    pix
    yuv

DESCRIPTION

   does manipulations of the rows of pixels by copying, deleting or moving them

-----------------------------------------------------------------*/

class GEM_EXTERN pix_scanline : public GemPixObj
{
  CPPEXTERN_HEADER(pix_scanline, GemPixObj);

public:

  //////////
  // Constructor
  pix_scanline();

protected:

  //////////
  // Destructor
  virtual ~pix_scanline();

  //////////
  // Do the processing
  virtual void    processImage(imageStruct &image);
  virtual void    processYUVImage(imageStruct &image);
  //    virtual void  processYUVAltivec(imageStruct &image);

  unsigned char  *saved;
  int             m_interlace,m_mode;
  t_inlet         *inletScanline;


private:

  //////////
  // Static member functions

  static void rollCallback       (void *data, t_float value);
  static void modeCallback       (void *data, t_float value);


};

#endif
