#ifndef _subtitle_123 #define _subtitle_123 /* * Interface File for subtitle handling (container input and output). * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #define DEFAULT_ASS_HEAD "[Script Info]\n\ Original Script: (c) 2008\n\ ScriptType: v4.00\n\ Synch Point: Side 1 0m00s\n\ Collisions: Normal\n\ Timer: 100.0000\n\n\ [V4 Styles]\n\ Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding\n\ Style: Default,Arial,64,16777215,0,16777215,0,0,0,2,2,2,2,20,20,10,0\n\n\ [Events]\n\ Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n\n\n" static inline unsigned char* text_to_ass(char *text, long long int pts, double duration) { char buf[1024]; unsigned int x,pos=0; for(x=0;x