diff --git a/MP42/MP42AACImporter.mm b/MP42/MP42AACImporter.mm index 5e6aae4..0a5d954 100644 --- a/MP42/MP42AACImporter.mm +++ b/MP42/MP42AACImporter.mm @@ -718,7 +718,7 @@ static bool GetFirstHeader(FILE* inFile) { if ((self = [super initWithURL:fileURL])) { - MP42Track *newTrack = [[MP42AudioTrack alloc] init]; + MP42AudioTrack *newTrack = [[MP42AudioTrack alloc] init]; newTrack.format = MP42AudioFormatAAC; newTrack.sourceURL = self.fileURL; @@ -801,7 +801,7 @@ static bool GetFirstHeader(FILE* inFile) samplesPerSecond, channelConfig); - [(MP42AudioTrack*) newTrack setChannels:channelConfig]; + [newTrack setChannels:channelConfig]; [newTrack setDataLength:[[[[NSFileManager defaultManager] attributesOfItemAtPath:self.fileURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue]]; aacInfo = [[NSMutableData alloc] init]; diff --git a/MP42/MP42AC3Importer.m b/MP42/MP42AC3Importer.m index c83b716..5e74325 100644 --- a/MP42/MP42AC3Importer.m +++ b/MP42/MP42AC3Importer.m @@ -12,6 +12,7 @@ #import "MP42Languages.h" #import "MP42File.h" #import "MP42PrivateUtilities.h" +#import "MP42FormatUtilites.h" #import "MP42Fifo.h" #import "MP42Sample.h" diff --git a/MP42/MP42AudioTrack.m b/MP42/MP42AudioTrack.m index e04c084..896e344 100644 --- a/MP42/MP42AudioTrack.m +++ b/MP42/MP42AudioTrack.m @@ -8,7 +8,9 @@ #import "MP42AudioTrack.h" #import "MP42Track+Private.h" + #import "MP42PrivateUtilities.h" +#import "MP42FormatUtilites.h" #import "MP42MediaFormat.h" extern u_int8_t MP4AV_AacConfigGetChannels(u_int8_t* pConfig); diff --git a/MP42/MP42EditListsReconstructor.h b/MP42/MP42EditListsReconstructor.h index 0cdfce5..773fc52 100644 --- a/MP42/MP42EditListsReconstructor.h +++ b/MP42/MP42EditListsReconstructor.h @@ -32,7 +32,6 @@ BOOL _editOpen; - FourCharCode _format; uint64_t _priming; BOOL _primingUsed; } diff --git a/MP42/MP42FormatUtilites.h b/MP42/MP42FormatUtilites.h new file mode 100644 index 0000000..35a1e62 --- /dev/null +++ b/MP42/MP42FormatUtilites.h @@ -0,0 +1,25 @@ +// +// MP42FormatUtilites.h +// MP42Foundation +// +// Created by Damiano Galassi on 10/11/15. +// Copyright © 2015 Damiano Galassi. All rights reserved. +// + +#ifndef MP42FormatUtilites_h +#define MP42FormatUtilites_h + +#ifdef __cplusplus +extern "C" { +#endif + + int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag); + int readEAC3Config(const uint8_t *cookie, uint32_t cookieLen, UInt32 *channelsCount, UInt32 *channelLayoutTag); + + CFDataRef createCookie_EAC3(uint8_t *frame, uint32_t size); + +#ifdef __cplusplus +} +#endif + +#endif /* MP42FormatUtilites_h */ diff --git a/MP42/MP42FormatUtilites.mm b/MP42/MP42FormatUtilites.mm new file mode 100644 index 0000000..0a72761 --- /dev/null +++ b/MP42/MP42FormatUtilites.mm @@ -0,0 +1,227 @@ +// +// MP42FormatUtilites.c +// MP42Foundation +// +// Created by Damiano Galassi on 10/11/15. +// Copyright © 2015 Damiano Galassi. All rights reserved. +// + +#include "MP42FormatUtilites.h" +#include "mbs.h" + +#import + +static const int ac3_layout_no_lfe[8] = { + kAudioChannelLayoutTag_Stereo, + kAudioChannelLayoutTag_Mono, + kAudioChannelLayoutTag_Stereo, + kAudioChannelLayoutTag_ITU_3_0, + kAudioChannelLayoutTag_ITU_2_1, + kAudioChannelLayoutTag_ITU_3_1, + kAudioChannelLayoutTag_ITU_2_2, + kAudioChannelLayoutTag_ITU_3_2}; + +static const int ac3_layout_lfe[8] = { + kAudioChannelLayoutTag_DVD_4, + kAudioChannelLayoutTag_AC3_1_0_1, + kAudioChannelLayoutTag_DVD_4, + kAudioChannelLayoutTag_DVD_10, + kAudioChannelLayoutTag_DVD_5, + kAudioChannelLayoutTag_DVD_11, + kAudioChannelLayoutTag_DVD_6, + kAudioChannelLayoutTag_ITU_3_2_1}; + +int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag) +{ + if(lfeon) { + *channelLayoutTag = ac3_layout_lfe[acmod]; + } + else { + *channelLayoutTag = ac3_layout_no_lfe[acmod]; + } + + *channelsCount = AudioChannelLayoutTag_GetNumberOfChannels(*channelLayoutTag); + + return 1; +} + +static const int eac3_layout_no_lfe[8] = { + kAudioChannelLayoutTag_Stereo, + kAudioChannelLayoutTag_Mono, + kAudioChannelLayoutTag_Stereo, + kAudioChannelLayoutTag_AC3_3_0, + kAudioChannelLayoutTag_DVD_2, + kAudioChannelLayoutTag_AC3_3_1, + kAudioChannelLayoutTag_DVD_3, + kAudioChannelLayoutTag_MPEG_5_0_C}; + +static const int eac3_layout_lfe[8] = { + kAudioChannelLayoutTag_DVD_4, + kAudioChannelLayoutTag_AC3_1_0_1, + kAudioChannelLayoutTag_DVD_4, + kAudioChannelLayoutTag_AC3_3_0_1, + kAudioChannelLayoutTag_AC3_2_1_1, + kAudioChannelLayoutTag_AC3_3_1_1, + kAudioChannelLayoutTag_DVD_18, + kAudioChannelLayoutTag_MPEG_5_1_C, +}; + +int readEAC3Config(const uint8_t *cookie, uint32_t cookieLen, UInt32 *channelsCount, UInt32 *channelLayoutTag) +{ + if (cookieLen < 5) { + return 0; + } + + CMemoryBitstream b; + b.SetBytes((uint8_t *)cookie, cookieLen); + + b.GetBits(13); // data_rate + b.GetBits(3); // num_ind_sub + + // we support only one independent substream + for (int i = 0; i < 1; i++) + { + //uint32_t fscod, bsid, asvc, bsmod; + uint8_t acmod, lfeon; + + b.GetBits(2); // fscod + b.GetBits(5); // bsid + b.SkipBits(1); // reserved + b.GetBits(1); // asvc + b.GetBits(3); // bsmod + + acmod = b.GetBits(3); + lfeon = b.GetBits(1); + + b.SkipBits(3); // reserved + + uint8_t num_dep_sub = 0; + uint16_t chan_loc = 0; + + num_dep_sub = b.GetBits(4); + + if (num_dep_sub > 0 && cookieLen > 5) { + chan_loc = b.GetBits(9); + } + + if (acmod == 7 && lfeon && chan_loc != 0) { + // TODO: complete the list + if (chan_loc & 0x1) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_B; + } + else if (chan_loc & 0x2) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_A; + } + else if (chan_loc & 0x3) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_A; + } + else if (chan_loc & 0x4) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_B; + } + else if (chan_loc & 0x5) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_C; + } + else if (chan_loc & 0x6) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_D; + } + else if (chan_loc & 0x7) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_E; + } + else if (chan_loc & 0x8) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_C; + } + else if (chan_loc & 0x9) { + *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_A; + } + } + else { + if (lfeon) { + *channelLayoutTag = eac3_layout_lfe[acmod]; + } + else { + *channelLayoutTag = eac3_layout_no_lfe[acmod]; + } + } + + *channelsCount = AudioChannelLayoutTag_GetNumberOfChannels(*channelLayoutTag); + } + + return 1; +} + +CFDataRef createCookie_EAC3(uint8_t *frame, uint32_t size) +{ + CMemoryBitstream b; + b.SetBytes(frame, size); + + uint64_t syncword, substreamid, strmtyp, frmsiz, fscod, bsid, bsmod, acmod, lfeon; + uint16_t chanmap = 0; + + syncword = b.GetBits(16); + + if (syncword != 0xb77) { + return NULL; + } + + strmtyp = b.GetBits(2); // strmtyp + substreamid = b.GetBits(3); // substreamid + + frmsiz = b.GetBits(11); + fscod = b.GetBits(2); + + if (fscod == 0x3) { + b.GetBits(2); // fscod2 + } + else { + b.GetBits(2); // numblkscod + } + + acmod = b.GetBits(3); + lfeon = b.GetBits(1); + bsid = b.GetBits(5); + + b.GetBits(5); // dialnorm + uint8_t compre = b.GetBits(1); // compre + if (compre) { + b.GetBits(8); // compr + } + + if (acmod == 0x0) { + b.GetBits(5); // dialnorm2 + uint8_t compre2e = b.GetBits(1); // compre2e + if (compre2e) { + b.GetBits(8); // compr2 + } + } + + if (strmtyp == 0x1) { + uint8_t chanmape = b.GetBits(1); + if (chanmape) { + chanmap = b.GetBits(16); + } + } + + bsmod = 0; + + // Recreate the dec3 atom + CMemoryBitstream cookie; + cookie.AllocBytes(32); + cookie.PutBits(0, 13); // data_rate + cookie.PutBits(0, 3); // num_ind_sub + + cookie.PutBits(fscod, 2); + cookie.PutBits(bsid, 5); + cookie.PutBits(0, 1); // reserved + + cookie.PutBits(1, 1); // asvc todo + cookie.PutBits(bsmod, 3); + cookie.PutBits(acmod, 3); + cookie.PutBits(lfeon, 1); + + cookie.PutBits(0, 3); // reserved + + cookie.PutBits(0, 4); // num_dep_sub + cookie.PutBits(0, 1); // reserved + + return CFDataCreate(NULL, cookie.GetBuffer(), cookie.GetNumberOfBytes()); +} diff --git a/MP42/MP42MkvImporter.m b/MP42/MP42MkvImporter.m index d3936aa..40eff0c 100644 --- a/MP42/MP42MkvImporter.m +++ b/MP42/MP42MkvImporter.m @@ -19,6 +19,7 @@ #import "mp4v2.h" #import "MP42PrivateUtilities.h" +#import "MP42FormatUtilites.h" #import "MP42Track+Muxer.h" #define SCALE_FACTOR 1000000.f @@ -546,38 +547,8 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t [magicCookie appendBytes:&frmsizecod length:sizeof(uint64_t)]; } else if (!strcmp(trackInfo->CodecID, "A_EAC3")) { - // parse EAC3 header - - /*uint64_t strmtyp, substreamid; - uint64_t frmsiz, fscod, bsid, bsmod, acmod, lfeon; - - strmtyp = (*(frame+2) >> 6) & 0x3; - substreamid = (*(frame+2) >> 3) & 0x7; - - frmsiz = (*(frame+2) & 0x7) << 8; - frmsiz += *(frame+3); - - fscod = (*(frame+4) >> 6) & 0x3; - - if (fscod == 0x3) { - - } - else { - - } - - acmod = (*(frame+4) & 0xe) >> 1; - lfeon = (*(frame+4) & 0x1); - bsid = (*(frame+5) >> 3) & 0x1f; - bsmod = 0; - - if (acmod == 0x0) { // if 1+1 mode (dual mono, so some items need a second value) - - } - - if (strmtyp == 0x1) { // if dependent stream - - }*/ + NSData *magicCookie = (NSData *)createCookie_EAC3(frame, FrameSize); + return [magicCookie autorelease]; } mkv_Seek(_matroskaFile, 0, 0); diff --git a/MP42/MP42Muxer.m b/MP42/MP42Muxer.m index 3594628..e15d80f 100644 --- a/MP42/MP42Muxer.m +++ b/MP42/MP42Muxer.m @@ -195,7 +195,8 @@ } // AAC audio track - else if ([track isMemberOfClass:[MP42AudioTrack class]] && [track.format isEqualToString:MP42AudioFormatAAC]) { + else if ([track isMemberOfClass:[MP42AudioTrack class]] && + ([track.format isEqualToString:MP42AudioFormatAAC] || [track.format isEqualToString:MP42AudioFormatHEAAC])) { dstTrackId = MP4AddAudioTrack(_fileHandle, timeScale, 1024, MP4_MPEG4_AUDIO_TYPE); diff --git a/MP42/MP42PrivateUtilities.h b/MP42/MP42PrivateUtilities.h index 11ad32f..5f685d0 100644 --- a/MP42/MP42PrivateUtilities.h +++ b/MP42/MP42PrivateUtilities.h @@ -50,9 +50,6 @@ ComponentResult ReadESDSDescExt(void* descExt, UInt8 **buffer, int *size, int ve CFDataRef createDescExt_XiphVorbis(UInt32 codecPrivateSize, const void * codecPrivate); CFDataRef createDescExt_XiphFLAC(UInt32 codecPrivateSize, const void * codecPrivate); -int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag); -int readEAC3Config(const uint8_t *cookie, uint32_t cookieLen, UInt32 *channelsCount, UInt32 *channelLayoutTag); - int64_t getTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id); void setTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id, int64_t offset); int copyTrackEditLists (MP4FileHandle fileHandle, MP4TrackId srcTrackId, MP4TrackId dstTrackId); diff --git a/MP42/MP42PrivateUtilities.m b/MP42/MP42PrivateUtilities.m index 91ed6ff..840421c 100644 --- a/MP42/MP42PrivateUtilities.m +++ b/MP42/MP42PrivateUtilities.m @@ -625,142 +625,7 @@ CFDataRef createDescExt_XiphFLAC(UInt32 codecPrivateSize, const void * codecPriv return nil; } -static const int ac3_layout_no_lfe[8] = { - kAudioChannelLayoutTag_Stereo, - kAudioChannelLayoutTag_Mono, - kAudioChannelLayoutTag_Stereo, - kAudioChannelLayoutTag_ITU_3_0, - kAudioChannelLayoutTag_ITU_2_1, - kAudioChannelLayoutTag_ITU_3_1, - kAudioChannelLayoutTag_ITU_2_2, - kAudioChannelLayoutTag_ITU_3_2}; - -static const int ac3_layout_lfe[8] = { - kAudioChannelLayoutTag_DVD_4, - kAudioChannelLayoutTag_AC3_1_0_1, - kAudioChannelLayoutTag_DVD_4, - kAudioChannelLayoutTag_DVD_10, - kAudioChannelLayoutTag_DVD_5, - kAudioChannelLayoutTag_DVD_11, - kAudioChannelLayoutTag_DVD_6, - kAudioChannelLayoutTag_ITU_3_2_1}; - -int readAC3Config(uint64_t acmod, uint64_t lfeon, UInt32 *channelsCount, UInt32 *channelLayoutTag) -{ - if(lfeon) - *channelLayoutTag = ac3_layout_lfe[acmod]; - else - *channelLayoutTag = ac3_layout_no_lfe[acmod]; - - *channelsCount = AudioChannelLayoutTag_GetNumberOfChannels(*channelLayoutTag); - - return 1; -} - -static const int eac3_layout_no_lfe[8] = { - kAudioChannelLayoutTag_Stereo, - kAudioChannelLayoutTag_Mono, - kAudioChannelLayoutTag_Stereo, - kAudioChannelLayoutTag_AC3_3_0, - kAudioChannelLayoutTag_DVD_2, - kAudioChannelLayoutTag_AC3_3_1, - kAudioChannelLayoutTag_DVD_3, - kAudioChannelLayoutTag_MPEG_5_0_C}; - -static const int eac3_layout_lfe[8] = { - kAudioChannelLayoutTag_DVD_4, - kAudioChannelLayoutTag_AC3_1_0_1, - kAudioChannelLayoutTag_DVD_4, - kAudioChannelLayoutTag_AC3_3_0_1, - kAudioChannelLayoutTag_AC3_2_1_1, - kAudioChannelLayoutTag_AC3_3_1_1, - kAudioChannelLayoutTag_DVD_18, - kAudioChannelLayoutTag_MPEG_5_1_C, -}; - -int readEAC3Config(const uint8_t *cookie, uint32_t cookieLen, UInt32 *channelsCount, UInt32 *channelLayoutTag) -{ - if (cookieLen < 5) { - return 0; - } - - //uint32_t data_rate, num_ind_sub; - - //data_rate = *cookie << 5; - //data_rate += (*(cookie + 1) & 0xf8) >> 3; - - //num_ind_sub = *(cookie + 1) & 0x7; - //num_ind_sub += 1; - - // we support only one independent substream - for (int i = 0; i < 1; i++) - { - //uint32_t fscod, bsid, asvc, bsmod; - uint32_t acmod, lfeon; - - //fscod = (*(cookie + 2) & 0xc0) >> 6; - //bsid = (*(cookie + 2) & 0x3e) >> 1; - - //asvc = (*(cookie + 3) & 0x80) >> 7; - - //bsmod = (*(cookie + 3) & 0x70) >> 4; - acmod = (*(cookie + 3) & 0xe) >> 1; - - lfeon = *(cookie + 3) & 0x1; - - uint32_t num_dep_sub = 0; - uint32_t chan_loc = 0; - num_dep_sub = (*(cookie + 4) & 0x1e) >> 1; - - if (num_dep_sub > 0 && cookieLen > 5) { - chan_loc = (*(cookie + 4) & 0x1) << 8; - chan_loc += *(cookie + 5); - } - - if (acmod == 7 && lfeon && chan_loc != 0) { - // TODO: complete the list - if (chan_loc & 0x1) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_B; - } - else if (chan_loc & 0x2) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_A; - } - else if (chan_loc & 0x3) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_A; - } - else if (chan_loc & 0x4) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_B; - } - else if (chan_loc & 0x5) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_C; - } - else if (chan_loc & 0x6) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_D; - } - else if (chan_loc & 0x7) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_E; - } - else if (chan_loc & 0x8) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_6_1_C; - } - else if (chan_loc & 0x9) { - *channelLayoutTag = kAudioChannelLayoutTag_EAC3_7_1_A; - } - } - else { - if (lfeon) { - *channelLayoutTag = eac3_layout_lfe[acmod]; - } - else { - *channelLayoutTag = eac3_layout_no_lfe[acmod]; - } - } - - *channelsCount = AudioChannelLayoutTag_GetNumberOfChannels(*channelLayoutTag); - } - - return 1; -} +#pragma mark - int64_t getTrackStartOffset(MP4FileHandle fileHandle, MP4TrackId Id) { diff --git a/MP42/MP42Utilities.m b/MP42/MP42Utilities.m index d695e14..ea4b6e3 100644 --- a/MP42/MP42Utilities.m +++ b/MP42/MP42Utilities.m @@ -45,7 +45,7 @@ MP42Duration TimeFromString(NSString *time_string, MP42Duration timeScale) BOOL isTrackMuxable(NSString *formatName) { - NSArray *supportedFormats = @[MP42VideoFormatH264, MP42VideoFormatMPEG4Visual, MP42AudioFormatAAC, MP42AudioFormatALAC, + NSArray *supportedFormats = @[MP42VideoFormatH264, MP42VideoFormatMPEG4Visual, MP42AudioFormatAAC, MP42AudioFormatHEAAC, MP42AudioFormatALAC, MP42AudioFormatAC3, MP42AudioFormatEAC3, MP42AudioFormatDTS, MP42SubtitleFormatTx3g, MP42SubtitleFormatText, MP42ClosedCaptionFormatCEA608, MP42VideoFormatJPEG, MP42SubtitleFormatVobSub]; diff --git a/MP42Foundation.xcodeproj/project.pbxproj b/MP42Foundation.xcodeproj/project.pbxproj index 6fd1e81..d771b80 100644 --- a/MP42Foundation.xcodeproj/project.pbxproj +++ b/MP42Foundation.xcodeproj/project.pbxproj @@ -68,6 +68,10 @@ A91711E9187D547D00459495 /* MP42PreviewGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = A91711E5187D547D00459495 /* MP42PreviewGenerator.m */; }; A917286619FD2BCE00348DF8 /* MP42Logging.h in Headers */ = {isa = PBXBuildFile; fileRef = A917286519FD2BCE00348DF8 /* MP42Logging.h */; settings = {ATTRIBUTES = (Public, ); }; }; A917286719FD2BCE00348DF8 /* MP42Logging.h in Headers */ = {isa = PBXBuildFile; fileRef = A917286519FD2BCE00348DF8 /* MP42Logging.h */; }; + A91C3ACE1BF20CF1008BCF87 /* MP42FormatUtilites.mm in Sources */ = {isa = PBXBuildFile; fileRef = A91C3ACC1BF20CF1008BCF87 /* MP42FormatUtilites.mm */; }; + A91C3ACF1BF20CF1008BCF87 /* MP42FormatUtilites.mm in Sources */ = {isa = PBXBuildFile; fileRef = A91C3ACC1BF20CF1008BCF87 /* MP42FormatUtilites.mm */; }; + A91C3AD01BF20CF1008BCF87 /* MP42FormatUtilites.h in Headers */ = {isa = PBXBuildFile; fileRef = A91C3ACD1BF20CF1008BCF87 /* MP42FormatUtilites.h */; }; + A91C3AD11BF20CF1008BCF87 /* MP42FormatUtilites.h in Headers */ = {isa = PBXBuildFile; fileRef = A91C3ACD1BF20CF1008BCF87 /* MP42FormatUtilites.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 */; }; @@ -270,6 +274,8 @@ A91711E4187D547D00459495 /* MP42PreviewGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42PreviewGenerator.h; sourceTree = ""; }; A91711E5187D547D00459495 /* MP42PreviewGenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MP42PreviewGenerator.m; sourceTree = ""; }; A917286519FD2BCE00348DF8 /* MP42Logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42Logging.h; sourceTree = ""; }; + A91C3ACC1BF20CF1008BCF87 /* MP42FormatUtilites.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MP42FormatUtilites.mm; sourceTree = ""; }; + A91C3ACD1BF20CF1008BCF87 /* MP42FormatUtilites.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42FormatUtilites.h; sourceTree = ""; }; A925AAAD18379AF800BE84D4 /* MP42Utilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42Utilities.h; sourceTree = ""; }; A925AAAE18379AF800BE84D4 /* MP42Utilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MP42Utilities.m; sourceTree = ""; }; A925AABB1837A16500BE84D4 /* QTKitDecrap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QTKitDecrap.h; sourceTree = ""; }; @@ -683,6 +689,8 @@ A9B9C2CE182396A100416A4E /* MP42Ratings.m */, A9B9C2521823923100416A4E /* MP42PrivateUtilities.h */, A9B9C2531823923100416A4E /* MP42PrivateUtilities.m */, + A91C3ACD1BF20CF1008BCF87 /* MP42FormatUtilites.h */, + A91C3ACC1BF20CF1008BCF87 /* MP42FormatUtilites.mm */, A925AAAD18379AF800BE84D4 /* MP42Utilities.h */, A925AAAE18379AF800BE84D4 /* MP42Utilities.m */, A9B9C24E1823923100416A4E /* MP42SubUtilities.h */, @@ -725,6 +733,7 @@ buildActionMask = 2147483647; files = ( A9A0C9B21981593900A72763 /* MP42ComponentLoader.h in Headers */, + A91C3AD11BF20CF1008BCF87 /* MP42FormatUtilites.h in Headers */, A96D28941BAD390400403327 /* MP42Metadata+Private.h in Headers */, A917286719FD2BCE00348DF8 /* MP42Logging.h in Headers */, A99FCBC51BAD65EF0058E27A /* MP42Track+Private.h in Headers */, @@ -786,6 +795,7 @@ A989F1001823AB2E0070AD8C /* MP42Track+Muxer.h in Headers */, A9B9C26A1823923200416A4E /* MP42AudioConverter.h in Headers */, A9B9C2A11823923200416A4E /* MP42VobSubImporter.h in Headers */, + A91C3AD01BF20CF1008BCF87 /* MP42FormatUtilites.h in Headers */, A9B9C2AC1823923200416A4E /* mbs.h in Headers */, A9B9C2891823923200416A4E /* MP42MkvImporter.h in Headers */, A96D28931BAD390400403327 /* MP42Metadata+Private.h in Headers */, @@ -974,6 +984,7 @@ A910B60118394EB20064028F /* MP42AudioConverter.m in Sources */, A910B60318394EB20064028F /* MP42H264Importer.mm in Sources */, A910B60518394EB20064028F /* MP42VobSubImporter.m in Sources */, + A91C3ACF1BF20CF1008BCF87 /* MP42FormatUtilites.mm in Sources */, A910B60718394EB20064028F /* MP42MkvImporter.m in Sources */, A910B60918394EB20064028F /* MP42Mp4Importer.m in Sources */, A910B60B18394EB20064028F /* MP42QTImporter.m in Sources */, @@ -1027,6 +1038,7 @@ A9B9C2841823923200416A4E /* MP42Image.m in Sources */, A9B9C29E1823923200416A4E /* MP42PrivateUtilities.m in Sources */, A9B9C28C1823923200416A4E /* MP42Mp4Importer.m in Sources */, + A91C3ACE1BF20CF1008BCF87 /* MP42FormatUtilites.mm in Sources */, A9B9C26D1823923200416A4E /* MP42AudioTrack.m in Sources */, A9B9C2901823923200416A4E /* MP42OCRWrapper.mm in Sources */, A9B9C2881823923200416A4E /* MP42Metadata.m in Sources */,