UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VideoDecoderFactory.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "HAL/Platform.h"
8#include "VideoDecoder.h"
9
10#include <HAL/ThreadSafeBool.h>
11
13
14namespace AVEncoder
15{
16 struct FVideoDecoderInfo;
17
18 class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FVideoDecoderFactory
19 {
20 public:
23
24 // --- decoder registry
25
26 // the callback type used to create a registered decoder
28 using CreateDecoderCallback = TFunction<FVideoDecoder*()>;
29
30 // register a decoder so that it can be iterated and created
32
33 // get a list of registered decoders
34 const TArray<FVideoDecoderInfo>& GetAvailable() const { return AvailableDecoders; }
35 AVENCODER_API bool GetInfo(uint32 InID, FVideoDecoderInfo& OutInfo) const;
36
37 // --- decoder creation
38 // create a decoder instance. If not nullptr it must be destroyed through invoking its Shutdown() method!
39 AVENCODER_API FVideoDecoder* Create(uint32 InID, const FVideoDecoder::FInit& InInit);
41
42 private:
46 FVideoDecoderFactory& operator=(const FVideoDecoderFactory&) = delete;
47
49
52
54
58 };
59
60} /* namespace AVEncoder */
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition ThreadSafeCounter.h:14
Definition Array.h:670
Definition AndroidPlatformMisc.h:14
Definition AudioEncoder.cpp:7
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition ObjectPtr.h:426