projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Andrew new ffmpeg video file + update batch help from RafaMar
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
plugins
/
gamma
/
gamma.C
diff --git
a/cinelerra-5.1/plugins/gamma/gamma.C
b/cinelerra-5.1/plugins/gamma/gamma.C
index 71267770eca9cbad4ba90006402bf02d4bc18c4d..f03df480dad900444415f23634fc9ad3c101f128 100644
(file)
--- a/
cinelerra-5.1/plugins/gamma/gamma.C
+++ b/
cinelerra-5.1/plugins/gamma/gamma.C
@@
-437,29
+437,23
@@
int GammaMain::process_buffer(VFrame *frame,
frame_rate,
use_opengl);
frame_rate,
use_opengl);
- if(use_opengl)
- {
+ int plot = config.plot;
+ if( config.automatic ) {
+ calculate_max(frame);
+ plot = 1; // Always plot to set the slider
+ }
+ if( plot ) {
+ send_render_gui(this);
+ }
+
+ if(use_opengl) {
// Aggregate
if(next_effect_is(_("Histogram")))
return 0;
if(next_effect_is(_("Color Balance")))
return 0;
// Aggregate
if(next_effect_is(_("Histogram")))
return 0;
if(next_effect_is(_("Color Balance")))
return 0;
-
-
return run_opengl();
}
return run_opengl();
}
- else
- if(config.automatic)
- {
- calculate_max(frame);
-// Always plot to set the slider
- send_render_gui(this);
- }
- else
- if(config.plot)
- {
- send_render_gui(this);
- }
if(!engine) engine = new GammaEngine(this);
engine->process_packages(GammaEngine::APPLY, frame);
if(!engine) engine = new GammaEngine(this);
engine->process_packages(GammaEngine::APPLY, frame);