23 #ifndef _FIREVISION_TOOLS_YUV_VIEWER_LOC_VIEWER_GUI_H_
24 #define _FIREVISION_TOOLS_YUV_VIEWER_LOC_VIEWER_GUI_H_
26 #define LOC_PLUGIN_NAME "fvnao_loc"
27 #define FUSE_PLUGIN_NAME "fvfountain"
28 #define FOUNTAIN_PORT_PATH "/firevision/fountain/tcp_port"
30 #include <fvutils/color/yuv.h>
31 #include <fvwidgets/image_widget.h>
35 using namespace firevision;
45 bool on_mouse_over_yuv(GdkEventMotion *event);
46 bool on_click_on_yuv(GdkEventButton *event);
47 void on_y_value_changed();
48 void on_y_res_changed();
49 void on_uv_res_changed();
51 Glib::ustring convert_float2str(
float f,
unsigned int width);
55 Gtk::EventBox * yuv_vp_;
56 Gtk::Viewport * cur_vp_;
57 Gtk::Viewport * seg_vp_;
58 Gtk::HScale * y_scale_;
59 Gtk::Label * u_value_;
60 Gtk::Label * v_value_;
61 Gtk::SpinButton *y_res_;
62 Gtk::SpinButton *u_res_;
63 Gtk::SpinButton *v_res_;
69 unsigned char yuv_buffer_[256 * 256 * 2];
70 unsigned char cur_buffer_[60 * 40 * 2];
71 unsigned char seg_buffer_[256 * 256 * 2];
Tool to show the YUV color space.