Files
GDevelop/Extensions/VideoObject/TheoraMemoryLoader.h
T
Florian 44124711e9 Forgot to commit some files.
Adapted to changes in GDCore/GDL.

git-svn-id: svn://localhost@768 8062f311-0dae-4547-b526-b8ab9ac864a5
2012-06-09 21:18:03 +00:00

29 lines
645 B
C++

#ifndef _THEORAMEMORYLOADER_H
#define _THEORAMEMORYLOADER_H
#include <string>
#include <stdio.h>
#include "TheoraDataSource.h"
/**
* \brief Simple class to load a video from memory
*/
class TheoraMemoryLoader : public TheoraDataSource
{
std::string mName;
unsigned long mSize,mReadPointer;
unsigned char* mData;
public:
TheoraMemoryLoader(std::string name, unsigned char *source, unsigned long size);
~TheoraMemoryLoader();
int read(void* output,int nBytes);
void seek(unsigned long byte_index);
std::string repr() { return "Memory:"+mName; }
unsigned long size();
unsigned long tell();
};
#endif