5 // Created by TYPCN on 2015/4/8.
9 #ifndef __danmaku2ass_native__AssClass__
10 #define __danmaku2ass_native__AssClass__
20 std::map
<float, std::pair
<int, std::string
>> comment_map
;
21 int round_int( double r
);
24 inline std::string
TS2t(double timestamp
);
25 inline void stripStr(std::string in
);
26 inline size_t Utf8StringSize(const std::string
& str
);
37 void init(const char *filename
);
38 void SetDuration(int dm
,int ds
);
39 void WriteHead(int width
,int height
,const char *font
,float fontsize
,float alpha
);
40 void AppendComment(float appear_time
,int comment_mode
,int font_color
,const char *content
);
41 void WriteToDisk(std::vector
<int> disallowModes
);
44 #endif /* defined(__danmaku2ass_native__AssClass__) */