Fixed 32bit build.
This commit is contained in:
1 parent
7611af9ce4
commit
b5060fd96d
5 files changed
+172
-6
No files matched your search
@@ -10,11 +10,17 @@
|
||||
#import "MP42QTImporter.h"
|
||||
#import "MP42File.h"
|
||||
#import "MP42Image.h"
|
||||
#import "MP42Languages.h"
|
||||
#import "MP42Track+Muxer.h"
|
||||
#import "MP42PrivateUtilities.h"
|
||||
#import "QTKitDecrap.h"
|
||||
|
||||
#import <AudioToolbox/AudioToolbox.h>
|
||||
#import <QuickTime/QuickTime.h>
|
||||
#import "MP42Languages.h"
|
||||
#import "QTKitDecrap.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "mp4v2.h"
|
||||
|
||||
|
||||
@interface MP42QTImporter(Private)
|
||||
-(void) movieLoaded;
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
//
|
||||
// QTKitDecrap.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 13/12/12.
|
||||
// Duplicate and fix QTMetadataItem so it can be compiled while targetting 10.6.
|
||||
// Who knows the reason, it's so easy in Cocoa to check if a class exists at runtime...
|
||||
// Oh and almost all the constants from QTMetadataItem all broken, @ instead of ©.
|
||||
// Plus define a QTKit costant.
|
||||
|
||||
#import <QTKit/QTKit.h>
|
||||
|
||||
extern NSString * const QTTrackLanguageAttribute; // NSNumber (long)
|
||||
|
||||
@interface QTMovie (QTMovieSublerExtras)
|
||||
|
||||
- (QTTrack*) trackWithTrackID:(NSInteger)trackID;
|
||||
|
||||
@end
|
||||
|
||||
@interface QTMovie (QTMovie_MetadataReading_10_6_Fix)
|
||||
|
||||
#if (defined(MAC_OS_X_VERSION_10_7))
|
||||
/*!
|
||||
@method commonMetadata
|
||||
@abstract Returns an NSArray containing QTMetadataItem objects for each common metadata key for which a value for the current locale is available.
|
||||
@result An NSArray containing QTMetadataItem objects for each common metadata key for which a value for the current locale is available; may be nil if there is no metadata that's appropriately localized.
|
||||
@discussion The returned metadata may be tagged with default locale information or with no locale information, if that's the best available choice.
|
||||
*/
|
||||
- (NSArray *)commonMetadata;
|
||||
|
||||
/*!
|
||||
@method availableMetadataFormats
|
||||
@abstract Returns an NSArray containing NSString objects representing the metadata formats available to the receiver.
|
||||
@result An NSArray containing an NSString objects, each of which represents a metadata format that is available to the receiver.
|
||||
*/
|
||||
- (NSArray *)availableMetadataFormats;
|
||||
|
||||
/*!
|
||||
@method metadataForFormat:
|
||||
@abstract Returns an NSArray of QTMetadataItem objects having a specified format.
|
||||
@param format
|
||||
The metadata format for which items are requested.
|
||||
@result An NSArray containing all QTMetadataItem objects of the receiver that have the specified format; may be nil if there is no metadata of the specified format.
|
||||
*/
|
||||
- (NSArray *)metadataForFormat:(NSString *)format;
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#if (defined(MAC_OS_X_VERSION_10_7))
|
||||
/*!
|
||||
@class QTMetadataItem
|
||||
@abstract QTMetadataItem represents an item of metadata associated with a QTMovie or QTTrack object.
|
||||
|
||||
@discussion QTMetadataItem objects have keys that accord with the specification of the container format from which they're drawn.
|
||||
|
||||
You can filter arrays of QTMetadataItem objects by locale or by key and keyspace via the category
|
||||
QTMetadataItem_ArrayFiltering defined below.
|
||||
*/
|
||||
|
||||
@class QTMetadataItemInternal;
|
||||
|
||||
@interface QTMetadataItem : NSObject <NSCopying, NSMutableCopying, NSCoding>
|
||||
{
|
||||
QTMetadataItemInternal *_priv;
|
||||
}
|
||||
|
||||
/* indicates the key of the metadata item */
|
||||
@property (readonly, copy) id<NSCopying> key;
|
||||
|
||||
/* indicates the keyspace of the metadata item's key; this will typically be the default keyspace for the metadata container in which the metadata item is stored */
|
||||
@property (readonly, copy) NSString *keySpace;
|
||||
|
||||
/* indicates the locale of the metadata item; may be nil if no locale information is available for the metadata item */
|
||||
@property (readonly, copy) NSLocale *locale;
|
||||
|
||||
/* indicates the timestamp of the metadata item. */
|
||||
@property (readonly) QTTime time;
|
||||
|
||||
/* provides the value of the metadata item */
|
||||
@property (readonly, copy) id<NSCopying> value;
|
||||
|
||||
/* provides a dictionary of the additional attributes */
|
||||
@property (readonly, copy) NSDictionary *extraAttributes;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface QTMetadataItem (QTMetadataItem_TypeCoercion)
|
||||
|
||||
/* provides the value of the metadata item as a string; will be nil if the value cannot be represented as a string */
|
||||
@property (readonly) NSString *stringValue;
|
||||
|
||||
/* provides the value of the metadata item as an NSNumber. If the metadata item's value can't be coerced to a number, @"numberValue" will be nil. */
|
||||
@property (readonly) NSNumber *numberValue;
|
||||
|
||||
/* provides the value of the metadata item as an NSDate. If the metadata item's value can't be coerced to a date, @"dateValue" will be nil. */
|
||||
@property (readonly) NSDate *dateValue;
|
||||
|
||||
/* provides the raw bytes of the value of the metadata item */
|
||||
@property (readonly) NSData *dataValue;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface QTMetadataItem (QTMetadataItem_ArrayFiltering)
|
||||
|
||||
/*!
|
||||
@method metadataItemsFromArray:withLocale:
|
||||
@abstract Filters an array of QTMetadataItem objects according to locale.
|
||||
@param array
|
||||
An array of QTMetadataItem objects to be filtered by locale.
|
||||
@param locale
|
||||
The NSLocale that must be matched for a metadata item to be copied to the output array.
|
||||
@result An NSArray object containing the metadata items of the specified NSArray that match the specified locale.
|
||||
*/
|
||||
+ (NSArray *)metadataItemsFromArray:(NSArray *)array withLocale:(NSLocale *)locale;
|
||||
|
||||
/*!
|
||||
@method metadataItemsFromArray:withKey:keySpace:
|
||||
@abstract Filters an array of QTMetadataItem objects according to key and/or keySpace.
|
||||
@param array
|
||||
An array of QTMetadataItem objects to be filtered by key and/or keySpace.
|
||||
@param key
|
||||
The key that must be matched for a metadata item to be copied to the output array.
|
||||
The keys will be compared to the keys of the QTMetadataItem objects in the array via [key isEqual:].
|
||||
If no filtering according to key is desired, pass nil.
|
||||
@param keySpace
|
||||
The keySpace that must be matched for a metadata item to be copied to the output array.
|
||||
The keySpace will be compared to the keySpaces of the QTMetadataItems in the array via [keySpace isEqualToString:].
|
||||
If no filtering according to keySpace is desired, pass nil.
|
||||
@result An NSArray object containing the metadata items of the specified NSArray that match the specified key and/or keySpace.
|
||||
*/
|
||||
+ (NSArray *)metadataItemsFromArray:(NSArray *)array withKey:(id)key keySpace:(NSString *)keySpace;
|
||||
|
||||
@end
|
||||
|
||||
#endif // if (defined(MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7))
|
||||
@@ -7,8 +7,10 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
A925AAAF18379AF800BE84D4 /* MP42Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = A925AAAD18379AF800BE84D4 /* MP42Utilities.h */; };
|
||||
A925AAAF18379AF800BE84D4 /* MP42Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = A925AAAD18379AF800BE84D4 /* MP42Utilities.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
A925AAB018379AF800BE84D4 /* MP42Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = A925AAAE18379AF800BE84D4 /* MP42Utilities.m */; };
|
||||
A925AABC1837A16500BE84D4 /* QTKitDecrap.h in Headers */ = {isa = PBXBuildFile; fileRef = A925AABB1837A16500BE84D4 /* QTKitDecrap.h */; };
|
||||
A925AABE1837A1A100BE84D4 /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A925AABD1837A1A100BE84D4 /* QuickTime.framework */; };
|
||||
A947BA9B1824F0B3004C734B /* Ratings.json in Resources */ = {isa = PBXBuildFile; fileRef = A947BA9A1824F0B3004C734B /* Ratings.json */; };
|
||||
A989F1001823AB2E0070AD8C /* MP42Track+Muxer.h in Headers */ = {isa = PBXBuildFile; fileRef = A989F0FF1823AB2E0070AD8C /* MP42Track+Muxer.h */; };
|
||||
A989F10F1823B3B40070AD8C /* MP42TextSample.h in Headers */ = {isa = PBXBuildFile; fileRef = A989F10D1823B3B40070AD8C /* MP42TextSample.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
@@ -164,6 +166,8 @@
|
||||
/* Begin PBXFileReference section */
|
||||
A925AAAD18379AF800BE84D4 /* MP42Utilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42Utilities.h; sourceTree = "<group>"; };
|
||||
A925AAAE18379AF800BE84D4 /* MP42Utilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MP42Utilities.m; sourceTree = "<group>"; };
|
||||
A925AABB1837A16500BE84D4 /* QTKitDecrap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QTKitDecrap.h; sourceTree = "<group>"; };
|
||||
A925AABD1837A1A100BE84D4 /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = System/Library/Frameworks/QuickTime.framework; sourceTree = SDKROOT; };
|
||||
A947BA9A1824F0B3004C734B /* Ratings.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = Ratings.json; sourceTree = "<group>"; };
|
||||
A989F0FF1823AB2E0070AD8C /* MP42Track+Muxer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MP42Track+Muxer.h"; sourceTree = "<group>"; };
|
||||
A989F10D1823B3B40070AD8C /* MP42TextSample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42TextSample.h; sourceTree = "<group>"; };
|
||||
@@ -303,6 +307,7 @@
|
||||
A9B9C2E0182397D400416A4E /* libz.dylib in Frameworks */,
|
||||
A9B9C2B3182393ED00416A4E /* libmp4v2.a in Frameworks */,
|
||||
A9B9C2DC1823972400416A4E /* QTKit.framework in Frameworks */,
|
||||
A925AABE1837A1A100BE84D4 /* QuickTime.framework in Frameworks */,
|
||||
A9B9C2DA1823971F00416A4E /* AudioToolbox.framework in Frameworks */,
|
||||
A9B9C2D81823970E00416A4E /* AVFoundation.framework in Frameworks */,
|
||||
A9B9C2DE1823973200416A4E /* CoreMedia.framework in Frameworks */,
|
||||
@@ -345,6 +350,7 @@
|
||||
A9B9C1EF182391DF00416A4E /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A925AABD1837A1A100BE84D4 /* QuickTime.framework */,
|
||||
A9B9C2B2182393ED00416A4E /* libmp4v2.a */,
|
||||
A9B9C49C1823989C00416A4E /* libjpeg.a */,
|
||||
A9B9C49D1823989C00416A4E /* liblept.a */,
|
||||
@@ -536,6 +542,7 @@
|
||||
A9B9C2D1182396C400416A4E /* JSONKit.h */,
|
||||
A9B9C2D2182396C400416A4E /* JSONKit.m */,
|
||||
A9B9C2D5182396FB00416A4E /* baseapi.h */,
|
||||
A925AABB1837A16500BE84D4 /* QTKitDecrap.h */,
|
||||
A9B9C2C71823962600416A4E /* UniversalDetector.h */,
|
||||
);
|
||||
name = Utility;
|
||||
@@ -579,6 +586,7 @@
|
||||
A9B9C2C41823957800416A4E /* MP42Languages.h in Headers */,
|
||||
A9B9C2CF182396A100416A4E /* MP42Ratings.h in Headers */,
|
||||
A9B9C27D1823923200416A4E /* MP42FileImporter.h in Headers */,
|
||||
A925AAAF18379AF800BE84D4 /* MP42Utilities.h in Headers */,
|
||||
A9B9C2911823923200416A4E /* MP42QTImporter.h in Headers */,
|
||||
A9B9C28F1823923200416A4E /* MP42OCRWrapper.h in Headers */,
|
||||
A9B9C2811823923200416A4E /* MP42HtmlParser.h in Headers */,
|
||||
@@ -588,7 +596,6 @@
|
||||
A9B9C2791823923200416A4E /* MP42Fifo.h in Headers */,
|
||||
A9B9C2A31823923200416A4E /* MP42XMLReader.h in Headers */,
|
||||
A9B9C2CB1823968400416A4E /* RegexKitLite.h in Headers */,
|
||||
A925AAAF18379AF800BE84D4 /* MP42Utilities.h in Headers */,
|
||||
A9B9C28D1823923200416A4E /* MP42Muxer.h in Headers */,
|
||||
A9B9C2AD1823923200416A4E /* mpeg4ip_bitstream.h in Headers */,
|
||||
A9B9C2A81823923200416A4E /* MatroskaFile.h in Headers */,
|
||||
@@ -610,6 +617,7 @@
|
||||
A9B9C2A11823923200416A4E /* MP42VobSubImporter.h in Headers */,
|
||||
A9B9C2AC1823923200416A4E /* mbs.h in Headers */,
|
||||
A9B9C2891823923200416A4E /* MP42MkvImporter.h in Headers */,
|
||||
A925AABC1837A16500BE84D4 /* QTKitDecrap.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -834,6 +842,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++98";
|
||||
CLANG_CXX_LIBRARY = "libstdc++";
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
@@ -869,7 +878,11 @@
|
||||
"$(SRCROOT)/Tesseract",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
OTHER_LDFLAGS = (
|
||||
"-read_only_relocs",
|
||||
suppress,
|
||||
);
|
||||
SDKROOT = macosx10.8;
|
||||
USER_HEADER_SEARCH_PATHS = "";
|
||||
};
|
||||
@@ -879,6 +892,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++98";
|
||||
CLANG_CXX_LIBRARY = "libstdc++";
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
@@ -909,6 +923,11 @@
|
||||
"$(SRCROOT)/Tesseract",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
OTHER_LDFLAGS = (
|
||||
"-read_only_relocs",
|
||||
suppress,
|
||||
);
|
||||
SDKROOT = macosx10.8;
|
||||
USER_HEADER_SEARCH_PATHS = "";
|
||||
};
|
||||
|
||||
@@ -666,7 +666,7 @@
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
SDKROOT = macosx10.8;
|
||||
};
|
||||
name = Debug;
|
||||
@@ -682,6 +682,7 @@
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
SDKROOT = macosx10.8;
|
||||
};
|
||||
name = Release;
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user