Add functionality to change MaxCLL (peak nits) and MaxFALL (avg nits) + HDR with HDMI limited bugfix (#740)
This commit is contained in:
4
cfg.cpp
4
cfg.cpp
@@ -115,6 +115,8 @@ static const ini_var_t ini_vars[] =
|
||||
{ "VIDEO_HUE", (void *)(&(cfg.video_hue)), UINT16, 0, 360},
|
||||
{ "VIDEO_GAIN_OFFSET", (void *)(&(cfg.video_gain_offset)), STRING, 0, sizeof(cfg.video_gain_offset)},
|
||||
{ "HDR", (void*)(&cfg.hdr), UINT8, 0, 2 },
|
||||
{ "HDR_MAX_NITS", (void*)(&(cfg.hdr_max_nits)), UINT16, 100, 10000},
|
||||
{ "HDR_AVG_NITS", (void*)(&(cfg.hdr_avg_nits)), UINT16, 100, 10000},
|
||||
{ "VGA_MODE", (void*)(&(cfg.vga_mode)), STRING, 0, sizeof(cfg.vga_mode) - 1 },
|
||||
{ "NTSC_MODE", (void *)(&(cfg.ntsc_mode)), UINT8, 0, 2},
|
||||
};
|
||||
@@ -450,6 +452,8 @@ void cfg_parse()
|
||||
cfg.wheel_force = 50;
|
||||
cfg.dvi_mode = 2;
|
||||
cfg.hdr = 0;
|
||||
cfg.hdr_max_nits = 1000;
|
||||
cfg.hdr_avg_nits = 250;
|
||||
cfg.video_brightness = 50;
|
||||
cfg.video_contrast = 50;
|
||||
cfg.video_saturation = 100;
|
||||
|
||||
Reference in New Issue
Block a user