libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moVideoBuffer Class Reference

Buffer de imágenes para video. More...

#include <moVideoManager.h>

Inheritance diagram for moVideoBuffer:
moTextureAnimated moTexture moAbstract moLuaVideoBuffer

Public Member Functions

 moVideoBuffer ()
 
virtual ~moVideoBuffer ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Init (moText bufferpath, moText bufferformat, moResourceManager *p_pResourceManager, MOuint width, MOuint height, MOuint xsource, MOuint ysource, MOuint sourcewidth, MOuint sourceheight, MOint interpolation=0, MOint interpolationjump=0, MOint interpolationtime=0)
 
virtual MOboolean Finish ()
 
virtual void GetFrame (MOuint p_i)
 
MOboolean LoadImage (moBitmap *pImage, int indeximage=-1)
 
MOint GetXSource ()
 
MOint GetYSource ()
 
MOint GetSourceWidth ()
 
MOint GetSourceHeight ()
 
moText GetBufferPath ()
 
moText GetBufferFormat ()
 
- Public Member Functions inherited from moTextureAnimated
 moTextureAnimated ()
 
virtual ~moTextureAnimated ()
 
virtual MOboolean Init (moText p_name, MOuint p_moid, moResourceManager *p_res, moTexParam p_param=MODefTex2DParams)
 
virtual void Play ()
 
virtual void Stop ()
 
virtual bool IsPlaying ()
 
virtual MOint GetGLId (moTempo *tempo)
 
virtual MOint GetGLId (MOuint p_i)
 
virtual MOint GetGLId (MOfloat p_cycle)
 
virtual MOuint GetFrameCount ()
 
virtual void SetFrameCount (MOuint p_nframes)
 
virtual MOfloat GetFramesPerSecond ()
 
virtual void SetFramesPerSecond (MOfloat p_fps)
 
virtual void SetPlayMode (moPlayMode playmode)
 
virtual moPlayMode GetPlayMode ()
 
virtual MOuint GetActualFrame ()
 
virtual void SetInterpolation (MOuint p_FrameJump, MOuint p_InterpolationTime)
 
virtual MOboolean IsInterpolating ()
 
virtual MOboolean IsInterpolationActive ()
 
virtual MOboolean ActivateInterpolation (MOboolean activate=true)
 
- Public Member Functions inherited from moTexture
 moTexture ()
 
virtual ~moTexture ()
 
MOboolean BuildEmpty (MOuint p_width, MOuint p_height)
 
MOboolean BuildFromBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean BuildFromFile (moText p_filename)
 
MOboolean SupportedFile (moText p_filename)
 
MOboolean Load (moParam *p_param)
 
MOboolean Load (moValue *p_value)
 
