add a display name for 'mebx'.
This commit is contained in:
2 files changed
+26
No files matched your search
@@ -191,6 +191,13 @@ enum : MP42TimeCodeFormatType
|
|||||||
kMP42TimeCodeFormatType_Counter64 = 'cn64'
|
kMP42TimeCodeFormatType_Counter64 = 'cn64'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Metadata Format
|
||||||
|
typedef FourCharCode MP42MetadataFormatType;
|
||||||
|
enum : MP42MetadataFormatType
|
||||||
|
{
|
||||||
|
kMP42MetadataFormatType_TimedMetadata = 'mebx',
|
||||||
|
};
|
||||||
|
|
||||||
// Audio downmixes
|
// Audio downmixes
|
||||||
extern NSString * const SBNoneMixdown;
|
extern NSString * const SBNoneMixdown;
|
||||||
extern NSString * const SBMonoMixdown;
|
extern NSString * const SBMonoMixdown;
|
||||||
|
|||||||
@@ -381,6 +381,22 @@ NSString *localizedTimeCodeDisplayName(FourCharCode mediaSubtype)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSString *localizedMetadataDisplayName(FourCharCode mediaSubtype)
|
||||||
|
{
|
||||||
|
NSString *result = @(FourCC2Str(mediaSubtype));
|
||||||
|
|
||||||
|
switch (mediaSubtype) {
|
||||||
|
case kMP42MetadataFormatType_TimedMetadata:
|
||||||
|
result = NSLocalizedString(@"Timed Metadata", nil);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
NSString *localizedDisplayName(FourCharCode mediaType, FourCharCode mediaSubtype)
|
NSString *localizedDisplayName(FourCharCode mediaType, FourCharCode mediaSubtype)
|
||||||
{
|
{
|
||||||
NSString *result = @(FourCC2Str(mediaSubtype));
|
NSString *result = @(FourCC2Str(mediaSubtype));
|
||||||
@@ -415,6 +431,9 @@ NSString *localizedDisplayName(FourCharCode mediaType, FourCharCode mediaSubtype
|
|||||||
case kMP42MediaType_Hint:
|
case kMP42MediaType_Hint:
|
||||||
result = NSLocalizedString(@"Hint", nil);
|
result = NSLocalizedString(@"Hint", nil);
|
||||||
break;
|
break;
|
||||||
|
case kMP42MediaType_Metadata:
|
||||||
|
result = localizedMetadataDisplayName(mediaSubtype);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user