/** * 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 ProresCodecProfileMapper { static const int APPLE_PRORES_422_HASH = HashingUtils::HashString("APPLE_PRORES_422"); static const int APPLE_PRORES_422_HQ_HASH = HashingUtils::HashString("APPLE_PRORES_422_HQ"); static const int APPLE_PRORES_422_LT_HASH = HashingUtils::HashString("APPLE_PRORES_422_LT"); static const int APPLE_PRORES_422_PROXY_HASH = HashingUtils::HashString("APPLE_PRORES_422_PROXY"); static const int APPLE_PRORES_4444_HASH = HashingUtils::HashString("APPLE_PRORES_4444"); static const int APPLE_PRORES_4444_XQ_HASH = HashingUtils::HashString("APPLE_PRORES_4444_XQ"); ProresCodecProfile GetProresCodecProfileForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLE_PRORES_422_HASH) { return ProresCodecProfile::APPLE_PRORES_422; } else if (hashCode == APPLE_PRORES_422_HQ_HASH) { return ProresCodecProfile::APPLE_PRORES_422_HQ; } else if (hashCode == APPLE_PRORES_422_LT_HASH) { return ProresCodecProfile::APPLE_PRORES_422_LT; } else if (hashCode == APPLE_PRORES_422_PROXY_HASH) { return ProresCodecProfile::APPLE_PRORES_422_PROXY; } else if (hashCode == APPLE_PRORES_4444_HASH) { return ProresCodecProfile::APPLE_PRORES_4444; } else if (hashCode == APPLE_PRORES_4444_XQ_HASH) { return ProresCodecProfile::APPLE_PRORES_4444_XQ; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ProresCodecProfile::NOT_SET; } Aws::String GetNameForProresCodecProfile(ProresCodecProfile enumValue) { switch(enumValue) { case ProresCodecProfile::APPLE_PRORES_422: return "APPLE_PRORES_422"; case ProresCodecProfile::APPLE_PRORES_422_HQ: return "APPLE_PRORES_422_HQ"; case ProresCodecProfile::APPLE_PRORES_422_LT: return "APPLE_PRORES_422_LT"; case ProresCodecProfile::APPLE_PRORES_422_PROXY: return "APPLE_PRORES_422_PROXY"; case ProresCodecProfile::APPLE_PRORES_4444: return "APPLE_PRORES_4444"; case ProresCodecProfile::APPLE_PRORES_4444_XQ: return "APPLE_PRORES_4444_XQ"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ProresCodecProfileMapper } // namespace Model } // namespace MediaConvert } // namespace Aws