Files
UnrealEngineUWP/Engine/Source/ThirdParty/libav/Private/libav_Decoder_H265.cpp
Jens Petersam 4682616505 Added wrapper module "libav" for libavcodec on Linux to provide video and audio decoder functionality to media framework.
#preflight 62a08dc1ca0e2c7dfeb1226a
#rnx

[CL 20572085 by Jens Petersam in ue5-main branch]
2022-06-09 02:19:56 -04:00

38 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "libav_Decoder_H265.h"
/***************************************************************************************************************************************************/
#if WITH_LIBAV
extern "C"
{
#include <libavcodec/avcodec.h>
}
bool ILibavDecoderH265::IsAvailable()
{
return ILibavDecoderVideoCommon::IsAvailable(AV_CODEC_ID_HEVC);
}
TSharedPtr<ILibavDecoderVideoCommon, ESPMode::ThreadSafe> ILibavDecoderH265::Create(ILibavDecoderVideoResourceAllocator* InVideoResourceAllocator, const TMap<FString, FVariant>& InOptions)
{
return ILibavDecoderVideoCommon::Create(AV_CODEC_ID_HEVC, InVideoResourceAllocator, InOptions);
}
#else
bool ILibavDecoderH265::IsAvailable()
{
// Call common method to have it print an appropriate not-available message.
ILibavDecoder::LogLibraryNeeded();
return false;
}
TSharedPtr<ILibavDecoderVideoCommon, ESPMode::ThreadSafe> ILibavDecoderH265::Create(ILibavDecoderVideoResourceAllocator* InVideoResourceAllocator, const TMap<FString, FVariant>& InOptions)
{
return nullptr;
}
#endif