You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Headers are updated to contain any missing #includes needed to compile and #includes are sorted. Nothing is removed. #ushell-cherrypick of 21065896 by bryan.sefcik #preflight 62d4b1a5a6141b6adfb0c892 #jira #ROBOMERGE-OWNER: Bryan.sefcik #ROBOMERGE-AUTHOR: bryan.sefcik #ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824) #ROBOMERGE-CONFLICT from-shelf [CL 21181076 by Bryan sefcik in ue5-main branch]
39 lines
818 B
C++
39 lines
818 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "HAL/Platform.h"
|
|
#include "Misc/Timespan.h"
|
|
#include "Templates/SharedPointer.h"
|
|
|
|
namespace AVEncoder
|
|
{
|
|
class AVENCODER_API FCodecPacket
|
|
{
|
|
public:
|
|
virtual ~FCodecPacket() = default;
|
|
|
|
static FCodecPacket Create(const uint8* InData, uint32 InDataSize);
|
|
|
|
/**
|
|
* Encoding/Decoding latency
|
|
*/
|
|
struct FTimings
|
|
{
|
|
FTimespan StartTs;
|
|
FTimespan FinishTs;
|
|
};
|
|
|
|
TSharedPtr<uint8> Data; // pointer to encoded data
|
|
uint32 DataSize = 0; // number of bytes of encoded data
|
|
bool IsKeyFrame = false; // whether or not packet represents a key frame
|
|
uint32 VideoQP = 0;
|
|
uint32 Framerate;
|
|
FTimings Timings;
|
|
|
|
private:
|
|
FCodecPacket() = default;
|
|
};
|
|
} /* namespace AVEncoder */
|