/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::Utils; namespace Aws { namespace MediaLive { namespace Model { namespace AudioNormalizationAlgorithmMapper { static const int ITU_1770_1_HASH = HashingUtils::HashString("ITU_1770_1"); static const int ITU_1770_2_HASH = HashingUtils::HashString("ITU_1770_2"); AudioNormalizationAlgorithm GetAudioNormalizationAlgorithmForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ITU_1770_1_HASH) { return AudioNormalizationAlgorithm::ITU_1770_1; } else if (hashCode == ITU_1770_2_HASH) { return AudioNormalizationAlgorithm::ITU_1770_2; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return AudioNormalizationAlgorithm::NOT_SET; } Aws::String GetNameForAudioNormalizationAlgorithm(AudioNormalizationAlgorithm enumValue) { switch(enumValue) { case AudioNormalizationAlgorithm::ITU_1770_1: return "ITU_1770_1"; case AudioNormalizationAlgorithm::ITU_1770_2: return "ITU_1770_2"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace AudioNormalizationAlgorithmMapper } // namespace Model } // namespace MediaLive } // namespace Aws