summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-07-16 18:36:08 +0000
committerdynaflash <[email protected]>2009-07-16 18:36:08 +0000
commit8bb7d25bba2dc06e8541f07583897c4030a1bc3c (patch)
treeea0073de04a728eaed1cb5f2fc43b4abe172601a /macosx/HBSubtitles.h
parenta13d7753343d914e2e25ac32ca756b3025b48de2 (diff)
MacGui: srt subtitle support initial implementation
- Allows adding an external srt sub file as a subtitle source. -- Adds fields for srt language, char code and offset in ms. - Known issues: adding the srt file to the sources list also adds a new subtitle track for that source, however to "set" it you have to click on it. - srt subtitles do not seem to work in preview even if set to default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2699 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBSubtitles.h')
-rw-r--r--macosx/HBSubtitles.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/macosx/HBSubtitles.h b/macosx/HBSubtitles.h
index 990492db2..6cc55356b 100644
--- a/macosx/HBSubtitles.h
+++ b/macosx/HBSubtitles.h
@@ -7,11 +7,20 @@
#import <Cocoa/Cocoa.h>
#include "hb.h"
+
+
+
@interface HBSubtitles : NSObject {
hb_title_t *fTitle;
-NSMutableArray *subtitleArray;
+NSMutableArray *subtitleArray; // contains the output subtitle track info
+NSMutableArray *subtitleSourceArray;// contains the source subtitle track info
+NSMutableArray *languagesArray; // array of languages taken from lang.c
+int languagesArrayDefIndex;
+NSMutableArray *charCodeArray; // array of character codes
+int charCodeArrayDefIndex;
int container;
+
}
// Trigger a refresh of data
@@ -21,6 +30,8 @@ int container;
- (void)addSubtitleTrack;
- (NSDictionary *)createSubtitleTrack;
- (NSMutableArray*) getSubtitleArray: (NSMutableArray *) subtitlesArray ;
+// Add an srt file
+- (void)createSubtitleSrtTrack:(NSString *)filePath;
- (void)containerChanged:(int) newContainer;