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-mediaconvert/source/model/H265Telecine.cpp

78 lines
2.1 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediaconvert/model/H265Telecine.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 H265TelecineMapper
{
static const int NONE_HASH = HashingUtils::HashString("NONE");
static const int SOFT_HASH = HashingUtils::HashString("SOFT");
static const int HARD_HASH = HashingUtils::HashString("HARD");
H265Telecine GetH265TelecineForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == NONE_HASH)
{
return H265Telecine::NONE;
}
else if (hashCode == SOFT_HASH)
{
return H265Telecine::SOFT;
}
else if (hashCode == HARD_HASH)
{
return H265Telecine::HARD;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<H265Telecine>(hashCode);
}
return H265Telecine::NOT_SET;
}
Aws::String GetNameForH265Telecine(H265Telecine enumValue)
{
switch(enumValue)
{
case H265Telecine::NONE:
return "NONE";
case H265Telecine::SOFT:
return "SOFT";
case H265Telecine::HARD:
return "HARD";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace H265TelecineMapper
} // namespace Model
} // namespace MediaConvert
} // namespace Aws