Files
UnrealEngineUWP/Engine/Source/Runtime/AVEncoder/Private/Encoders/VideoEncoderH264_Dummy.cpp
aurel cordonnier 50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00

54 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "VideoEncoderH264_Dummy.h"
#ifdef AVENCODER_VIDEO_ENCODER_AVAILABLE_H264_DUMMY
namespace AVEncoder
{
void FVideoEncoderH264_Dummy::Register(FVideoEncoderFactory& InFactory)
{
FVideoEncoderInfo EncoderInfo;
EncoderInfo.CodecType = ECodecType::H264;
EncoderInfo.MaxWidth = 1920;
EncoderInfo.MaxHeight = 1088;
EncoderInfo.H264.MaxLevel = 31;
EncoderInfo.H264.SupportedProfiles = AVEncoder::H264Profile_ConstrainedBaseline | AVEncoder::H264Profile_Baseline;
InFactory.Register(EncoderInfo, []() {
return TUniquePtr<FVideoEncoder>(new FVideoEncoderH264_Dummy());
});
}
FVideoEncoderH264_Dummy::FVideoEncoderH264_Dummy()
{
}
FVideoEncoderH264_Dummy::~FVideoEncoderH264_Dummy()
{
}
bool FVideoEncoderH264_Dummy::Setup(TSharedRef<FVideoEncoderInput> InInput, const FInit& InInit)
{
return false;
}
void FVideoEncoderH264_Dummy::Shutdown()
{
}
void FVideoEncoderH264_Dummy::Encode(const FVideoEncoderInputFrame* InFrame, const FEncodeOptions& InOptions)
{
}
} // namespace AVEncoder
#endif // AVENCODER_VIDEO_ENCODER_AVAILABLE_H264_DUMMY