MOboolean SetBuffer (const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean SetBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean GetBuffer (GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
void SetGLMan (moGLManager *p_gl)
 
void SetDataMan (moDataManager *p_dataman)
 
void SetFileMan (moFileManager *p_fileman)
 
void SetFBO (moFBO *p_fbo)
 
MOuint SetFBOandAttachPoint (moFBO *p_fbo)
 
void SetFBOAttachPoint (MOuint p_fbo_attach_point)
 
moFBOGetFBO () const
 
MOuint GetFBOAttachPoint () const
 
moTextureType GetType () const
 
MOuint GetGLId () const
 
MOuint GetGLId (moMoldeoObject *p_src_mob)
 TODO: check this! obsolete? More...
 
MOuint GetMOId () const
 
void SetMOId (MOuint p_moid)
 
moText GetName () const
 
void SetName (moText p_name)
 
MOuint GetWidth () const
 
MOuint GetHeight () const
 
MOuint GetDataWidth () const
 
MOuint GetDataHeight () const
 
MOuint GetComponents () const
 
MOlong GetTexelCount () const
 
MOlong GetDataTexelCount () const
 
MOfloat GetMaxCoordS () const
 
MOfloat GetMaxCoordT () const
 
moTexParam GetTexParam () const
 
GLenum GetTexTarget () const
 
GLenum GetTexInternalFormat () const
 
GLint GetMinFilter () const
 
GLint GetMagFilter () const
 
GLint GetWrapS () const
 
GLint GetWrapT () const
 
void FlipBufferVert (MOubyte *pBuffer, MOint p_depth)
 
void CopyFromTex (moTexture *p_src_tex, MOboolean p_copy_glid, MOboolean p_copy_moid, MOboolean p_copy_type, MOboolean p_copy_name)
 
moTextureoperator= (const moTexture &p_src_tex)
 
MOboolean IsBuildedFromFile () const
 
moText CreateThumbnail (moText p_bufferformat, int w, int h, moText newfilename=moText(""))
 
bool CalculateLuminanceAndConstrast (int x0=0, int y0=0, int x1=0, int y1=0)
 
int GetLuminance () const
 
int GetContrast () const
 
MOboolean Refresh ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Additional Inherited Members

- Public Types inherited from moTextureAnimated
enum  moPlayMode { MO_PLAYMODE_TIMEBASE, MO_PLAYMODE_FRAMEBASE }
 
- Static Public Member Functions inherited from moTexture
static MOuint NextPowerOf2 (MOuint p_seed)
 
- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 
- Protected Member Functions inherited from moTextureAnimated
virtual MOboolean NeedsInterpolation ()
 
virtual MOint Interpolate ()
 
- Protected Member Functions inherited from moTexture
void SetParam ()
 
void CalculateSize (MOuint p_width, MOuint p_height)
 
MOboolean Build ()
 
bool ResetBufferData (bool force_creation=false, int bytes_per_pixel=0)
 
- Protected Attributes inherited from moTextureAnimated
moPlayMode m_PlayMode
 
MOboolean m_bIsPlaying
 
MOboolean m_bIsPaused
 
MOuint m_nFrames
 
MOfloat m_fFramesPerSecond
 
MOuint m_FrameNext
 
MOuint m_FramePrevious
 
MOuint m_Time
 
MOuint m_ActualFrame
 
MOboolean m_bInterpolation
 
MOboolean m_bInterpolating
 
moTextureFilterm_pCopyStart
 
moTextureFilterm_pCopyEnd
 
moTextureFilterm_pInterpolator
 
moTextureArray m_srcstart
 
moTextureArray m_dststart
 
moTextureArray m_srcend
 
moTextureArray m_dstend
 
moTextureArray m_srcinterpol
 
moTextureArray m_dstinterpol
 
moShaderm_pShaderCopy
 
moShaderm_pShaderInterpolate
 
MOuint m_FrameJump
 
MOuint m_InterpolationTime
 
MOuint m_StartTime
 
MOuint m_FrameStart
 
MOuint m_FrameEnd
 
MOfloat m_InterpolationPosition
 
- Protected Attributes inherited from moTexture
MOboolean m_bBuildedFromFile
 
moFilem_pFile
 
moDataManagerm_pDataMan
 
moFileManagerm_pFileMan
 
moGLManagerm_gl
 
moResourceManagerm_pResourceManager
 
moFBOm_fbo
 
MOuint m_fbo_attach_point
 
moTextureType m_type
 
MOint m_moid
 
MOuint m_glid
 
moText m_name
 
moTexParam m_param
 
MOuint m_width
 
MOuint m_height
 
MOuint m_bytespp
 
MOint m_components
 
MOfloat m_max_coord_s
 
MOfloat m_max_coord_t
 
int Luminance
 
int Contrast
 
moDWord Histogram [256]
 
MOubytem_pBufferData
 
MOuint m_buffer_width
 
MOuint m_buffer_height
 
MOuint m_buffer_bytespp
 

Detailed Description

Buffer de imágenes para video.

Clase que permite cargar una sucesión de imágenes de mismo formato con compresión incluída dentro de un buffer de memoria y a la vez permite reproducir cada cuadro de forma independiente, descomprimiendo de memoria y asignando una textura

Definition at line 266 of file moVideoManager.h.

Constructor & Destructor Documentation

moVideoBuffer::moVideoBuffer ( )

Definition at line 142 of file moVideoManager.cpp.

moVideoBuffer::~moVideoBuffer ( )
virtual

Definition at line 152 of file moVideoManager.cpp.

Member Function Documentation

MOboolean moVideoBuffer::Finish ( )
virtual

Destruye la textura openGL.

Returns
true si la operación fue exitosa, false en caso contrario.

if (m_pInterpolator) { delete m_pInterpolator; m_pInterpolator = NULL; } if (m_pCopyStart) { delete m_pCopyStart; m_pCopyStart = NULL; } if (m_pCopyEnd) { delete m_pCopyEnd; m_pCopyEnd = NULL; }

Reimplemented from moTextureAnimated.

Definition at line 191 of file moVideoManager.cpp.

moText moVideoBuffer::GetBufferFormat ( )
inline

Definition at line 285 of file moVideoManager.h.

moText moVideoBuffer::GetBufferPath ( )
inline

Definition at line 284 of file moVideoManager.h.

void moVideoBuffer::GetFrame ( MOuint  p_i)
virtual

Calcula el cuadro i-ésimo de la animación.

Parameters
p_iíndice del cuadro a cualcular.

always needs implementation??? must be pure virtual.

Reimplemented from moTextureAnimated.

Definition at line 267 of file moVideoManager.cpp.

MOint moVideoBuffer::GetSourceHeight ( )
inline

Definition at line 283 of file moVideoManager.h.

MOint moVideoBuffer::GetSourceWidth ( )
inline

Definition at line 282 of file moVideoManager.h.

MOint moVideoBuffer::GetXSource ( )
inline

Definition at line 280 of file moVideoManager.h.

MOint moVideoBuffer::GetYSource ( )
inline

Definition at line 281 of file moVideoManager.h.

MOboolean moVideoBuffer::Init ( )
virtual

Inicializa el objeto.

Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Definition at line 156 of file moVideoManager.cpp.

MOboolean moVideoBuffer::Init ( moText  bufferpath,
moText  bufferformat,
moResourceManager p_pResourceManager,
MOuint  width,
MOuint  height,
MOuint  xsource,
MOuint  ysource,
MOuint  sourcewidth,
MOuint  sourceheight,
MOint  interpolation = 0,
MOint  interpolationjump = 0,
MOint  interpolationtime = 0 
)
virtual

Definition at line 165 of file moVideoManager.cpp.

MOboolean moVideoBuffer::LoadImage ( moBitmap pImage,
int  indeximage = -1 
)

Definition at line 204 of file moVideoManager.cpp.


The documentation for this class was generated from the following files: