Added ndi receiver and sdi outputs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#include <Factories/NDIMediaReceiverFactory.h>
|
||||
|
||||
#include <AssetTypeCategories.h>
|
||||
#include <Objects/Media/NDIMediaReceiver.h>
|
||||
|
||||
#define LOCTEXT_NAMESPACE "NDIIOEditorMediaReceiverFactory"
|
||||
|
||||
UNDIMediaReceiverFactory::UNDIMediaReceiverFactory(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer) {
|
||||
|
||||
this->bCreateNew = true;
|
||||
this->bEditAfterNew = true;
|
||||
|
||||
this->SupportedClass = UNDIMediaReceiver::StaticClass();
|
||||
}
|
||||
|
||||
FText UNDIMediaReceiverFactory::GetDisplayName() const { return LOCTEXT("NDIMediaReceiverFactoryDisplayName", "NDI Media Receiver"); }
|
||||
|
||||
uint32 UNDIMediaReceiverFactory::GetMenuCategories() const
|
||||
{
|
||||
return EAssetTypeCategories::Media;
|
||||
}
|
||||
|
||||
UObject* UNDIMediaReceiverFactory::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
|
||||
{
|
||||
return NewObject<UNDIMediaReceiver>(InParent, InClass, InName, Flags | RF_Transactional);
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#include <Factories/NDIMediaSenderFactory.h>
|
||||
|
||||
#include <AssetTypeCategories.h>
|
||||
#include <Objects/Media/NDIMediaSender.h>
|
||||
|
||||
#define LOCTEXT_NAMESPACE "NDIIOEditorMediaSenderFactory"
|
||||
|
||||
UNDIMediaSenderFactory::UNDIMediaSenderFactory(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer) {
|
||||
|
||||
bCreateNew = true;
|
||||
bEditAfterNew = true;
|
||||
|
||||
this->SupportedClass = UNDIMediaSender::StaticClass();
|
||||
}
|
||||
|
||||
FText UNDIMediaSenderFactory::GetDisplayName() const { return LOCTEXT("NDIMediaSenderFactoryDisplayName", "NDI Media Sender"); }
|
||||
|
||||
uint32 UNDIMediaSenderFactory::GetMenuCategories() const { return EAssetTypeCategories::Media; }
|
||||
|
||||
UObject* UNDIMediaSenderFactory::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
|
||||
{
|
||||
return NewObject<UNDIMediaSender>(InParent, InClass, InName, Flags | RF_Transactional);
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#include <Factories/NDIMediaSoundWaveFactory.h>
|
||||
|
||||
#include <AssetTypeCategories.h>
|
||||
#include <Objects/Media/NDIMediaSoundWave.h>
|
||||
|
||||
#define LOCTEXT_NAMESPACE "NDIIOEditorMediaSoundWaveFactory"
|
||||
|
||||
UNDIMediaSoundWaveFactory::UNDIMediaSoundWaveFactory(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer) {
|
||||
|
||||
this->bCreateNew = true;
|
||||
this->bEditAfterNew = true;
|
||||
|
||||
this->SupportedClass = UNDIMediaSoundWave::StaticClass();
|
||||
}
|
||||
|
||||
FText UNDIMediaSoundWaveFactory::GetDisplayName() const { return LOCTEXT("NDIMediaSoundWaveFactoryDisplayName", "NDI Media Sound Wave"); }
|
||||
|
||||
uint32 UNDIMediaSoundWaveFactory::GetMenuCategories() const { return EAssetTypeCategories::Sounds; }
|
||||
|
||||
UObject* UNDIMediaSoundWaveFactory::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
|
||||
{
|
||||
return NewObject<UNDIMediaSoundWave>(InParent, InName, Flags | RF_Transactional);
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#include <Factories/NDIMediaTexture2DFactory.h>
|
||||
|
||||
#include <AssetTypeCategories.h>
|
||||
#include <Objects/Media/NDIMediaTexture2D.h>
|
||||
#include <Misc/EngineVersionComparison.h>
|
||||
|
||||
#define LOCTEXT_NAMESPACE "NDIIOEditorMediaSoundWaveFactory"
|
||||
|
||||
UNDIMediaTexture2DFactory::UNDIMediaTexture2DFactory(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer) {
|
||||
|
||||
this->bCreateNew = true;
|
||||
this->bEditAfterNew = true;
|
||||
|
||||
this->SupportedClass = UNDIMediaTexture2D::StaticClass();
|
||||
}
|
||||
|
||||
FText UNDIMediaTexture2DFactory::GetDisplayName() const { return LOCTEXT("NDIMediaTexture2DFactoryDisplayName", "NDI Media Texture2D"); }
|
||||
|
||||
uint32 UNDIMediaTexture2DFactory::GetMenuCategories() const { return EAssetTypeCategories::Textures; }
|
||||
|
||||
UObject* UNDIMediaTexture2DFactory::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
|
||||
{
|
||||
if (UNDIMediaTexture2D* Resource = NewObject<UNDIMediaTexture2D>(InParent, InName, Flags | RF_Transactional))
|
||||
{
|
||||
Resource->UpdateResource();
|
||||
return Resource;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
Reference in New Issue
Block a user