UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CaptureSource.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 CaptureSource.h: CaptureSource definition
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "HAL/ThreadSafeBool.h"
11
12class FAVIWriter;
13
14#if PLATFORM_WINDOWS && WITH_UNREAL_DEVELOPER_TOOLS
15
16typedef TCHAR* PTCHAR;
17
18#pragma warning(push)
19#pragma warning(disable : 4263) // 'function' : member function does not override any base class virtual member function
20#pragma warning(disable : 4264) // 'virtual_function' : no override available for virtual member function from base
21#if USING_CODE_ANALYSIS
22 #pragma warning(disable:6509) // Invalid annotation: 'return' cannot be referenced in some contexts
23 #pragma warning(disable:6101) // Returning uninitialized memory '*lpdwExitCode'. A successful path through the function does not set the named _Out_ parameter.
24 #pragma warning(disable:28204) // 'Func' has an override at 'file' and only the override is annotated for _Param_(N): when an override is annotated, the base (this function) should be similarly annotated.
25#endif
28#include <streams.h>
31#pragma warning(pop)
32class FCapturePin;
33class FAVIWriter;
34
35// {F817F8A7-DE00-42CF-826A-7A5654602D8E}
37 0xf817f8a7, 0xde00, 0x42cf, 0x82, 0x6a, 0x7a, 0x56, 0x54, 0x60, 0x2d, 0x8e);
38
39
40class FCaptureSource : public CSource
41{
42public:
43 FCaptureSource(const FAVIWriter& Writer);
45
46 void StopCapturing();
48 bool ShouldCapture() const { return !bShutdownRequested; }
49
50private:
52 FThreadSafeBool bShutdownRequested;
53};
54#endif //#if PLATFORM_WINDOWS
55
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define THIRD_PARTY_INCLUDES_START
Definition GenericPlatformCompilerPreSetup.h:63
Definition AVIWriter.h:148
Definition Event.h:21
Definition ThreadSafeBool.h:17
Definition Voronoi.cpp:10