UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VideoDecoder.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 "HAL/Platform.h"
9#include "VideoCommon.h"
11#include "VideoDecoderInput.h"
12
13namespace AVEncoder
14{
15 class FVideoDecoderInput;
17
18 class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FVideoDecoder
19 {
20 public:
21 using CreateDecoderAllocationInterfaceCallback = TFunction<void(void* /*InOptions*/, void** /*InOutParamResult*/)>;
22 using ReleaseDecoderAllocationInterfaceCallback = TFunction<void(void* /*InOptions*/, void** /*InOutParamResult*/)>;
23
24 struct UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FInit
25 {
28
29 int32 Width;
30 int32 Height;
31 };
32
33 // --- setup
34 virtual bool Setup(const FInit& InInit) = 0;
35 // Shuts the decoder down AND destroys it. Do not store a pointer to this decoder in a smart pointer!
36 virtual void Shutdown() = 0;
37
38 enum class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") EDecodeResult
39 {
40 Success,
42// TryAgainLater
43 };
44
46 virtual EDecodeResult Decode(const FVideoDecoderInput* InInput) = 0;
47
48 using OnDecodedFrameCallback = TFunction<void(const FVideoDecoderOutput* /*InDecodedFrame*/)>;
50
52 virtual void ClearOnDecodedFrame() { OnDecodedFrame = nullptr; }
53
54 protected:
55 FVideoDecoder() = default;
56 virtual ~FVideoDecoder();
57
58 protected:
65
66 struct FPlatformDecoderAllocInterface;
67
71 FPlatformDecoderAllocInterface* PlatformDecoderAllocInterface = nullptr;
72 };
73}
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition AndroidPlatformMisc.h:14
Definition AudioEncoder.cpp:7
float Decode(EEncoding SourceEncoding, float Value)
Definition TransferFunctions.cpp:63