lms-video/Gem/plugins/videoSGI/videoSGI.h
Santi Noreña e85d191b46 - Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector
- Añadidas fuentes de Gem y Pure Data
- pix2jpg incluído en Gem. Archivos de construcción de Gem modificados.
- Añadido fichero ompiling.txt con instrucciones de compilación
2013-02-04 18:00:17 +01:00

83 lines
2 KiB
C++

/*-----------------------------------------------------------------
GEM - Graphics Environment for Multimedia
Load an video into a pix block
Copyright (c) 1997-1999 Mark Danks. mark@danks.org
Copyright (c) Günther Geiger. geiger@epy.co.at
Copyright (c) 2001-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
Linux version by Miller Puckette. msp@ucsd.edu
-----------------------------------------------------------------*/
#ifndef _INCLUDE_GEMPLUGIN__VIDEOSGI_VIDEOSGI_H_
#define _INCLUDE_GEMPLUGIN__VIDEOSGI_VIDEOSGI_H_
#include "plugins/videoBase.h"
#ifdef HAVE_VL_VL_H
# include <vl/vl.h>
#endif
/*-----------------------------------------------------------------
-------------------------------------------------------------------
CLASS
pix_video
captures a video on SGI machines
KEYWORDS
pix
-----------------------------------------------------------------*/
namespace gem { namespace plugins {
class GEM_EXPORT videoSGI : public videoBase {
public:
//////////
// Constructor
videoSGI(void);
//////////
// Destructor
virtual ~videoSGI(void);
#ifdef HAVE_VL_VL_H
////////
// open the video-device
virtual bool openDevice(void);
virtual void closeDevice(void);
//////////
// Start up the video device
// [out] int - returns 0 if bad
bool startTransfer(void);
//////////
// Stop the video device
// [out] int - returns 0 if bad
bool stopTransfer(void);
//////////
// get the next frame
pixBlock *getFrame(void);
//////////
// Set the video dimensions
virtual bool setDimen(int x, int y, int leftmargin, int rightmargin, int topmargin, int bottommargin);
protected:
VLServer m_svr;
VLPath m_path;
VLNode m_src;
VLNode m_drn;
VLBuffer m_buffer;
#endif /*HAVE_VL_VL_H */
};
};};
#endif // for header file