Changeset 329
- Timestamp:
- 02/05/07 10:17:36 (2 years ago)
- Files:
-
- trunk/SSADocument.h (modified) (1 diff)
- trunk/SSADocument.m (modified) (2 diffs)
- trunk/SSARenderCodec.h (modified) (1 diff)
- trunk/SSARenderCodec.m (modified) (1 diff)
- trunk/SSATagParsing.h (modified) (1 diff)
- trunk/SSATagParsing.m.rl (modified) (1 diff)
- trunk/TextSubCodec.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SSADocument.h
r317 r329 1 // 2 // SSADocument.h 3 // SSAView 4 // 5 // Created by Alexander Strange on 1/18/07. 6 // Copyright 2007 Perian Project. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import <Cocoa/Cocoa.h> trunk/SSADocument.m
r321 r329 1 // 2 // SSADocument.m 3 // SSAView 4 // 5 // Created by Alexander Strange on 1/18/07. 6 // Copyright 2007 Perian Project. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import "SSADocument.h" … … 20 32 21 33 @implementation SSADocument 34 35 // This line contains the default style, for SRT files. 22 36 23 37 static ssastyleline SSA_DefaultStyle = (ssastyleline){ trunk/SSARenderCodec.h
r317 r329 1 // 2 // SSARenderCodec.h 3 // Perian 4 // 5 // Created by Alexander Strange on 1/28/07. 6 // Copyright 2007 __MyCompanyName__. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import <Carbon/Carbon.h> trunk/SSARenderCodec.m
r317 r329 1 // 2 // SSARenderCodec.m 3 // Perian 4 // 5 // Created by Alexander Strange on 1/28/07. 6 // Copyright 2007 __MyCompanyName__. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import "SSARenderCodec.h" trunk/SSATagParsing.h
r314 r329 1 // 2 // SSATagParsing.h 3 // SSAView 4 // 5 // Created by Alexander Strange on 1/21/07. 6 // Copyright 2007 Perian Project. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import <Cocoa/Cocoa.h> trunk/SSATagParsing.m.rl
r326 r329 1 // 2 // SSATagParsing.m 3 // SSAView 4 // 5 // Created by Alexander Strange on 1/21/07. 6 // Copyright 2007 Perian Project. All rights reserved. 7 // 1 /* 2 * SSARenderCodec.m 3 * Copyright (c) 2007 Perian Project 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; 8 * version 2.1 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 */ 8 20 9 21 #import "SSATagParsing.h" trunk/TextSubCodec.c
r317 r329 11 11 #include "TextSubCodec.h" 12 12 #include "SSARenderCodec.h" 13 14 #define SubFontName "Helvetica"15 // basically random numbers i picked, font size is a factor of the diagonal of the movie window, border is a factor of that16 #define FontSizeRatio .03517 #define BorderSizeRatio FontSizeRatio * .1118 #define ShadowDistance FontSizeRatio * .0519 13 20 14 // Constants
