/** * 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 VideoTimecodeInsertionMapper { static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); static const int PIC_TIMING_SEI_HASH = HashingUtils::HashString("PIC_TIMING_SEI"); VideoTimecodeInsertion GetVideoTimecodeInsertionForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return VideoTimecodeInsertion::DISABLED; } else if (hashCode == PIC_TIMING_SEI_HASH) { return VideoTimecodeInsertion::PIC_TIMING_SEI; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return VideoTimecodeInsertion::NOT_SET; } Aws::String GetNameForVideoTimecodeInsertion(VideoTimecodeInsertion enumValue) { switch(enumValue) { case VideoTimecodeInsertion::DISABLED: return "DISABLED"; case VideoTimecodeInsertion::PIC_TIMING_SEI: return "PIC_TIMING_SEI"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace VideoTimecodeInsertionMapper } // namespace Model } // namespace MediaConvert } // namespace Aws