clean up the importers and remove the MP42File delegate
This commit is contained in:
1 parent
034431894d
commit
2d00a04689
25 files changed
+343
-323
No files matched your search
+11
-33
@@ -7,9 +7,6 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AudioToolbox/AudioToolbox.h>
|
||||
|
||||
#import "MP42MediaFormat.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -19,48 +16,29 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MP42FileImporter : NSObject {
|
||||
@protected
|
||||
NSURL *_fileURL;
|
||||
|
||||
NSInteger _chapterId;
|
||||
MP42Metadata *_metadata;
|
||||
|
||||
NSMutableArray<MP42Track *> *_tracksArray;
|
||||
NSMutableArray<MP42Track *> *_inputTracks;
|
||||
NSMutableArray<MP42Track *> *_outputsTracks;
|
||||
NSThread *_demuxerThread;
|
||||
|
||||
CGFloat _progress;
|
||||
int32_t _cancelled;
|
||||
int32_t _done;
|
||||
|
||||
@private
|
||||
NSURL *_fileURL;
|
||||
|
||||
NSMutableArray<MP42Track *> *_tracksArray;
|
||||
|
||||
NSMutableArray<MP42Track *> *_inputTracks;
|
||||
NSMutableArray<MP42Track *> *_outputsTracks;
|
||||
|
||||
NSThread *_demuxerThread;
|
||||
|
||||
int32_t _done;
|
||||
dispatch_semaphore_t _doneSem;
|
||||
}
|
||||
|
||||
- (instancetype)initWithURL:(NSURL *)fileURL error:(NSError **)error;
|
||||
|
||||
- (BOOL)containsTrack:(MP42Track *)track;
|
||||
- (MP42Track *)inputTrackWithTrackID:(MP42TrackId)trackId;
|
||||
|
||||
- (NSUInteger)timescaleForTrack:(MP42Track *)track;
|
||||
- (NSSize)sizeForTrack:(MP42Track *)track;
|
||||
- (nullable NSData *)magicCookieForTrack:(MP42Track *)track;
|
||||
- (AudioStreamBasicDescription)audioDescriptionForTrack:(MP42Track *)track;
|
||||
|
||||
- (void)setActiveTrack:(MP42Track *)track;
|
||||
|
||||
- (void)startReading;
|
||||
- (void)cancelReading;
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer *)sample;
|
||||
|
||||
- (CGFloat)progress;
|
||||
|
||||
- (BOOL)done;
|
||||
- (void)setDone;
|
||||
|
||||
- (BOOL)cleanUp:(MP42FileHandle)fileHandle;
|
||||
|
||||
@property(nonatomic, readonly) NSURL *fileURL;
|
||||
@property(nonatomic, readonly) MP42Metadata *metadata;
|
||||
@property(nonatomic, readonly) NSArray<MP42Track *> *tracks;
|
||||
|
||||
|
||||
Reference in new issue
Block a user