- 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
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
92
Gem/plugins/filmQT4L/filmQT4L.h
Normal file
92
Gem/plugins/filmQT4L/filmQT4L.h
Normal file
|
@ -0,0 +1,92 @@
|
|||
/*-----------------------------------------------------------------
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
|
||||
Load a digital video (quicktime4linux) for linux
|
||||
|
||||
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.
|
||||
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
#ifndef _INCLUDE_GEMPLUGIN__FILMQT4L_FILMQT4L_H_
|
||||
#define _INCLUDE_GEMPLUGIN__FILMQT4L_FILMQT4L_H_
|
||||
#include "plugins/film.h"
|
||||
#include "Gem/Image.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <quicktime.h>
|
||||
#include <colormodels.h>
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
-------------------------------------------------------------------
|
||||
CLASS
|
||||
filmQT4L1
|
||||
|
||||
Loads in a film
|
||||
|
||||
KEYWORDS
|
||||
pix
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
namespace gem { namespace plugins {
|
||||
class GEM_EXPORT filmQT4L : public film {
|
||||
public:
|
||||
|
||||
//////////
|
||||
// Constructor
|
||||
filmQT4L(void);
|
||||
|
||||
//////////
|
||||
// Destructor
|
||||
virtual ~filmQT4L(void);
|
||||
|
||||
//////////
|
||||
// open a movie up
|
||||
virtual bool open(const std::string filename, const gem::Properties&);
|
||||
//////////
|
||||
// close the movie file
|
||||
virtual void close(void);
|
||||
|
||||
//////////
|
||||
// get the next frame
|
||||
virtual pixBlock* getFrame(void);
|
||||
|
||||
//////////
|
||||
// set the next frame to read;
|
||||
virtual errCode changeImage(int imgNum, int trackNum = -1);
|
||||
|
||||
// can be used within a threaded context
|
||||
virtual bool isThreadable(void) { return true; }
|
||||
|
||||
// Property handling
|
||||
virtual bool enumProperties(gem::Properties&readable,gem::Properties&writeable);
|
||||
virtual void setProperties(gem::Properties&props);
|
||||
virtual void getProperties(gem::Properties&props);
|
||||
|
||||
//-----------------------------------
|
||||
// GROUP: Movie data
|
||||
//-----------------------------------
|
||||
protected:
|
||||
GLenum m_wantedFormat; // format requested by the user
|
||||
double m_fps; // the frame-rate
|
||||
int m_numFrames, m_numTracks; // number of frames in video
|
||||
int m_curFrame, m_curTrack;
|
||||
pixBlock m_image; // output image
|
||||
bool m_newfilm;
|
||||
|
||||
quicktime_t *m_quickfile;
|
||||
int m_qtformat;
|
||||
|
||||
imageStruct m_qtimage;
|
||||
int m_lastFrame;
|
||||
|
||||
};};};
|
||||
|
||||
#endif // for header file
|
Loading…
Add table
Add a link
Reference in a new issue