HistogramMain Class Reference

#include <histogram.h>

Inherits PluginVClient.

Collaboration diagram for HistogramMain:

Collaboration graph
[legend]

Public Member Functions

 HistogramMain (PluginServer *server)
 ~HistogramMain ()
int process_buffer (VFrame *frame, int64_t start_position, double frame_rate)
int is_realtime ()
int load_defaults ()
int save_defaults ()
void save_data (KeyFrame *keyframe)
void read_data (KeyFrame *keyframe)
void update_gui ()
void render_gui (void *data)
int calculate_use_opengl ()
int handle_opengl ()
float calculate_linear (float input, int mode, int do_value)
float calculate_smooth (float input, int subscript)
float calculate_curve (float input)
void calculate_automatic (VFrame *data)
void calculate_histogram (VFrame *data, int do_value)
void tabulate_curve (int subscript, int use_value)

Data Fields

YUV yuv
VFrameinput
VFrameoutput
HistogramEngineengine
int * lookup [HISTOGRAM_MODES]
float * smoothed [HISTOGRAM_MODES]
float * linear [HISTOGRAM_MODES]
int * preview_lookup [HISTOGRAM_MODES]
int * accum [HISTOGRAM_MODES]
int current_point
int mode
int dragging_point
int point_x_offset
int point_y_offset

Detailed Description

Definition at line 13 of file histogram.h.


Constructor & Destructor Documentation

HistogramMain::HistogramMain ( PluginServer server  ) 

Definition at line 48 of file histogram.C.

References input, output, and PLUGIN_CONSTRUCTOR_MACRO.

HistogramMain::~HistogramMain (  ) 

Definition at line 68 of file histogram.C.

References accum, engine, linear, lookup, PLUGIN_DESTRUCTOR_MACRO, preview_lookup, and smoothed.


Member Function Documentation

int HistogramMain::process_buffer ( VFrame frame,
int64_t  start_position,
double  frame_rate 
) [virtual]

int HistogramMain::is_realtime (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 83 of file histogram.C.

int HistogramMain::load_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 170 of file histogram.C.

References BCASTDIR, BCTEXTLEN, CLAMP, mode, HistogramPoint::x, and HistogramPoint::y.

int HistogramMain::save_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 218 of file histogram.C.

References BCTEXTLEN, mode, NEXT, HistogramPoint::x, and HistogramPoint::y.

void HistogramMain::save_data ( KeyFrame keyframe  )  [virtual]

void HistogramMain::read_data ( KeyFrame keyframe  )  [virtual]

void HistogramMain::update_gui (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 151 of file histogram.C.

void HistogramMain::render_gui ( void *  data  )  [virtual]

Reimplemented from PluginVClient.

Definition at line 97 of file histogram.C.

References calculate_automatic(), calculate_histogram(), SET_TRACE, and tabulate_curve().

Here is the call graph for this function:

int HistogramMain::calculate_use_opengl (  ) 

Definition at line 606 of file histogram.C.

References PluginClient::get_use_opengl(), and PluginClient::gui_open().

Referenced by process_buffer().

Here is the call graph for this function:

int HistogramMain::handle_opengl (  )  [virtual]

float HistogramMain::calculate_linear ( float  input,
int  mode,
int  do_value 
)

float HistogramMain::calculate_smooth ( float  input,
int  subscript 
)

Definition at line 492 of file histogram.C.

References CLAMP, and smoothed.

Referenced by HistogramWindow::draw_canvas_overlay(), and tabulate_curve().

float HistogramMain::calculate_curve ( float  input  ) 

void HistogramMain::calculate_automatic ( VFrame data  ) 

Definition at line 557 of file histogram.C.

References accum, calculate_histogram(), VFrame::get_h(), VFrame::get_w(), pixels, and HistogramWindow::threshold.

Referenced by process_buffer(), and render_gui().

Here is the call graph for this function:

void HistogramMain::calculate_histogram ( VFrame data,
int  do_value 
)

void HistogramMain::tabulate_curve ( int  subscript,
int  use_value 
)


Field Documentation

Definition at line 50 of file histogram.h.

Referenced by HistogramUnit::process_package().

Reimplemented from PluginVClient.

Definition at line 51 of file histogram.h.

Referenced by process_buffer(), HistogramUnit::process_package(), read_data(), and tabulate_curve().

Definition at line 52 of file histogram.h.

Referenced by calculate_histogram(), process_buffer(), and ~HistogramMain().

int* HistogramMain::lookup[HISTOGRAM_MODES]

float* HistogramMain::smoothed[HISTOGRAM_MODES]

Definition at line 54 of file histogram.h.

Referenced by calculate_smooth(), process_buffer(), tabulate_curve(), and ~HistogramMain().

float* HistogramMain::linear[HISTOGRAM_MODES]

Definition at line 55 of file histogram.h.

Referenced by process_buffer(), tabulate_curve(), and ~HistogramMain().

int* HistogramMain::preview_lookup[HISTOGRAM_MODES]

Definition at line 57 of file histogram.h.

Referenced by HistogramUnit::process_package(), tabulate_curve(), and ~HistogramMain().

int* HistogramMain::accum[HISTOGRAM_MODES]


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:27:42 2008 for Cinelerra by  doxygen 1.5.5