From fc448b7a797deeb4dd89b9d96c71c3df84d087be Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 9 Oct 2017 15:00:36 +0200 Subject: [PATCH] Remove isHdVideo in MP42Utilites, cleanup some switch cases. --- MP42/MP42Utilities.h | 2 -- MP42/MP42Utilities.m | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/MP42/MP42Utilities.h b/MP42/MP42Utilities.h index cdd7d2c..3e207c2 100644 --- a/MP42/MP42Utilities.h +++ b/MP42/MP42Utilities.h @@ -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 diff --git a/MP42/MP42Utilities.m b/MP42/MP42Utilities.m index f35b6d7..55f3c29 100644 --- a/MP42/MP42Utilities.m +++ b/MP42/MP42Utilities.m @@ -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);