/** * 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 MediaConvert { namespace Model { namespace Eac3AtmosCodingModeMapper { static const int CODING_MODE_AUTO_HASH = HashingUtils::HashString("CODING_MODE_AUTO"); static const int CODING_MODE_5_1_4_HASH = HashingUtils::HashString("CODING_MODE_5_1_4"); static const int CODING_MODE_7_1_4_HASH = HashingUtils::HashString("CODING_MODE_7_1_4"); static const int CODING_MODE_9_1_6_HASH = HashingUtils::HashString("CODING_MODE_9_1_6"); Eac3AtmosCodingMode GetEac3AtmosCodingModeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_AUTO_HASH) { return Eac3AtmosCodingMode::CODING_MODE_AUTO; } else if (hashCode == CODING_MODE_5_1_4_HASH) { return Eac3AtmosCodingMode::CODING_MODE_5_1_4; } else if (hashCode == CODING_MODE_7_1_4_HASH) { return Eac3AtmosCodingMode::CODING_MODE_7_1_4; } else if (hashCode == CODING_MODE_9_1_6_HASH) { return Eac3AtmosCodingMode::CODING_MODE_9_1_6; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Eac3AtmosCodingMode::NOT_SET; } Aws::String GetNameForEac3AtmosCodingMode(Eac3AtmosCodingMode enumValue) { switch(enumValue) { case Eac3AtmosCodingMode::CODING_MODE_AUTO: return "CODING_MODE_AUTO"; case Eac3AtmosCodingMode::CODING_MODE_5_1_4: return "CODING_MODE_5_1_4"; case Eac3AtmosCodingMode::CODING_MODE_7_1_4: return "CODING_MODE_7_1_4"; case Eac3AtmosCodingMode::CODING_MODE_9_1_6: return "CODING_MODE_9_1_6"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Eac3AtmosCodingModeMapper } // namespace Model } // namespace MediaConvert } // namespace Aws