$ git clone http://tcclient.ion.nu/tc_client.git
commit c2cb5652c159897fd959b910f4c574792238f86c
Author: Alicia <...>
Date: Wed May 24 11:00:24 2017 +0200
tc_client-gtk: made the automatic brightness postprocessing adjustment gradual.
diff --git a/ChangeLog b/ChangeLog
index 108fb30..e9e0343 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@ tc_client-gtk: fixed a race-condition in the builtin video player.
tc_client-gtk: fixed some memory leaks.
tc_client-gtk: use /quit to guarantee a clean exit.
tc_client-gtk: fixed segfault at exit by doing camera cleanup earlier.
+tc_client-gtk: made the automatic brightness postprocessing adjustment gradual.
irchack: don't rely on connection ID.
0.41.1:
Use tinychat.com instead of apl.tinychat.com (works around SSL/TLS issues on windows)
diff --git a/utilities/gtk/postproc.c b/utilities/gtk/postproc.c
index dcadafc..a78d279 100644
--- a/utilities/gtk/postproc.c
+++ b/utilities/gtk/postproc.c
@@ -1,6 +1,6 @@
/*
tc_client-gtk, a graphical user interface for tc_client
- Copyright (C) 2016 alicia@ion.nu
+ Copyright (C) 2016-2017 alicia@ion.nu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -73,8 +73,10 @@ void postprocess(struct postproc_ctx* pp, unsigned char* buf, unsigned int width
}
if(pp->autoadjust)
{
- pp->min_brightness=min;
- pp->max_brightness=max;
+ if(pp->min_brightness<min){++pp->min_brightness;}
+ else if(pp->min_brightness>min){--pp->min_brightness;}
+ if(pp->max_brightness<max){++pp->max_brightness;}
+ else if(pp->max_brightness>max){--pp->max_brightness;}
}
}
if(pp->flip_horizontal)