* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{
((HistogramWindow*)thread->window)->lock_window("HistogramMain::update_gui");
int reconfigure = load_configuration();
{
((HistogramWindow*)thread->window)->lock_window("HistogramMain::update_gui");
int reconfigure = load_configuration();
int use_opengl = calculate_use_opengl();
//printf("%d\n", use_opengl);
int use_opengl = calculate_use_opengl();
//printf("%d\n", use_opengl);
// config.low_input[HISTOGRAM_RED],
// config.gamma[HISTOGRAM_RED],
// config.high_input[HISTOGRAM_RED],
// config.low_input[HISTOGRAM_RED],
// config.gamma[HISTOGRAM_RED],
// config.high_input[HISTOGRAM_RED],
- preview_lookup[subscript][i] =
- (int)(calculate_level((float)i / 0xffff, subscript, use_value) *
+ preview_lookup[subscript][i] =
+ (int)(calculate_level((float)i / 0xffff, subscript, use_value) *
APPLY_INPUT_CURVE("pixel.r", "low_input.r", "high_input.r", "gamma.r")
APPLY_INPUT_CURVE("pixel.g", "low_input.g", "high_input.g", "gamma.g")
APPLY_INPUT_CURVE("pixel.b", "low_input.b", "high_input.b", "gamma.b")
APPLY_INPUT_CURVE("pixel.r", "low_input.r", "high_input.r", "gamma.r")
APPLY_INPUT_CURVE("pixel.g", "low_input.g", "high_input.g", "gamma.g")
APPLY_INPUT_CURVE("pixel.b", "low_input.b", "high_input.b", "gamma.b")
-// printf("HistogramMain::handle_opengl %d %d %d %d shader=%d\n",
-// aggregate_interpolation,
+// printf("HistogramMain::handle_opengl %d %d %d %d shader=%d\n",
+// aggregate_interpolation,
0.0 / get_output()->get_texture_h());
glVertex3f(0.0, -(float)get_output()->get_h(), 0);
0.0 / get_output()->get_texture_h());
glVertex3f(0.0, -(float)get_output()->get_h(), 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f((float)get_output()->get_w(), -0.0, 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f((float)get_output()->get_w(), -0.0, 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f(0.0, -0.0, 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f(0.0, -0.0, 0);
0.0 / get_output()->get_texture_h());
glVertex3f(0.0, -(float)get_output()->get_h(), 0);
0.0 / get_output()->get_texture_h());
glVertex3f(0.0, -(float)get_output()->get_h(), 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f((float)get_output()->get_w(), -0.0, 0);
(float)get_output()->get_h() / get_output()->get_texture_h());
glVertex3f((float)get_output()->get_w(), -0.0, 0);