Add functionality to change MaxCLL (peak nits) and MaxFALL (avg nits) + HDR with HDMI limited bugfix (#740)

This commit is contained in:
Sam Hardeman
2023-02-13 00:54:32 +09:00
committed by GitHub
parent 6dcd754ac9
commit 6a8eda7d43
4 changed files with 49 additions and 24 deletions

View File

@@ -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;