X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fhistogram%2Fhistogram.C;h=f16e3fd4f46a771db8f1f4b24b27da0339fad9c4;hb=f5725c7e12def18fec49a295dad688652edaa4b3;hp=1d24200135994d351b7620d087c85760f0b58b0e;hpb=050b37188b98a61408badd0582e0605a77275201;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/histogram/histogram.C b/cinelerra-5.1/plugins/histogram/histogram.C index 1d242001..f16e3fd4 100644 --- a/cinelerra-5.1/plugins/histogram/histogram.C +++ b/cinelerra-5.1/plugins/histogram/histogram.C @@ -446,9 +446,6 @@ int HistogramMain::process_buffer(VFrame *frame, frame_rate, use_opengl); -// Apply histogram in hardware - if(use_opengl) return run_opengl(); - this->input = frame; this->output = frame; if( !engine ) @@ -458,8 +455,8 @@ int HistogramMain::process_buffer(VFrame *frame, if( cpus > smps ) cpus = smps; engine = new HistogramEngine(this, cpus, cpus); } -// Always plot to set the curves if automatic - if(config.plot || config.automatic) send_render_gui(frame); +// if to plot histogram + if(config.plot) send_render_gui(frame); // Generate tables here. The same table is used by many packages to render // each horizontal stripe. Need to cover the entire output range in each @@ -494,12 +491,11 @@ int HistogramMain::process_buffer(VFrame *frame, // config.gamma[HISTOGRAM_BLUE], // config.high_input[HISTOGRAM_BLUE]); - +// Apply histogram in hardware + if(use_opengl) return run_opengl(); // Apply histogram engine->process_packages(HistogramEngine::APPLY, input, 0); - - return 0; }