X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fhistogram%2Fhistogram.h;h=b26fafabf38967b717c3035529ef69889a42aabb;hb=b4017f68039ef7e31eedee4a27580a28bee36fc5;hp=6a5d527bc100d8ecb5728a36c3da4e532d156501;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/histogram/histogram.h b/cinelerra-5.1/plugins/histogram/histogram.h index 6a5d527b..b26fafab 100644 --- a/cinelerra-5.1/plugins/histogram/histogram.h +++ b/cinelerra-5.1/plugins/histogram/histogram.h @@ -45,6 +45,7 @@ public: void read_data(KeyFrame *keyframe); void update_gui(); void render_gui(void *data); + void do_render_gui(HistogramWindow *gui); int calculate_use_opengl(); int handle_opengl(); @@ -60,17 +61,18 @@ public: // Value is only calculated for preview. void calculate_histogram(VFrame *data, int do_value); // Calculate the linear, smoothed, lookup curves - void tabulate_curve(int subscript, int use_value); - - + void tabulate_curve(int **table, int idx, int use_value, int len); + void tabulate_curve(int **table, int use_value, int len=-1); VFrame *input, *output; HistogramEngine *engine; + + int need_reconfigure; int *lookup[HISTOGRAM_MODES]; // No value applied to this int *preview_lookup[HISTOGRAM_MODES]; - int *accum[HISTOGRAM_MODES]; + int64_t *accum[HISTOGRAM_MODES]; // Input point being dragged or edited int current_point; // Current channel being viewed @@ -80,8 +82,11 @@ public: int point_y_offset; int w, h; int parade; + int64_t last_position; + int sum_frames, frames; }; + class HistogramPackage : public LoadPackage { public: @@ -97,7 +102,7 @@ public: void process_package(LoadPackage *package); HistogramEngine *server; HistogramMain *plugin; - int *accum[5]; + int64_t *accum[HISTOGRAM_MODES]; }; class HistogramEngine : public LoadServer