lsnes/include/core/subtitles.hpp

27 lines
626 B
C++
Raw Normal View History

2012-09-08 19:44:45 +03:00
#ifndef _subtitles__hpp__included__
#define _subtitles__hpp__included__
#include "lua/lua.hpp"
class moviefile_subtiming
{
public:
moviefile_subtiming(uint64_t frame);
moviefile_subtiming(uint64_t first, uint64_t length);
bool operator<(const moviefile_subtiming& a) const;
bool operator==(const moviefile_subtiming& a) const;
bool inrange(uint64_t x) const;
uint64_t get_frame() const;
uint64_t get_length() const;
private:
uint64_t frame;
uint64_t length;
bool position_only;
};
std::string s_unescape(std::string x);
std::string s_escape(std::string x);
void render_subtitles(lua_render_context& ctx);
#endif