This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-medialive/source/model/H265Tier.cpp

71 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/H265Tier.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 MediaLive
{
namespace Model
{
namespace H265TierMapper
{
static const int HIGH_HASH = HashingUtils::HashString("HIGH");
static const int MAIN_HASH = HashingUtils::HashString("MAIN");
H265Tier GetH265TierForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == HIGH_HASH)
{
return H265Tier::HIGH;
}
else if (hashCode == MAIN_HASH)
{
return H265Tier::MAIN;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<H265Tier>(hashCode);
}
return H265Tier::NOT_SET;
}
Aws::String GetNameForH265Tier(H265Tier enumValue)
{
switch(enumValue)
{
case H265Tier::HIGH:
return "HIGH";
case H265Tier::MAIN:
return "MAIN";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace H265TierMapper
} // namespace Model
} // namespace MediaLive
} // namespace Aws