Remove isHdVideo in MP42Utilites, cleanup some switch cases.

This commit is contained in:
Damiano Galassi committed 2017-10-09 15:00:36 +02:00
1 parent f0f7a0704b
commit fc448b7a79
2 files changed
-12

No files matched your search

-2
View File
@@ -16,8 +16,6 @@ MP42Duration TimeFromString(NSString *SMPTE_string, MP42Duration timeScale);
BOOL isTrackMuxable(FourCharCode formatName);
BOOL trackNeedConversion(FourCharCode formatName);
int isHdVideo(uint64_t width, uint64_t height);
NSString *nameForChannelLayoutTag(UInt32 channelLayoutTag);
NS_ASSUME_NONNULL_END
-10
View File
@@ -91,16 +91,6 @@ BOOL trackNeedConversion(FourCharCode format) {
return NO;
}
int isHdVideo(uint64_t width, uint64_t height)
{
if ((width > 1280) || (height > 720))
return 2;
else if (((width >= 960) && (height >= 720)) || width >= 1280)
return 1;
return 0;
}
NSString *nameForChannelLayoutTag(UInt32 channelLayoutTag)
{
UInt32 channelLayoutSize = sizeof(AudioChannelLayout);