Add standalone NVENC encoder

This commit is contained in:
ns6089
2023-04-25 16:38:37 +03:00
committed by Cameron Gutman
parent 7fe52bc5f8
commit 68fa43a61c
34 changed files with 2124 additions and 642 deletions
+6 -1
View File
@@ -32,9 +32,14 @@ namespace stat_trackers {
data.calls += 1;
}
void
reset() {
data = {};
}
private:
struct {
std::chrono::steady_clock::time_point last_callback_time = std::chrono::steady_clock::now();
std::chrono::steady_clock::steady_clock::time_point last_callback_time = std::chrono::steady_clock::now();
T stat_min = std::numeric_limits<T>::max();
T stat_max = 0;
double stat_total = 0;