// Copyright Epic Games, Inc. All Rights Reserved. #include "IElectraPlayerDecoderResourceManager.h" #include "Decoder/ElectraDecoderResourceManager.h" #include "ElectraPlayerPlatform.h" #include "Renderer/RendererVideo.h" TSharedPtr FElectraPlayerDecoderResourceManager::GetDelegate() { return Electra::FPlatformElectraDecoderResourceManager::GetDelegate(); } TSharedPtr FElectraPlayerDecoderResourceManager::CreatePlatformVideoDecoderResourceDelegate(TSharedPtr InElectraPlayerAdapterDelegate) { return Electra::PlatformCreateVideoDecoderResourceDelegate(InElectraPlayerAdapterDelegate); } bool FElectraPlayerDecoderResourceManager::SetupRenderBufferFromDecoderOutput(FString& OutErrorMessage, Electra::IMediaRenderer::IBuffer* InOutBufferToSetup, TSharedPtr InOutBufferPropertes, TSharedPtr InDecoderOutput, IElectraDecoderResourceDelegateBase::IDecoderPlatformResource* InPlatformSpecificResource) { return Electra::FPlatformElectraDecoderResourceManager::SetupRenderBufferFromDecoderOutput(OutErrorMessage, InOutBufferToSetup, InOutBufferPropertes, InDecoderOutput, InPlatformSpecificResource); } FVideoDecoderOutput* FElectraPlayerDecoderResourceManager::FVideo::Create() { return FElectraPlayerPlatformVideoDecoderOutputFactory::Create(); }