New formats constants.

This commit is contained in:
Damiano Galassi committed 2014-12-12 11:20:08 +01:00
1 parent c6b60dbd42
commit f0b349eef1
3 files changed
+12 -1

No files matched your search

+4
View File
@@ -32,6 +32,7 @@ extern NSString *const MP42MediaTypeMuxed;
// Video Format
extern NSString *const MP42VideoFormatH265;
extern NSString *const MP42VideoFormatH264;
extern NSString *const MP42VideoFormatMPEG4Visual;
extern NSString *const MP42VideoFormatSorenson;
@@ -68,10 +69,13 @@ extern NSString *const MP42SubtitleFormatText;
extern NSString *const MP42SubtitleFormatVobSub;
extern NSString *const MP42SubtitleFormatPGS;
extern NSString *const MP42SubtitleFormatSSA;
extern NSString *const MP42SubtitleFormatFairPlay;
// Closed Caption Fromat
extern NSString *const MP42ClosedCaptionFormatCEA608;
extern NSString *const MP42ClosedCaptionFormatCEA708;
extern NSString *const MP42ClosedCaptionFormatFairPlay;
// TimeCode Format
+4 -1
View File
@@ -26,6 +26,7 @@ NSString *const MP42MediaTypeTimecode = @"TimeCode Track";
// Video Format
NSString *const MP42VideoFormatH265 = @"H.265";
NSString *const MP42VideoFormatH264 = @"H.264";
NSString *const MP42VideoFormatMPEG4Visual = @"MPEG-4 Visual";
NSString *const MP42VideoFormatSorenson = @"Sorenson Video";
@@ -62,9 +63,11 @@ NSString *const MP42SubtitleFormatText = @"Text";
NSString *const MP42SubtitleFormatVobSub = @"VobSub";
NSString *const MP42SubtitleFormatPGS = @"PGS";
NSString *const MP42SubtitleFormatSSA = @"SSA";
NSString *const MP42SubtitleFormatFairPlay = @"FairPlay Tx3g";
// Closed Caption Fromat
// Closed Caption Format
NSString *const MP42ClosedCaptionFormatFairPlay = @"FairPlay CEA-608";
NSString *const MP42ClosedCaptionFormatCEA608 = @"CEA-608";
NSString *const MP42ClosedCaptionFormatCEA708 = @"CEA-708";
+4
View File
@@ -213,6 +213,8 @@ NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackI
if (dataName) {
if (!strcmp(dataName, "avc1"))
return MP42VideoFormatH264;
else if (!strcmp(dataName, "hev1"))
return MP42VideoFormatH265;
else if (!strcmp(dataName, "mp4a")) {
uint8_t audiotype = MP4GetTrackEsdsObjectTypeId(fileHandle, Id);
if (audiotype == MP4_MPEG4_AUDIO_TYPE)
@@ -246,6 +248,8 @@ NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackI
return MP42AudioFormatFairPlay;
else if (!strcmp(dataName, "drmi"))
return MP42VideoFormatFairPlay;
else if (!strcmp(dataName, "p608"))
return MP42ClosedCaptionFormatFairPlay;
else if (!strcmp(dataName, "tmcd"))
return MP42TimeCodeFormat;
else if (!strcmp(dataName, "mp4s") && !strcmp(type, "subp"))