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]
84 lines
2.1 KiB
C++
84 lines
2.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "VideoCommon.h"
|
|
#include "VideoDecoderAllocationTypes.h"
|
|
|
|
|
|
namespace AVEncoder
|
|
{
|
|
|
|
class AVENCODER_API FVideoDecoderInput
|
|
{
|
|
public:
|
|
|
|
struct FInputData
|
|
{
|
|
const void* EncodedData = nullptr;
|
|
int64 PTS = 0;
|
|
int32 EncodedDataSize = 0;
|
|
int32 Width = 0;
|
|
int32 Height = 0;
|
|
int32 Rotation = 0;
|
|
int32 ContentType = 0;
|
|
bool bIsKeyframe = false;
|
|
bool bIsComplete = false;
|
|
bool bMissingFrames = false;
|
|
};
|
|
|
|
static TSharedPtr<FVideoDecoderInput> Create(const FInputData& InInputData);
|
|
|
|
virtual int32 GetWidth() const = 0;
|
|
virtual int32 GetHeight() const = 0;
|
|
virtual int64 GetPTS() const = 0;
|
|
virtual const void* GetData() const = 0;
|
|
virtual int32 GetDataSize() const = 0;
|
|
virtual bool IsKeyframe() const = 0;
|
|
virtual bool IsCompleteFrame() const = 0;
|
|
virtual bool HasMissingFrames() const = 0;
|
|
virtual int32 GetRotation() const = 0;
|
|
virtual int32 GetContentType() const = 0;
|
|
|
|
protected:
|
|
FVideoDecoderInput() = default;
|
|
virtual ~FVideoDecoderInput() = default;
|
|
FVideoDecoderInput(const FVideoDecoderInput&) = delete;
|
|
FVideoDecoderInput& operator=(const FVideoDecoderInput&) = delete;
|
|
};
|
|
|
|
|
|
|
|
class AVENCODER_API FVideoDecoderOutput
|
|
{
|
|
public:
|
|
virtual int32 AddRef() = 0;
|
|
virtual int32 Release() = 0;
|
|
virtual int32 GetWidth() const = 0;
|
|
virtual int32 GetHeight() const = 0;
|
|
virtual int64 GetPTS() const = 0;
|
|
|
|
virtual const FVideoDecoderAllocFrameBufferResult* GetAllocatedBuffer() const = 0;
|
|
|
|
virtual int32 GetCropLeft() const = 0;
|
|
virtual int32 GetCropRight() const = 0;
|
|
virtual int32 GetCropTop() const = 0;
|
|
virtual int32 GetCropBottom() const = 0;
|
|
virtual int32 GetAspectX() const = 0;
|
|
virtual int32 GetAspectY() const = 0;
|
|
virtual int32 GetPitchX() const = 0;
|
|
virtual int32 GetPitchY() const = 0;
|
|
virtual uint32 GetColorFormat() const = 0;
|
|
|
|
protected:
|
|
virtual ~FVideoDecoderOutput() = default;
|
|
FVideoDecoderOutput() = default;
|
|
FVideoDecoderOutput(const FVideoDecoderOutput&) = delete;
|
|
FVideoDecoderOutput& operator=(const FVideoDecoderOutput&) = delete;
|
|
};
|
|
|
|
|
|
|
|
} /* namespace AVEncoder */
|