Update copyright.

This commit is contained in:
Damiano Galassi committed 2020-09-22 11:38:15 +02:00
1 parent 86de20e308
commit b2394c7c3e
94 files changed
+118 -119

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#ifndef FFmpegUtils_h #ifndef FFmpegUtils_h
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42AACImporter.h" #import "MP42AACImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42AC3AudioEncoder.h" #import "MP42AC3AudioEncoder.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42AC3Importer.h" #import "MP42AC3Importer.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42AVFImporter.h" #import "MP42AVFImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 16/09/10. // Created by Damiano Galassi on 16/09/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 16/09/10. // Created by Damiano Galassi on 16/09/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42AudioConverter.h" #import "MP42AudioConverter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42AudioDecoder.h" #import "MP42AudioDecoder.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 23/07/2016. // Created by Damiano Galassi on 23/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42AudioEncoder.h" #import "MP42AudioEncoder.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42AudioTrack.h" #import "MP42AudioTrack.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 24/07/2016. // Created by Damiano Galassi on 24/07/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 26/03/11. // Created by Damiano Galassi on 26/03/11.
// Copyright 2011 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -4,7 +4,7 @@
// //
// Created by Damiano Galassi on 26/03/11. // Created by Damiano Galassi on 26/03/11.
// VobSub code taken from Perian VobSubCodec.c // VobSub code taken from Perian VobSubCodec.c
// Copyright 2011 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42BitmapSubConverter.h" #import "MP42BitmapSubConverter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 05/12/10. // Created by Damiano Galassi on 05/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 05/12/10. // Created by Damiano Galassi on 05/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42CCImporter.h" #import "MP42CCImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 06/02/09. // Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 06/02/09. // Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42ChapterTrack.h" #import "MP42ChapterTrack.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42ClosedCaptionTrack.h" #import "MP42ClosedCaptionTrack.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 12/09/2016. // Created by Damiano Galassi on 12/09/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 12/09/2016. // Created by Damiano Galassi on 12/09/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42ConversionSettings.h" #import "MP42ConversionSettings.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 29/06/14. // Created by Damiano Galassi on 29/06/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 29/06/14. // Created by Damiano Galassi on 29/06/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42EditListsReconstructor.h" #import "MP42EditListsReconstructor.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+23 -18
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42File.h" #import "MP42File.h"
@@ -272,15 +272,18 @@ MP42_OBJC_DIRECT_MEMBERS
for (MP42Track *ref in self.itracks) { for (MP42Track *ref in self.itracks) {
if ([ref isMemberOfClass:[MP42AudioTrack class]]) { if ([ref isMemberOfClass:[MP42AudioTrack class]]) {
MP42AudioTrack *a = (MP42AudioTrack *)ref; MP42AudioTrack *a = (MP42AudioTrack *)ref;
if (a.fallbackTrackId) if (a.fallbackTrackId) {
a.fallbackTrack = [self trackWithTrackID:a.fallbackTrackId]; a.fallbackTrack = [self trackWithTrackID:a.fallbackTrackId];
if (a.followsTrackId) }
if (a.followsTrackId) {
a.followsTrack = [self trackWithTrackID:a.followsTrackId]; a.followsTrack = [self trackWithTrackID:a.followsTrackId];
}
} }
if ([ref isMemberOfClass:[MP42SubtitleTrack class]]) { if ([ref isMemberOfClass:[MP42SubtitleTrack class]]) {
MP42SubtitleTrack *a = (MP42SubtitleTrack *)ref; MP42SubtitleTrack *a = (MP42SubtitleTrack *)ref;
if (a.forcedTrackId) if (a.forcedTrackId) {
a.forcedTrack = [self trackWithTrackID:a.forcedTrackId]; a.forcedTrack = [self trackWithTrackID:a.forcedTrackId];
}
} }
} }
} }
@@ -329,18 +332,19 @@ MP42_OBJC_DIRECT_MEMBERS
- (NSUInteger)duration { - (NSUInteger)duration {
NSUInteger duration = 0; NSUInteger duration = 0;
NSUInteger trackDuration = 0; NSUInteger trackDuration = 0;
for (MP42Track *track in self.itracks) for (MP42Track *track in self.itracks) {
if ((trackDuration = [track duration]) > duration) if ((trackDuration = [track duration]) > duration) {
duration = trackDuration; duration = trackDuration;
}
}
return duration; return duration;
} }
- (uint64_t)dataSize { - (uint64_t)dataSize {
uint64_t estimation = 0; uint64_t estimation = 0;
for (MP42Track *track in self.itracks) for (MP42Track *track in self.itracks) {
estimation += track.dataLength; estimation += track.dataLength;
}
return estimation; return estimation;
} }
@@ -370,7 +374,6 @@ MP42_OBJC_DIRECT_MEMBERS
return track; return track;
} }
} }
return nil; return nil;
} }
@@ -532,13 +535,11 @@ MP42_OBJC_DIRECT_MEMBERS
- (void)moveTracks:(NSArray<MP42Track *> *)tracks toIndex:(NSUInteger)index { - (void)moveTracks:(NSArray<MP42Track *> *)tracks toIndex:(NSUInteger)index {
NSAssert(self.status != MP42StatusWriting, @"Unsupported operation: trying to move tracks while the file is open for writing"); NSAssert(self.status != MP42StatusWriting, @"Unsupported operation: trying to move tracks while the file is open for writing");
for (id track in tracks.reverseObjectEnumerator) for (id track in tracks.reverseObjectEnumerator) {
{
NSUInteger sourceIndex = [self.itracks indexOfObject:track]; NSUInteger sourceIndex = [self.itracks indexOfObject:track];
[self.itracks removeObjectAtIndex:sourceIndex]; [self.itracks removeObjectAtIndex:sourceIndex];
if (sourceIndex < index) if (sourceIndex < index) {
{
index--; index--;
} }
@@ -723,14 +724,16 @@ MP42_OBJC_DIRECT_MEMBERS
#pragma mark - Editing internal #pragma mark - Editing internal
- (void)removeMuxedTrack:(MP42Track *)track { - (void)removeMuxedTrack:(MP42Track *)track {
if (!self.fileHandle) if (!self.fileHandle) {
return; return;
}
// We have to handle a few special cases here. // We have to handle a few special cases here.
if ([track isMemberOfClass:[MP42ChapterTrack class]]) { if ([track isMemberOfClass:[MP42ChapterTrack class]]) {
MP4ChapterType err = MP4DeleteChapters(self.fileHandle, MP4ChapterTypeAny, track.trackId); MP4ChapterType err = MP4DeleteChapters(self.fileHandle, MP4ChapterTypeAny, track.trackId);
if (err == 0) if (err == 0) {
MP4DeleteTrack(self.fileHandle, track.trackId); MP4DeleteTrack(self.fileHandle, track.trackId);
}
} else { } else {
MP4DeleteTrack(self.fileHandle, track.trackId); MP4DeleteTrack(self.fileHandle, track.trackId);
} }
@@ -899,11 +902,13 @@ MP42_OBJC_DIRECT_MEMBERS
uint32_t supportedBrandsCount = 0; uint32_t supportedBrandsCount = 0;
uint32_t flags = 0; uint32_t flags = 0;
if ([options[MP4264BitData] boolValue]) if ([options[MP4264BitData] boolValue]) {
flags += 0x01; flags += 0x01;
}
if ([options[MP4264BitTime] boolValue]) if ([options[MP4264BitTime] boolValue]) {
flags += 0x02; flags += 0x02;
}
if ([fileExtension isEqualToString:MP42FileTypeM4V]) { if ([fileExtension isEqualToString:MP42FileTypeM4V]) {
majorBrand = "M4V "; majorBrand = "M4V ";
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 05/09/15. // Created by Damiano Galassi on 05/09/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42FileImporter.h" #import "MP42FileImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 10/11/15. // Created by Damiano Galassi on 10/11/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#ifndef MP42FormatUtilites_h #ifndef MP42FormatUtilites_h
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 10/11/15. // Created by Damiano Galassi on 10/11/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#include "mbs.h" #include "mbs.h"
+1 -1
View File
@@ -23,7 +23,7 @@
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1</string> <string>1</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Copyright © 2013 Damiano Galassi. All rights reserved.</string> <string>Copyright © 2020 Damiano Galassi. All rights reserved.</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string></string> <string></string>
</dict> </dict>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Andrew Hyatt on 4/19/18. // Created by Andrew Hyatt on 4/19/18.
// Copyright © 2018 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#ifndef MP42Foundation_h #ifndef MP42Foundation_h
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 07/12/10. // Created by Damiano Galassi on 07/12/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42H264Importer.h" #import "MP42H264Importer.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 29/06/14. // Created by Damiano Galassi on 29/06/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 29/06/14. // Created by Damiano Galassi on 29/06/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42Heap.h" #import "MP42Heap.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 26/10/14. // Created by Damiano Galassi on 26/10/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 19/09/15. // Created by Damiano Galassi on 19/09/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 06/02/09. // Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 06/02/09. // Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42Metadata.h" #import "MP42Metadata.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 07/10/2016. // Created by Damiano Galassi on 07/10/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 07/10/2016. // Created by Damiano Galassi on 07/10/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42MetadataFormat.h" #import "MP42MetadataFormat.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 25/08/2016. // Created by Damiano Galassi on 25/08/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 25/08/2016. // Created by Damiano Galassi on 25/08/2016.
// Copyright © 2016 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42MetadataItem.h" #import "MP42MetadataItem.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 12/01/17. // Created by Damiano Galassi on 12/01/17.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#ifndef MP42MetadataUtilities_h #ifndef MP42MetadataUtilities_h
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 12/01/17. // Created by Damiano Galassi on 12/01/17.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42MkvImporter.h" #import "MP42MkvImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42Mp4Importer.h" #import "MP42Mp4Importer.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 30/06/10. // Created by Damiano Galassi on 30/06/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 30/06/10. // Created by Damiano Galassi on 30/06/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42Muxer.h" #import "MP42Muxer.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 27/03/11. // Created by Damiano Galassi on 27/03/11.
// Copyright 2011 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -6
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 27/03/11. // Created by Damiano Galassi on 27/03/11.
// Copyright 2011 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42OCRWrapper.h" #import "MP42OCRWrapper.h"
@@ -34,11 +34,6 @@ public:
tess_base_api.SetSourceResolution(70); tess_base_api.SetSourceResolution(70);
tess_base_api.SetRectangle(0, 0, (int)width, (int)height); tess_base_api.SetRectangle(0, 0, (int)width, (int)height);
char *text = tess_base_api.GetUTF8Text(); char *text = tess_base_api.GetUTF8Text();
/*char *text = tess_base_api.TesseractRect(image,
(int)bytes_per_pixel,
(int)bytes_per_line,
0, 0,
(int)width, (int)height);*/
return text; return text;
} }
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 08/01/14. // Created by Damiano Galassi on 08/01/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 08/01/14. // Created by Damiano Galassi on 08/01/14.
// Copyright (c) 2014 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42PreviewGenerator.h" #import "MP42PreviewGenerator.h"
+1 -1
View File
@@ -3,7 +3,7 @@
* Subler * Subler
* *
* Created by Damiano Galassi on 30/01/09. * Created by Damiano Galassi on 30/01/09.
* Copyright 2009 Damiano Galassi. All rights reserved. * Copyright 2020 Damiano Galassi. All rights reserved.
* *
*/ */
+1 -2
View File
@@ -3,12 +3,11 @@
* Subler * Subler
* *
* Created by Damiano Galassi on 30/01/09. * Created by Damiano Galassi on 30/01/09.
* Copyright 2009 Damiano Galassi. All rights reserved. * Copyright 2020 Damiano Galassi. All rights reserved.
* *
*/ */
#import "MP42PrivateUtilities.h" #import "MP42PrivateUtilities.h"
#import <string.h>
#import <CoreAudio/CoreAudio.h> #import <CoreAudio/CoreAudio.h>
#import <CoreMedia/CMTime.h> #import <CoreMedia/CMTime.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 09/03/2019. // Created by Damiano Galassi on 09/03/2019.
// Copyright © 2019 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 09/03/2019. // Created by Damiano Galassi on 09/03/2019.
// Copyright © 2019 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42RelatedItem.h" #import "MP42RelatedItem.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// SSA parser // SSA parser
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// SSA parser // SSA parser
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42SSAConverter.h" #import "MP42SSAConverter.h"
+2 -2
View File
@@ -1,9 +1,9 @@
// //
// MP42SrtImporter.h // MP42SSAImporter.h
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+2 -2
View File
@@ -1,9 +1,9 @@
// //
// MP42SrtImporter.m // MP42SSAImporter.m
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42SSAImporter.h" #import "MP42SSAImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// SSA parser // SSA parser
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// SSA parser // SSA parser
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42SSAParser.h" #import "MP42SSAParser.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 29/06/10. // Created by Damiano Galassi on 29/06/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 29/06/10. // Created by Damiano Galassi on 29/06/10.
// Copyright 2010 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42SampleBuffer.h" #import "MP42SampleBuffer.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 10/03/2019. // Created by Damiano Galassi on 10/03/2019.
// Copyright © 2019 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 10/03/2019. // Created by Damiano Galassi on 10/03/2019.
// Copyright © 2019 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42SecurityAccessToken.h" #import "MP42SecurityAccessToken.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/10. // Created by Damiano Galassi on 31/01/10.
// Copyright 2010 Damiano Galassi All rights reserved. // Copyright 2020 Damiano Galassi All rights reserved.
// //
#import "MP42SrtImporter.h" #import "MP42SrtImporter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42SubtitleTrack.h" #import "MP42SubtitleTrack.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42 // MP42
// //
// Created by Damiano Galassi on 01/11/13. // Created by Damiano Galassi on 01/11/13.
// Copyright (c) 2013 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42 // MP42
// //
// Created by Damiano Galassi on 01/11/13. // Created by Damiano Galassi on 01/11/13.
// Copyright (c) 2013 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42TextSample.h" #import "MP42TextSample.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 02/10/2017. // Created by Damiano Galassi on 02/10/2017.
// Copyright © 2017 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42TextSubConverter.h" #import "MP42TextSubConverter.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 19/09/15. // Created by Damiano Galassi on 19/09/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42Track.h" #import "MP42Track.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 16/11/13. // Created by Damiano Galassi on 16/11/13.
// Copyright (c) 2013 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import <MP42Foundation/MP42MediaFormat.h> #import <MP42Foundation/MP42MediaFormat.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 16/11/13. // Created by Damiano Galassi on 16/11/13.
// Copyright (c) 2013 Damiano Galassi. All rights reserved. // Copyright (c) 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42Utilities.h" #import "MP42Utilities.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// Subler // Subler
// //
// Created by Damiano Galassi on 31/01/09. // Created by Damiano Galassi on 31/01/09.
// Copyright 2009 Damiano Galassi. All rights reserved. // Copyright 2020 Damiano Galassi. All rights reserved.
// //
#import "MP42VideoTrack.h" #import "MP42VideoTrack.h"
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 18/09/15. // Created by Damiano Galassi on 18/09/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
+1 -1
View File
@@ -3,7 +3,7 @@
// MP42Foundation // MP42Foundation
// //
// Created by Damiano Galassi on 18/09/15. // Created by Damiano Galassi on 18/09/15.
// Copyright © 2015 Damiano Galassi. All rights reserved. // Copyright © 2020 Damiano Galassi. All rights reserved.
// //
#import "NSString+MP42Additions.h" #import "NSString+MP42Additions.h"