-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added unit tests * fix ci? * added more unit tests and optimized+redesigned settings to conform to tests
- Loading branch information
1 parent
9a9a19a
commit 55af650
Showing
12 changed files
with
199 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
ffmpeg | ||
cmake | ||
spdlog | ||
argparse | ||
catch2_3 | ||
]; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#pragma once | ||
|
||
#include <tuple> | ||
#include <string> | ||
|
||
namespace Hyperwall { | ||
|
||
typedef std::tuple<int, int> coordinate; | ||
|
||
struct Settings { | ||
public: | ||
const coordinate resolution; | ||
const coordinate dimensions; | ||
const std::string bitrate; | ||
const unsigned int framerate; | ||
constexpr Settings(const coordinate& resolution, const coordinate& dimensions, const std::string bitrate, const unsigned int framerate) : | ||
resolution(resolution), | ||
dimensions(dimensions), | ||
bitrate(bitrate), | ||
framerate(framerate) { | ||
} | ||
|
||
constexpr Settings(const coordinate& resolution, const coordinate& dimensions, const std::string bitrate) : | ||
resolution(resolution), | ||
dimensions(dimensions), | ||
bitrate(bitrate), | ||
framerate(60) { | ||
|
||
} | ||
|
||
constexpr Settings(const coordinate& resolution, const coordinate& dimensions) : | ||
resolution(resolution), | ||
dimensions(dimensions), | ||
bitrate("1G"), | ||
framerate(60) { | ||
} | ||
|
||
constexpr Settings(const coordinate& resolution) : | ||
resolution(resolution), | ||
dimensions({2, 2}), | ||
bitrate("1G"), | ||
framerate(60) { | ||
} | ||
|
||
constexpr Settings() : | ||
resolution({1920, 1080}), | ||
dimensions({2, 2}), | ||
bitrate("1G"), | ||
framerate(60) { | ||
|
||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.