-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathController.h
70 lines (47 loc) · 1.64 KB
/
Controller.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// MuxController.h
// Muxer
//
// Created by Ryan Walklin on 12/20/08.
// Copyright 2008 Ryan Walklin. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MXMP4Wrapper.h"
#import "Muxer.h"
@interface Controller : NSObject {
IBOutlet id SourceButton;
IBOutlet id RemoveStreamButton;
IBOutlet id MuxButton;
IBOutlet id TargetView;
IBOutlet id StatusLabel;
IBOutlet id MuxProgress;
IBOutlet id toolbar;
IBOutlet id window;
MXMP4Wrapper *output;
Muxer *muxer;
/* Cumulated durations so far, in output & input timescale units (see MP4Mux) */
int64_t sum_dur; // duration in output timescale units
int64_t sum_dur_in; // duration in input 90KHz timescale units
// bias to keep render offsets in ctts atom positive (set up by encx264)
int64_t init_delay;
/* Chapter state information for muxing */
MP4TrackId chapter_track;
int current_chapter;
uint64_t chapter_duration;
/* Sample rate of the first audio track.
* Used for the timescale
*/
int samplerate;
}
-(id)init;
-(void)applicationDidFinishLaunching: (NSNotification *) notification;
-(BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row;
-(IBAction)openSource:(id)sender;
-(IBAction)muxTarget:(id)sender;
-(void)muxTargetToFile:(NSString *)outputFile;
-(IBAction)removeTrack:(id)sender;
-(void)scanSource:(NSString *)source;
-(void)updateInterface:(NSDictionary *)status;
-(void)openPanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(NSString *)contextInfo;
-(void)savePanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(NSString *)contextInfo;
@end