// Copyright (c) Claus Hoefele. All rights reserved. // //============================================================================== #ifndef RESOURCE_THEORA_RESOURCE_WRITER_H #define RESOURCE_THEORA_RESOURCE_WRITER_H #include #include #include #include //============================================================================== // Forward Declarations //============================================================================== class Image; struct th_enc_ctx; //============================================================================== // Declarations //============================================================================== class TheoraResourceWriter { public: TheoraResourceWriter(const std::string& fileName); ~TheoraResourceWriter(); bool write(/*const Image& image,*/ bool last); void close(); private: int open(const std::string& fileName); private: FILE* m_File; th_enc_ctx* m_TheoraState; ogg_stream_state m_OggStreamState; }; #endif // RESOURCE_THEORA_RESOURCE_WRITER_H