99 lines
3.5 KiB
C++
99 lines
3.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediaconvert/model/Eac3AtmosDynamicRangeCompressionRf.h>
|
|
#include <aws/core/utils/HashingUtils.h>
|
|
#include <aws/core/Globals.h>
|
|
#include <aws/core/utils/EnumParseOverflowContainer.h>
|
|
|
|
using namespace Aws::Utils;
|
|
|
|
|
|
namespace Aws
|
|
{
|
|
namespace MediaConvert
|
|
{
|
|
namespace Model
|
|
{
|
|
namespace Eac3AtmosDynamicRangeCompressionRfMapper
|
|
{
|
|
|
|
static const int NONE_HASH = HashingUtils::HashString("NONE");
|
|
static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD");
|
|
static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT");
|
|
static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD");
|
|
static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT");
|
|
static const int SPEECH_HASH = HashingUtils::HashString("SPEECH");
|
|
|
|
|
|
Eac3AtmosDynamicRangeCompressionRf GetEac3AtmosDynamicRangeCompressionRfForName(const Aws::String& name)
|
|
{
|
|
int hashCode = HashingUtils::HashString(name.c_str());
|
|
if (hashCode == NONE_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::NONE;
|
|
}
|
|
else if (hashCode == FILM_STANDARD_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::FILM_STANDARD;
|
|
}
|
|
else if (hashCode == FILM_LIGHT_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::FILM_LIGHT;
|
|
}
|
|
else if (hashCode == MUSIC_STANDARD_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::MUSIC_STANDARD;
|
|
}
|
|
else if (hashCode == MUSIC_LIGHT_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::MUSIC_LIGHT;
|
|
}
|
|
else if (hashCode == SPEECH_HASH)
|
|
{
|
|
return Eac3AtmosDynamicRangeCompressionRf::SPEECH;
|
|
}
|
|
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
|
|
if(overflowContainer)
|
|
{
|
|
overflowContainer->StoreOverflow(hashCode, name);
|
|
return static_cast<Eac3AtmosDynamicRangeCompressionRf>(hashCode);
|
|
}
|
|
|
|
return Eac3AtmosDynamicRangeCompressionRf::NOT_SET;
|
|
}
|
|
|
|
Aws::String GetNameForEac3AtmosDynamicRangeCompressionRf(Eac3AtmosDynamicRangeCompressionRf enumValue)
|
|
{
|
|
switch(enumValue)
|
|
{
|
|
case Eac3AtmosDynamicRangeCompressionRf::NONE:
|
|
return "NONE";
|
|
case Eac3AtmosDynamicRangeCompressionRf::FILM_STANDARD:
|
|
return "FILM_STANDARD";
|
|
case Eac3AtmosDynamicRangeCompressionRf::FILM_LIGHT:
|
|
return "FILM_LIGHT";
|
|
case Eac3AtmosDynamicRangeCompressionRf::MUSIC_STANDARD:
|
|
return "MUSIC_STANDARD";
|
|
case Eac3AtmosDynamicRangeCompressionRf::MUSIC_LIGHT:
|
|
return "MUSIC_LIGHT";
|
|
case Eac3AtmosDynamicRangeCompressionRf::SPEECH:
|
|
return "SPEECH";
|
|
default:
|
|
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
|
|
if(overflowContainer)
|
|
{
|
|
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
|
|
}
|
|
|
|
return {};
|
|
}
|
|
}
|
|
|
|
} // namespace Eac3AtmosDynamicRangeCompressionRfMapper
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|