forked from marcingrabda/whatsub
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SubtitlesConverter.h
28 lines (24 loc) · 1.03 KB
/
SubtitlesConverter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// MGSubtitlesConverter.h
// WhatSub
//
// Created by Marcin Grabda on 1/26/10.
// Copyright 2010 www.burningtomato.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface SubtitlesConverter : NSObject {
@private
NSArray* movieExtensions;
NSNumber* defaultFrameRate;
}
- (id)initWithSupportedMovieExtensions:(NSArray*)extensions andDefaultFrameRate:(NSNumber*)frameRate;
- (void)convert:(NSString*)input toFile:(NSString*)output forMovie:(NSString*)movie withEncoding:(NSStringEncoding)encoding;
- (void)convertWithoutProcessing:(NSString*)input toFile:(NSString*)output withEncoding:(NSStringEncoding)encoding;
- (NSArray*)readFile:(NSString*)pathToFile;
- (NSArray*)processTMPlayer:(NSArray*)lines;
- (NSArray*)processMicroDVD:(NSArray*)lines forMovie:(NSString*)pathToFile;
- (NSArray*)processMPL2:(NSArray*)lines;
- (void)printSubRip:(NSArray*)input toFile:(NSString*)srtFilePath withEncoding:(NSStringEncoding)encoding;
- (NSString*)formatSubRipTime:(NSNumber*)value;
- (NSString*)formatSubRipText:(NSString*)value;
@end