Remove isHdVideo in MP42Utilites, cleanup some switch cases.
This commit is contained in:
2 files changed
-12
No files matched your search
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user