http
This commit is contained in:
30
apps/RenderCadenceCompositor/app/AppConfigProvider.h
Normal file
30
apps/RenderCadenceCompositor/app/AppConfigProvider.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "AppConfig.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
namespace RenderCadenceCompositor
|
||||
{
|
||||
class AppConfigProvider
|
||||
{
|
||||
public:
|
||||
AppConfigProvider();
|
||||
|
||||
bool Load(const std::filesystem::path& path, std::string& error);
|
||||
void ApplyCommandLine(int argc, char** argv);
|
||||
|
||||
const AppConfig& Config() const { return mConfig; }
|
||||
const std::filesystem::path& SourcePath() const { return mSourcePath; }
|
||||
bool LoadedFromFile() const { return mLoadedFromFile; }
|
||||
|
||||
private:
|
||||
AppConfig mConfig;
|
||||
std::filesystem::path mSourcePath;
|
||||
bool mLoadedFromFile = false;
|
||||
};
|
||||
|
||||
double FrameDurationMillisecondsFromRateString(const std::string& rateText, double fallbackRate = 59.94);
|
||||
void VideoFormatDimensions(const std::string& formatName, unsigned& width, unsigned& height);
|
||||
}
|
||||
Reference in New Issue
Block a user