UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VideoDecoderInput.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"
8#include "VideoCommon.h"
10
12
13
14namespace AVEncoder
15{
16
17 class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FVideoDecoderInput
18 {
19 public:
20
21 struct UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FInputData
22 {
23 const void* EncodedData = nullptr;
24 int64 PTS = 0;
26 int32 Width = 0;
27 int32 Height = 0;
28 int32 Rotation = 0;
29 int32 ContentType = 0;
30 bool bIsKeyframe = false;
31 bool bIsComplete = false;
32 bool bMissingFrames = false;
33 };
34
36
37 virtual int32 GetWidth() const = 0;
38 virtual int32 GetHeight() const = 0;
39 virtual int64 GetPTS() const = 0;
40 virtual const void* GetData() const = 0;
41 virtual int32 GetDataSize() const = 0;
42 virtual bool IsKeyframe() const = 0;
43 virtual bool IsCompleteFrame() const = 0;
44 virtual bool HasMissingFrames() const = 0;
45 virtual int32 GetRotation() const = 0;
46 virtual int32 GetContentType() const = 0;
47
48 protected:
49 FVideoDecoderInput() = default;
50 virtual ~FVideoDecoderInput() = default;
51 FVideoDecoderInput(const FVideoDecoderInput&) = delete;
52 FVideoDecoderInput& operator=(const FVideoDecoderInput&) = delete;
53 };
54
55
56
57 class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FVideoDecoderOutput
58 {
59 public:
60 virtual int32 AddRef() = 0;
61 virtual int32 Release() = 0;
62 virtual int32 GetWidth() const = 0;
63 virtual int32 GetHeight() const = 0;
64 virtual int64 GetPTS() const = 0;
65
67 virtual const FVideoDecoderAllocFrameBufferResult* GetAllocatedBuffer() const = 0;
69
70 virtual int32 GetCropLeft() const = 0;
71 virtual int32 GetCropRight() const = 0;
72 virtual int32 GetCropTop() const = 0;
73 virtual int32 GetCropBottom() const = 0;
74 virtual int32 GetAspectX() const = 0;
75 virtual int32 GetAspectY() const = 0;
76 virtual int32 GetPitchX() const = 0;
77 virtual int32 GetPitchY() const = 0;
78 virtual uint32 GetColorFormat() const = 0;
79
80 protected:
81 virtual ~FVideoDecoderOutput() = default;
82 FVideoDecoderOutput() = default;
84 FVideoDecoderOutput& operator=(const FVideoDecoderOutput&) = delete;
85 };
86
87
88
89} /* namespace AVEncoder */
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
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
auto GetData(const TStringConversion< Converter, DefaultConversionSize > &Conversion) -> decltype(Conversion.Get())
Definition StringConv.h:802
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition SharedPointer.h:692
Definition AudioEncoder.cpp:7