UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MediaDelegates.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
Delegates/Delegate.h
"
7
#include "
Misc/Build.h
"
8
#include "
Templates/SharedPointer.h
"
9
10
#define UE_MEDIAUTILS_DEVELOPMENT_DELEGATE (UE_BUILD_DEVELOPMENT || UE_BUILD_DEBUG)
11
12
class
IMediaTextureSample
;
13
class
UMediaTexture
;
14
15
class
FMediaDelegates
16
{
17
public
:
18
using
TSharedMediaTextureSample
=
TSharedPtr<IMediaTextureSample, ESPMode::ThreadSafe>
;
19
20
DECLARE_MULTICAST_DELEGATE_TwoParams
(
FOnSampleDiscardedDelegate
,
const
UMediaTexture
*
/*Owner*/
,
TSharedMediaTextureSample
/*FlushedSample*/
);
21
DECLARE_MULTICAST_DELEGATE_ThreeParams
(
FOnPreSampleRenderDelegate
,
const
UMediaTexture
*
/*Owner*/
,
bool
/*UseSample*/
,
TSharedMediaTextureSample
/*SampleToRender*/
);
22
23
24
#if UE_MEDIAUTILS_DEVELOPMENT_DELEGATE
25
31
static
MEDIAUTILS_API
FOnSampleDiscardedDelegate
OnSampleDiscarded_RenderThread
;
32
38
static
MEDIAUTILS_API
FOnPreSampleRenderDelegate
OnPreSampleRender_RenderThread
;
39
40
#endif
//UE_MEDIAUTILS_DEVELOPMENT_DELEGATE
41
};
Build.h
CoreMinimal.h
SharedPointer.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
Delegate.h
FMediaDelegates
Definition
MediaDelegates.h:16
FMediaDelegates::DECLARE_MULTICAST_DELEGATE_ThreeParams
DECLARE_MULTICAST_DELEGATE_ThreeParams(FOnPreSampleRenderDelegate, const UMediaTexture *, bool, TSharedMediaTextureSample)
FMediaDelegates::DECLARE_MULTICAST_DELEGATE_TwoParams
DECLARE_MULTICAST_DELEGATE_TwoParams(FOnSampleDiscardedDelegate, const UMediaTexture *, TSharedMediaTextureSample)
IMediaTextureSample
Definition
IMediaTextureSample.h:199
TSharedPtr< IMediaTextureSample, ESPMode::ThreadSafe >
UMediaTexture
Definition
MediaTexture.h:42
Engine
Source
Runtime
MediaUtils
Public
MediaDelegates.h
Generated by
1.9.8