/** * 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 MotionImageInsertionModeMapper { static const int MOV_HASH = HashingUtils::HashString("MOV"); static const int PNG_HASH = HashingUtils::HashString("PNG"); MotionImageInsertionMode GetMotionImageInsertionModeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MOV_HASH) { return MotionImageInsertionMode::MOV; } else if (hashCode == PNG_HASH) { return MotionImageInsertionMode::PNG; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return MotionImageInsertionMode::NOT_SET; } Aws::String GetNameForMotionImageInsertionMode(MotionImageInsertionMode enumValue) { switch(enumValue) { case MotionImageInsertionMode::MOV: return "MOV"; case MotionImageInsertionMode::PNG: return "PNG"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace MotionImageInsertionModeMapper } // namespace Model } // namespace MediaConvert } // namespace Aws