-
Notifications
You must be signed in to change notification settings - Fork 45
/
config.h
50 lines (37 loc) · 1.14 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <string>
#include "display.h"
extern "C" {
#include <libavcodec/avcodec.h>
}
enum ToneMapping { off, fullrange, relative };
struct InputVideo {
std::string file_name;
std::string video_filters;
std::string demuxer;
std::string decoder;
std::string hw_accel_spec;
AVDictionary* demuxer_options{nullptr}; // mutated by Demuxer
AVDictionary* decoder_options{nullptr}; // mutated by VideoDecoder
AVDictionary* hw_accel_options{nullptr}; // mutated by VideoDecoder
unsigned peak_luminance_nits{100}; // [cd / m^2]
};
struct VideoCompareConfig {
bool verbose{false};
bool fit_window_to_usable_bounds{false};
bool high_dpi_allowed{false};
bool use_10_bpc{false};
bool fast_input_alignment{false};
bool disable_auto_filters{false};
int display_number{0};
std::tuple<int, int> window_size{-1, -1};
Display::Mode display_mode{Display::Mode::split};
Display::Loop auto_loop_mode{Display::Loop::off};
ToneMapping tone_mapping_mode{ToneMapping::off};
float boost_tone{1};
size_t frame_buffer_size{50};
double time_shift_ms{0};
float wheel_sensitivity{1};
InputVideo left;
InputVideo right;
};