Adopt objc direct attributes where possible.
This commit is contained in:
66 files changed
+223
-131
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#import "MP42SampleBuffer.h"
|
||||
#import "MP42Track+Private.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42AACImporter {
|
||||
@private
|
||||
FILE *inFile;
|
||||
@@ -885,7 +886,7 @@ static bool GetFirstHeader(FILE* inFile)
|
||||
return @"AAC demuxer";
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
- (void)dealloc
|
||||
{
|
||||
fclose(inFile);
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ typedef struct AudioFileIO
|
||||
AudioStreamPacketDescription * _Nullable pktDescs;
|
||||
} AudioFileIO;
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42AC3AudioEncoder ()
|
||||
{
|
||||
AVCodecContext *_avctx;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define NUM_AC3_SAMPLING_RATES 4
|
||||
#define NUM_AC3_FRAMECODE_SIZES 19 * 2
|
||||
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42AC3Importer {
|
||||
@private
|
||||
FILE *inFile;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#import <VideoToolbox/VideoToolbox.h>
|
||||
#import <MediaToolbox/MediaToolbox.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface AVFDemuxHelper : NSObject {
|
||||
@public
|
||||
MP42TrackId sourceID;
|
||||
@@ -42,6 +43,7 @@
|
||||
@implementation AVFDemuxHelper
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42AVFImporter {
|
||||
AVAsset *_localAsset;
|
||||
NSMutableArray<AVFDemuxHelper *> *_helpers;
|
||||
@@ -511,8 +513,6 @@
|
||||
MP42MetadataKeyEncodingTool, AVMetadataCommonKeySoftware,
|
||||
nil];
|
||||
|
||||
self.metadata = [[MP42Metadata alloc] init];
|
||||
|
||||
for (NSString *commonKey in commonItemsDict.allKeys) {
|
||||
NSArray<AVMetadataItem *> *items = [AVMetadataItem metadataItemsFromArray:_localAsset.commonMetadata
|
||||
withKey:commonKey
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42AudioConverter
|
||||
|
||||
#pragma mark - Init
|
||||
|
||||
@@ -43,6 +43,7 @@ struct MP42DecodeContext {
|
||||
|
||||
typedef struct MP42DecodeContext MP42DecodeContext;
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42AudioDecoder ()
|
||||
{
|
||||
__unsafe_unretained id<MP42AudioUnit> _outputUnit;
|
||||
|
||||
@@ -37,6 +37,7 @@ typedef struct AudioFileIO
|
||||
AudioStreamPacketDescription * _Nullable pktDescs;
|
||||
} AudioFileIO;
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42AudioEncoder ()
|
||||
{
|
||||
__unsafe_unretained id<MP42AudioUnit> _outputUnit;
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MP42Track.h"
|
||||
#import <MP42Foundation/MP42Track.h>
|
||||
|
||||
@interface MP42AudioTrack : MP42Track <NSSecureCoding, NSCopying>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#define FFmpegMaximumSupportedChannels 6
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42AudioTrack
|
||||
|
||||
- (instancetype)initWithSourceURL:(NSURL *)URL trackID:(NSInteger)trackID fileHandle:(MP4FileHandle)fileHandle
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42BitmapSubConverter ()
|
||||
{
|
||||
NSThread *decoderThread;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#import "NSString+MP42Additions.h"
|
||||
#import "MP42Track+Private.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42CCImporter
|
||||
|
||||
+ (NSArray<NSString *> *)supportedFileFormats {
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Track.h"
|
||||
#import "MP42TextSample.h"
|
||||
#import <MP42Foundation/MP42Track.h>
|
||||
#import <MP42Foundation/MP42TextSample.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42MediaFormat.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42ChapterTrack {
|
||||
@private
|
||||
NSMutableArray<MP42TextSample *> *_chapters;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42VideoTrack.h"
|
||||
#import <MP42Foundation/MP42VideoTrack.h>
|
||||
|
||||
@interface MP42ClosedCaptionTrack : MP42VideoTrack
|
||||
@end
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42MediaFormat.h"
|
||||
#import <MP42Foundation/MP42MediaFormat.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
* by analyzing the doNotDisplay and trimAtStart/End flags
|
||||
* TO-DO: doesn't work in all cases yet.
|
||||
*/
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42EditListsReconstructor : NSObject
|
||||
|
||||
- (void)addSample:(MP42SampleBuffer *)sample;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42Heap.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42EditListsReconstructor
|
||||
{
|
||||
@private
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42Fifo<__covariant ObjectType> : NSObject
|
||||
|
||||
- (instancetype)initWithCapacity:(NSUInteger)capacity NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "MP42Fifo.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Fifo {
|
||||
@private
|
||||
id *_array;
|
||||
|
||||
+10
-10
@@ -8,18 +8,18 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MP42Track.h"
|
||||
#import "MP42VideoTrack.h"
|
||||
#import "MP42AudioTrack.h"
|
||||
#import "MP42SubtitleTrack.h"
|
||||
#import "MP42ClosedCaptionTrack.h"
|
||||
#import "MP42ChapterTrack.h"
|
||||
#import "MP42Metadata.h"
|
||||
#import <MP42Foundation/MP42Track.h>
|
||||
#import <MP42Foundation/MP42VideoTrack.h>
|
||||
#import <MP42Foundation/MP42AudioTrack.h>
|
||||
#import <MP42Foundation/MP42SubtitleTrack.h>
|
||||
#import <MP42Foundation/MP42ClosedCaptionTrack.h>
|
||||
#import <MP42Foundation/MP42ChapterTrack.h>
|
||||
#import <MP42Foundation/MP42Metadata.h>
|
||||
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42Logging.h"
|
||||
#import <MP42Foundation/MP42MediaFormat.h>
|
||||
#import <MP42Foundation/MP42Logging.h>
|
||||
|
||||
#import "MP42SecurityAccessToken.h"
|
||||
#import <MP42Foundation/MP42SecurityAccessToken.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -95,6 +95,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42File
|
||||
|
||||
@synthesize itracks = _tracks;
|
||||
|
||||
@@ -21,8 +21,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (instancetype)initWithURL:(NSURL *)fileURL;
|
||||
|
||||
@property(nonatomic, readwrite) MP42Metadata *metadata;
|
||||
|
||||
- (void)addTrack:(MP42Track *)track;
|
||||
- (void)addTracks:(NSArray<MP42Track *> *)tracks;
|
||||
|
||||
@@ -34,26 +32,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)startReading;
|
||||
- (void)cancelReading;
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer * NS_RELEASES_ARGUMENT)sample;
|
||||
|
||||
@property (nonatomic, readwrite) double progress;
|
||||
@property (nonatomic, readonly, getter=isCancelled) BOOL cancelled;
|
||||
|
||||
- (void)setDone;
|
||||
|
||||
@end
|
||||
|
||||
@interface MP42FileImporter (Override)
|
||||
|
||||
- (NSUInteger)timescaleForTrack:(MP42Track *)track;
|
||||
- (NSSize)sizeForTrack:(MP42VideoTrack *)track;
|
||||
- (nullable NSData *)magicCookieForTrack:(MP42Track *)track;
|
||||
- (AudioStreamBasicDescription)audioDescriptionForTrack:(MP42AudioTrack *)track;
|
||||
- (BOOL)cleanUp:(MP42Track *)track fileHandle:(MP42FileHandle)fileHandle;
|
||||
|
||||
- (BOOL)audioTrackUsesExplicitEncoderDelay:(MP42Track *)track;
|
||||
- (BOOL)supportsPreciseTimestamps;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -7,12 +7,19 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AudioToolbox/AudioToolbox.h>
|
||||
#import <MP42Foundation/MP42Utilities.h>
|
||||
|
||||
@class MP42SampleBuffer;
|
||||
@class MP42AudioTrack;
|
||||
@class MP42VideoTrack;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class MP42Metadata;
|
||||
@class MP42Track;
|
||||
|
||||
|
||||
@interface MP42FileImporter : NSObject
|
||||
|
||||
+ (NSArray<NSString *> *)supportedFileFormats;
|
||||
@@ -24,6 +31,25 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, readonly) MP42Metadata *metadata;
|
||||
@property (nonatomic, readonly) NSArray<MP42Track *> *tracks;
|
||||
|
||||
#pragma mark - Override
|
||||
|
||||
- (NSUInteger)timescaleForTrack:(MP42Track *)track;
|
||||
- (NSSize)sizeForTrack:(MP42VideoTrack *)track;
|
||||
- (nullable NSData *)magicCookieForTrack:(MP42Track *)track;
|
||||
- (AudioStreamBasicDescription)audioDescriptionForTrack:(MP42AudioTrack *)track;
|
||||
- (BOOL)cleanUp:(MP42Track *)track fileHandle:(MP42FileHandle)fileHandle;
|
||||
|
||||
- (BOOL)audioTrackUsesExplicitEncoderDelay:(MP42Track *)track;
|
||||
- (BOOL)supportsPreciseTimestamps;
|
||||
- (void)demux;
|
||||
|
||||
#pragma mark - Private
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer * NS_RELEASES_ARGUMENT)sample MP42_OBJC_DIRECT;
|
||||
|
||||
@property (nonatomic, readwrite MP42_DIRECT) double progress;
|
||||
@property (nonatomic, readonly, getter=isCancelled MP42_DIRECT) BOOL cancelled;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+55
-50
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42FileImporter.h"
|
||||
#import "MP42FileImporter+Private.h"
|
||||
#import "MP42MkvImporter.h"
|
||||
#import "MP42Mp4Importer.h"
|
||||
#import "MP42SrtImporter.h"
|
||||
@@ -23,6 +24,7 @@
|
||||
#import "MP42AudioTrack.h"
|
||||
#import "MP42Track+Private.h"
|
||||
#import "MP42SampleBuffer.h"
|
||||
#import "MP42Metadata.h"
|
||||
|
||||
#import "mp4v2.h"
|
||||
|
||||
@@ -108,6 +110,7 @@ static NSArray<NSString *> *_supportedFileFormats;
|
||||
_fileURL = fileURL;
|
||||
_tracksArray = [[NSMutableArray alloc] init];
|
||||
_doneSem = dispatch_semaphore_create(0);
|
||||
_metadata = [[MP42Metadata alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -139,56 +142,6 @@ static NSArray<NSString *> *_supportedFileFormats;
|
||||
|
||||
@synthesize tracks = _tracksArray;
|
||||
|
||||
- (NSUInteger)timescaleForTrack:(MP42Track *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (NSSize)sizeForTrack:(MP42VideoTrack *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (nullable NSData *)magicCookieForTrack:(MP42Track *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (AudioStreamBasicDescription)audioDescriptionForTrack:(MP42AudioTrack *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (void)demux
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (BOOL)audioTrackUsesExplicitEncoderDelay:(MP42Track *)track;
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)supportsPreciseTimestamps
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)cleanUp:(MP42Track *)track fileHandle:(MP4FileHandle)fileHandle
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)setActiveTrack:(MP42Track *)track {
|
||||
if (!_inputTracks) {
|
||||
_inputTracks = [[NSMutableArray alloc] init];
|
||||
@@ -275,4 +228,56 @@ static NSArray<NSString *> *_supportedFileFormats;
|
||||
return _cancelled;
|
||||
}
|
||||
|
||||
#pragma mark - Override
|
||||
|
||||
- (NSUInteger)timescaleForTrack:(MP42Track *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (NSSize)sizeForTrack:(MP42VideoTrack *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (nullable NSData *)magicCookieForTrack:(MP42Track *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (AudioStreamBasicDescription)audioDescriptionForTrack:(MP42AudioTrack *)track
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (void)demux
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)]
|
||||
userInfo:nil];
|
||||
}
|
||||
|
||||
- (BOOL)audioTrackUsesExplicitEncoderDelay:(MP42Track *)track;
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)supportsPreciseTimestamps
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)cleanUp:(MP42Track *)track fileHandle:(MP4FileHandle)fileHandle
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -1370,6 +1370,7 @@ NSData* H264Info(const char *filePath, uint32_t *pic_width, uint32_t *pic_height
|
||||
return avcCData;
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42H264Importer {
|
||||
FILE *inFile;
|
||||
int64_t _size;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -14,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* A simple heap/priority queue implementations with a static size.
|
||||
* It takes a NSComparator in input.
|
||||
*/
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42Heap<ObjectType> : NSObject
|
||||
|
||||
- (instancetype)initWithCapacity:(NSUInteger)numItems comparator:(NSComparator)cmptr;
|
||||
|
||||
@@ -26,6 +26,7 @@ uint64 right(uint64 i) {
|
||||
return i * 2 + 2;
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Heap {
|
||||
@private
|
||||
id *_array;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
#define kStyleBold 1
|
||||
#define kStyleItalic 2
|
||||
@@ -26,7 +27,8 @@ typedef struct rgba_color {
|
||||
rgba_color make_color(u_int8_t r, u_int8_t g, u_int8_t b, u_int8_t a);
|
||||
int compare_color(rgba_color c1, rgba_color c2);
|
||||
|
||||
@interface MP42Style : NSObject
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42Style : NSObject<NSCopying>
|
||||
|
||||
- (instancetype)initWithStyle:(NSInteger)style type:(NSInteger)type location:(NSUInteger) location color:(rgba_color) color;
|
||||
|
||||
@@ -38,6 +40,7 @@ int compare_color(rgba_color c1, rgba_color c2);
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42HtmlParser : NSObject
|
||||
|
||||
@property (nonatomic, readonly) NSString *text;
|
||||
|
||||
@@ -26,6 +26,8 @@ int compare_color(rgba_color c1, rgba_color c2) {
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Style
|
||||
{
|
||||
NSInteger _style;
|
||||
@@ -81,6 +83,7 @@ int compare_color(rgba_color c1, rgba_color c2) {
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42HtmlParser
|
||||
{
|
||||
NSUInteger _location;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "MP42Image.h"
|
||||
#import <Quartz/Quartz.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
@interface MP42Image ()
|
||||
|
||||
@@ -15,6 +16,7 @@
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Image {
|
||||
NSImage *_image;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MP42Languages.h"
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
@@ -632,6 +633,7 @@ iso639_lang_t * lang_for_english( const char * english )
|
||||
return (iso639_lang_t *)languages;
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Languages
|
||||
{
|
||||
NSArray<NSString *> *_iso6391languagesArray;
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42MetadataItem.h"
|
||||
#import <MP42Foundation/MP42MetadataItem.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
+12
-11
@@ -16,8 +16,8 @@
|
||||
|
||||
@interface MP42Metadata ()
|
||||
|
||||
@property (nonatomic, readonly) NSMutableArray<MP42MetadataItem *> *itemsArray;
|
||||
@property (nonatomic, readonly) NSMutableDictionary<NSString *, MP42MetadataItem *> *itemsMap;
|
||||
@property (nonatomic, readonly MP42_DIRECT) NSMutableArray<MP42MetadataItem *> *itemsArray;
|
||||
@property (nonatomic, readonly MP42_DIRECT) NSMutableDictionary<NSString *, MP42MetadataItem *> *itemsMap;
|
||||
|
||||
@property (nonatomic, readwrite, getter=isArtworkEdited) BOOL artworkEdited;
|
||||
@property (nonatomic, readwrite, getter=isEdited) BOOL edited;
|
||||
@@ -423,7 +423,7 @@
|
||||
|
||||
#pragma mark - MP42Foundation/mp4v2 read/write mapping
|
||||
|
||||
- (void)addMetadataItemWithUTF8String:(const char *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithUTF8String:(const char *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
NSString *string = [NSString stringWithCString:value encoding:NSUTF8StringEncoding];
|
||||
|
||||
@@ -440,7 +440,7 @@
|
||||
[self addMetadataItemWithString:string identifier:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithDateString:(const char *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithDateString:(const char *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
NSString *string = [NSString stringWithCString:value encoding:NSUTF8StringEncoding];
|
||||
|
||||
@@ -452,7 +452,7 @@
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithString:(NSString *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithString:(NSString *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:value
|
||||
@@ -462,7 +462,7 @@
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithStringArray:(NSArray<NSString *> *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithStringArray:(NSArray<NSString *> *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:value
|
||||
@@ -472,7 +472,7 @@
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithBool:(BOOL)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithBool:(BOOL)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:@(value)
|
||||
@@ -482,7 +482,7 @@
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithInteger:(NSInteger)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithInteger:(NSInteger)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:@(value)
|
||||
@@ -491,7 +491,7 @@
|
||||
[self.itemsArray addObject:item];
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
- (void)addMetadataItemWithIntegerArray:(NSArray<NSNumber *> *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithIntegerArray:(NSArray<NSNumber *> *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:value
|
||||
@@ -501,7 +501,7 @@
|
||||
[self.itemsMap setObject:item forKey:idenfitier];
|
||||
}
|
||||
|
||||
- (void)addMetadataItemWithImage:(MP42Image *)value identifier:(NSString *)idenfitier
|
||||
- (void)addMetadataItemWithImage:(MP42Image *)value identifier:(NSString *)idenfitier MP42_OBJC_DIRECT
|
||||
{
|
||||
MP42MetadataItem *item = [MP42MetadataItem metadataItemWithIdentifier:idenfitier
|
||||
value:value
|
||||
@@ -510,7 +510,8 @@
|
||||
[self.itemsArray addObject:item];
|
||||
}
|
||||
|
||||
- (void)readMetaDataFromFileHandle:(MP4FileHandle)sourceHandle {
|
||||
- (void)readMetaDataFromFileHandle:(MP4FileHandle)sourceHandle MP42_OBJC_DIRECT
|
||||
{
|
||||
const MP4Tags *tags = MP4TagsAlloc();
|
||||
MP4TagsFetch (tags, sourceHandle);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42MetadataFormat.h"
|
||||
#import <MP42Foundation/MP42MetadataFormat.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
#import "MP42Image.h"
|
||||
#import "NSString+MP42Additions.h"
|
||||
#import "MP42MetadataUtilities.h"
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42MetadataItem
|
||||
|
||||
static NSDictionary<NSString *, NSNumber *> *_defaultTypes;
|
||||
@@ -97,7 +99,7 @@ static NSCalendar *_calendar;
|
||||
dataType:(MP42MetadataItemDataType)dataType
|
||||
extendedLanguageTag:(NSString *)extendedLanguageTag
|
||||
{
|
||||
return [[self alloc] initWithIdentifier:identifier value:value dataType:dataType extendedLanguageTag:extendedLanguageTag];
|
||||
return [[MP42MetadataItem alloc] initWithIdentifier:identifier value:value dataType:dataType extendedLanguageTag:extendedLanguageTag];
|
||||
}
|
||||
|
||||
+ (MP42MetadataItemDataType)defaultDataTypeForIdentifier:(NSString *)identifier
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#define SCALE_FACTOR 1000000.f
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MatroskaSample : NSObject {
|
||||
@public
|
||||
unsigned long long startTime;
|
||||
@@ -36,6 +37,7 @@
|
||||
@implementation MatroskaSample
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MatroskaDemuxHelper : NSObject {
|
||||
@public
|
||||
MP42TrackId sourceID;
|
||||
@@ -182,6 +184,7 @@ static int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, ui
|
||||
return 1;
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42MkvImporter
|
||||
{
|
||||
struct MatroskaFile *_matroskaFile;
|
||||
@@ -382,7 +385,7 @@ static int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, ui
|
||||
[self addTrack:newTrack];
|
||||
}
|
||||
|
||||
self.metadata = [self readMatroskaMetadata];
|
||||
[self.metadata mergeMetadata: [self readMatroskaMetadata]];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -46,7 +46,7 @@ typedef struct MP4DemuxHelper {
|
||||
}
|
||||
|
||||
[self addTracks:sourceFile.tracks];
|
||||
self.metadata = sourceFile.metadata;
|
||||
[self.metadata mergeMetadata:sourceFile.metadata];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "mp4v2.h"
|
||||
#import "MP42Logging.h"
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -18,6 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)progressStatus:(double)progress;
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42Muxer : NSObject
|
||||
|
||||
- (instancetype)initWithFileHandle:(MP4FileHandle)fileHandle delegate:(id <MP42MuxerDelegate>)del logger:(id <MP42Logging>)logger options:(nullable NSDictionary<NSString *, id> *)options;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <stdatomic.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42Muxer
|
||||
{
|
||||
MP4FileHandle _fileHandle;
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42OCRWrapper : NSObject
|
||||
|
||||
- (instancetype)initWithLanguage:(NSString *)language;
|
||||
|
||||
@@ -46,6 +46,7 @@ protected:
|
||||
TessBaseAPI tess_base_api;
|
||||
};
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42OCRWrapper {
|
||||
OCRWrapper *tess_base;
|
||||
}
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <MP42Foundation/MP42Utilities.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42RelatedItem : NSObject<NSFilePresenter>
|
||||
|
||||
@property (nonatomic, readonly) NSURL *URL;
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class MP42SSAParser;
|
||||
@class MP42SSALine;
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SSAConverter : NSObject
|
||||
|
||||
- (instancetype)initWithParser:(MP42SSAParser *)parser;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SSAImporter
|
||||
|
||||
+ (NSArray<NSString *> *)supportedFileFormats {
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SSAStyle : NSObject
|
||||
|
||||
@property (nonatomic, readonly) NSString *name;
|
||||
@@ -39,6 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SSALine : NSObject
|
||||
|
||||
@property (nonatomic, readonly) int layer;
|
||||
@@ -54,6 +57,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SSAParser : NSObject
|
||||
|
||||
- (instancetype)initWithString:(NSString *)string;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <MP42Foundation/MP42Utilities.h>
|
||||
|
||||
typedef NS_OPTIONS(uint16_t, MP42SampleBufferFlag) {
|
||||
MP42SampleBufferFlagEndOfFile = 1 << 0,
|
||||
@@ -27,6 +28,7 @@ typedef NS_OPTIONS(uint32_t, MP42SampleDepType) {
|
||||
MP42SampleDepTypeReserved = 0x80 /**< reserved */
|
||||
};
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SampleBuffer : NSObject {
|
||||
@public
|
||||
void *data;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "MP42SampleBuffer.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SampleBuffer
|
||||
|
||||
- (void)dealloc {
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
//
|
||||
|
||||
#import "MP42SecurityAccessToken.h"
|
||||
#import <MP42Foundation/MP42Utilities.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SecurityAccessToken ()
|
||||
@property (nonatomic, readonly) id<MP42SecurityScope> object;
|
||||
@property (nonatomic, readonly) BOOL accessed;
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SecurityAccessToken
|
||||
|
||||
- (instancetype)initWithObject:(id<MP42SecurityScope>)object;
|
||||
@@ -27,7 +30,7 @@
|
||||
|
||||
+ (instancetype)tokenWithObject:(id<MP42SecurityScope>)object
|
||||
{
|
||||
return [[self alloc] initWithObject:object];
|
||||
return [[MP42SecurityAccessToken alloc] initWithObject:object];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "MP42Track+Private.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SrtImporter {
|
||||
@private
|
||||
MP42SubSerializer *_ss;
|
||||
|
||||
@@ -8,10 +8,12 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42TextSample.h"
|
||||
#import "MP42Utilities.h"
|
||||
#import "mp4v2.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SubLine : NSObject
|
||||
{
|
||||
@public
|
||||
@@ -25,6 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (instancetype)initWithLine:(NSString *)l start:(unsigned)s end:(unsigned)e top_pos:(unsigned)p forced:(unsigned)f;
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42SubSerializer : NSObject
|
||||
|
||||
- (void)addLine:(MP42SubLine *)sline;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#import "MP42SampleBuffer.h"
|
||||
#import "MP42HtmlParser.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SubSerializer
|
||||
{
|
||||
// input lines, sorted by 1. beginning time 2. original insertion order
|
||||
@@ -165,6 +166,7 @@ canOutput:
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SubLine
|
||||
|
||||
-(instancetype)initWithLine:(NSString *)l start:(unsigned)s end:(unsigned)e
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42VideoTrack.h"
|
||||
#import <MP42Foundation/MP42VideoTrack.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#import <MP42Foundation/MP42Foundation-Swift.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42SubtitleTrack
|
||||
|
||||
- (instancetype)initWithSourceURL:(NSURL *)URL trackID:(NSInteger)trackID fileHandle:(MP4FileHandle)fileHandle
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42Image.h"
|
||||
#import <MP42Foundation/MP42MediaFormat.h>
|
||||
#import <MP42Foundation/MP42Image.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
//
|
||||
|
||||
#import "MP42TextSample.h"
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42TextSample
|
||||
|
||||
- (NSComparisonResult)compare:(MP42TextSample *)otherObject
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#import "MP42SSAParser.h"
|
||||
#import "MP42SSAConverter.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42TextSubConverter ()
|
||||
|
||||
@property (nonatomic, readonly) NSThread *decoderThread;
|
||||
|
||||
@@ -40,9 +40,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (void)startReading;
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer *)sample;
|
||||
- (nullable MP42SampleBuffer *)copyNextSample;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+10
-3
@@ -7,9 +7,11 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42MediaFormat.h"
|
||||
#import "MP42ConversionSettings.h"
|
||||
#import "MP42SecurityAccessToken.h"
|
||||
#import <MP42Foundation/MP42Utilities.h>
|
||||
#import <MP42Foundation/MP42ConversionSettings.h>
|
||||
#import <MP42Foundation/MP42SecurityAccessToken.h>
|
||||
|
||||
@class MP42SampleBuffer;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -49,6 +51,11 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, readonly) BOOL canExport;
|
||||
- (BOOL)exportToURL:(NSURL *)url error:(NSError * __autoreleasing *)error;
|
||||
|
||||
#pragma mark - Private
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer *)sample MP42_OBJC_DIRECT;
|
||||
- (nullable MP42SampleBuffer *)copyNextSample MP42_OBJC_DIRECT;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+12
-1
@@ -6,7 +6,18 @@
|
||||
// Copyright (c) 2013 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MP42MediaFormat.h"
|
||||
#import <MP42Foundation/MP42MediaFormat.h>
|
||||
|
||||
// Direct method and property calls increases performance and reduces binary size.
|
||||
#if defined(__IPHONE_14_0) || defined(__MAC_10_16) || defined(__TVOS_14_0) || defined(__WATCHOS_7_0)
|
||||
#define MP42_OBJC_DIRECT_MEMBERS __attribute__((objc_direct_members))
|
||||
#define MP42_OBJC_DIRECT __attribute__((objc_direct))
|
||||
#define MP42_DIRECT ,direct
|
||||
#else
|
||||
#define MP42_OBJC_DIRECT_MEMBERS
|
||||
#define MP42_OBJC_DIRECT
|
||||
#define MP42_DIRECT
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Track.h"
|
||||
#import <MP42Foundation/MP42Track.h>
|
||||
|
||||
@interface MP42VideoTrack : MP42Track <NSSecureCoding, NSCopying>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import <mp4v2.h>
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42VideoTrack
|
||||
|
||||
- (instancetype)initWithSourceURL:(NSURL *)URL trackID:(NSInteger)trackID fileHandle:(MP42FileHandle)fileHandle
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#import "MP42Track+Private.h"
|
||||
#import "MP42SampleBuffer.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface SBVobSubSample : NSObject
|
||||
{
|
||||
@public
|
||||
@@ -28,6 +29,7 @@
|
||||
- (id)initWithTime:(long)time offset:(long)offset;
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface SBVobSubTrack : NSObject
|
||||
{
|
||||
@public
|
||||
@@ -44,6 +46,7 @@
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation SBVobSubSample
|
||||
|
||||
- (id)initWithTime:(long)time offset:(long)offset
|
||||
@@ -60,6 +63,7 @@
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation SBVobSubTrack
|
||||
|
||||
- (id)initWithPrivateData:(NSArray *)idxPrivateData language:(NSString *)lang andIndex:(int)trackIndex
|
||||
@@ -209,6 +213,7 @@ static NSArray<SBVobSubTrack *> * LoadVobSubSubtitles(NSURL *theDirectory, NSStr
|
||||
}
|
||||
}
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42VobSubImporter {
|
||||
@private
|
||||
NSArray *_VobSubTracks;
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
#import "MP42XMLReader.h"
|
||||
#import "MP42Metadata.h"
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@implementation MP42XMLReader
|
||||
|
||||
- (nullable instancetype)initWithURL:(NSURL *)url error:(NSError * __autoreleasing *)error
|
||||
|
||||
@@ -876,7 +876,7 @@
|
||||
A9B9C1E4182391DF00416A4E /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1140;
|
||||
LastUpgradeCheck = 1200;
|
||||
ORGANIZATIONNAME = "Damiano Galassi";
|
||||
TargetAttributes = {
|
||||
A910B5A218394E900064028F = {
|
||||
@@ -1184,6 +1184,7 @@
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
@@ -1252,6 +1253,7 @@
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1140"
|
||||
LastUpgradeVersion = "1200"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
@@ -27,15 +27,6 @@
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A9B9C1EC182391DF00416A4E"
|
||||
BuildableName = "MP42Foundation.framework"
|
||||
BlueprintName = "MP42Foundation"
|
||||
ReferencedContainer = "container:MP42Foundation.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1140"
|
||||
LastUpgradeVersion = "1200"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
||||
Reference in new issue
Block a user