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]
35 lines
789 B
C++
35 lines
789 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "WmfPrivate.h"
|
|
|
|
#include "Math/NumericLimits.h"
|
|
#include "MediaPacket.h"
|
|
#include "Misc/Optional.h"
|
|
#include "Templates/RefCounting.h"
|
|
|
|
class FWmfMp4Writer final
|
|
{
|
|
public:
|
|
bool Initialize(const TCHAR* Filename);
|
|
|
|
/**
|
|
* Create an audio stream and return the its index on success
|
|
*/
|
|
TOptional<DWORD> CreateAudioStream(const FString& Codec, const AVEncoder::FAudioConfig& Config);
|
|
|
|
/**
|
|
* Create a video stream and return the its index on success
|
|
*/
|
|
TOptional<DWORD> CreateVideoStream(const FString& Codec, const AVEncoder::FVideoConfig& Config);
|
|
|
|
bool Start();
|
|
bool Write(const AVEncoder::FMediaPacket& InSample, DWORD StreamIndex);
|
|
bool Finalize();
|
|
|
|
private:
|
|
TRefCountPtr<IMFSinkWriter> Writer;
|
|
};
|
|
|