You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156 [CL 16163576 by aurel cordonnier in ue5-main branch]
42 lines
846 B
C++
42 lines
846 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "VideoCommon.h"
|
|
#include <HAL/CriticalSection.h>
|
|
|
|
namespace AVEncoder
|
|
{
|
|
|
|
class FCodecPacketImpl : public FCodecPacket
|
|
{
|
|
public:
|
|
~FCodecPacketImpl();
|
|
|
|
// clone packet if a longer term copy is needed
|
|
const FCodecPacket* Clone() const override;
|
|
// release a cloned copy
|
|
void ReleaseClone() const override;
|
|
|
|
class FClone : public FCodecPacket
|
|
{
|
|
public:
|
|
~FClone();
|
|
|
|
void Copy(const FCodecPacketImpl& InOriginal);
|
|
|
|
// clone packet if a longer term copy is needed
|
|
const FCodecPacket* Clone() const override;
|
|
// release a cloned copy
|
|
void ReleaseClone() const override;
|
|
|
|
private:
|
|
mutable FThreadSafeCounter RefCounter = 0;
|
|
};
|
|
private:
|
|
mutable FCriticalSection ProtectClone;
|
|
mutable const FClone* MyClone = nullptr;
|
|
};
|
|
|
|
|
|
} /* namespace AVEncoder */ |