/*-----------------------------------------------------------------
LOG
    GEM - Graphics Environment for Multimedia

    Change pix to greyscale

    Copyright (c) 1997-1999 Mark Danks. mark@danks.org
    For information on usage and redistribution, and for a DISCLAIMER OF ALL
    WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.

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

#ifndef INCLUDE_PIX_RTX_H_
#define INCLUDE_PIX_RTX_H_

#include "Base/GemPixObj.h"

/*-----------------------------------------------------------------
-------------------------------------------------------------------
CLASS
    pix_rtx
    
  rtx-transform a series of pictures (especially movies, videos,...)
  note that the pix_movie object cannot be processed with pix_rtx !!!

  2803:forum::für::umläute:2000

  this code is published under the Gnu GeneralPublicLicense that should be distributed with gem & pd



KEYWORDS
    pix
    
DESCRIPTION
   
-----------------------------------------------------------------*/
class GEM_EXTERN pix_rtx : public GemPixObj
{
    CPPEXTERN_HEADER(pix_rtx, GemPixObj)

    public:

	    //////////
	    // Constructor
    	pix_rtx();
    	
    protected:
    	
    	//////////
    	// Destructor
    	virtual ~pix_rtx();

      //////////
      // create a buffer that fits to the current imageSize
      virtual void   create_buffer(imageStruct image);

      //////////
      // delete the buffer
      virtual void   delete_buffer();

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

    	//////////
    	// Do the processing - this is a no-op
    	virtual void 	processTXImage(imageStruct &image) { }

      //////////
      // the huge double buffer and other tx-formation
      imageStruct    buffer;
      int            bufcount;    // where to read/write

};

#endif	// for header file
