UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MediaPacket.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5
6namespace AVEncoder
7{
8 struct UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FVideoConfig
9 {
10 FString Codec;
11 uint32 Width;
12 uint32 Height;
15 };
16
17 struct UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FAudioConfig
18 {
19 FString Codec;
23 };
24
25 enum class UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") EPacketType
26 {
27 Audio,
28 Video,
30 };
31
32 struct UE_DEPRECATED(5.4, "AVEncoder has been deprecated. Please use the AVCodecs plugin family instead.") FMediaPacket
33 {
40
41 union
42 {
43 struct
44 {
45 bool bKeyFrame;
46 int32 Width;
47 int32 Height;
50 } Video;
51
52 struct
53 {
54 } Audio;
55 };
56
60 {
61 Type = TypeIn;
63 if (Type == EPacketType::Audio)
65 {
66 }
68 else if (Type == EPacketType::Video)
70 {
72 }
73 }
74
75 bool IsVideoKeyFrame() const
76 {
78 return (Type == EPacketType::Video && Video.bKeyFrame) ? true : false;
80 }
81 };
82}
#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
return true
Definition ExternalRpcRegistry.cpp:601
#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 Array.h:670
Definition AudioEncoder.cpp:7
NO_LOGGING.
Definition AudioMixerPlatformAndroid.cpp:53
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
Type
Definition PawnAction_Move.h:11
IMAGECORE_API int NumChannels(Type Format)
Definition ImageCore.cpp:1452
static UE_FORCEINLINE_HINT void * Memzero(void *Dest, SIZE_T Count)
Definition UnrealMemory.h:131
Definition Timespan.h:76