Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

VideoWindow Class Reference

#include <videowindow.h>

List of all members.

Public Member Functions

 VideoWindow (MWindow *mwindow)
 ~VideoWindow ()
int create_objects ()
int init_window ()
int load_defaults (Defaults *defaults)
int update_defaults (Defaults *defaults)
int get_aspect_ratio (float &aspect_w, float &aspect_h)
int fix_size (int &w, int &h, int width_given, float aspect_ratio)
int get_full_sizes (int &w, int &h)
void run ()
int show_window ()
int hide_window ()
int resize_window ()
int original_size ()
int reset ()
int init_video ()
int stop_video ()
int update (BC_Bitmap *frame)
int get_w ()
int get_h ()
int start_cropping ()
int stop_cropping ()
BC_Bitmap * get_bitmap ()

Public Attributes

float ** peak_history
int video_visible
int video_cropping
int video_window_w
VFrame ** vbuffer
VideoWindowGUIgui
MWindowmwindow


Detailed Description

Definition at line 12 of file videowindow.h.


Constructor & Destructor Documentation

VideoWindow::VideoWindow MWindow mwindow  ) 
 

Definition at line 12 of file videowindow.C.

References gui, vbuffer, video_cropping, video_visible, and video_window_w.

VideoWindow::~VideoWindow  ) 
 

Definition at line 23 of file videowindow.C.

References gui.


Member Function Documentation

int VideoWindow::create_objects  ) 
 

Definition at line 45 of file videowindow.C.

References MWindow::gui, init_window(), and mwindow.

int VideoWindow::fix_size int &  w,
int &  h,
int  width_given,
float  aspect_ratio
 

Definition at line 103 of file videowindow.C.

int VideoWindow::get_aspect_ratio float &  aspect_w,
float &  aspect_h
 

Definition at line 195 of file videowindow.C.

References MWindow::create_aspect_ratio(), gui, mwindow, MWindow::session, video_window_w, VideoWindowGUI::x1, VideoWindowGUI::x2, VideoWindowGUI::y1, and VideoWindowGUI::y2.

BC_Bitmap * VideoWindow::get_bitmap  ) 
 

Definition at line 175 of file videowindow.C.

References VideoWindowGUI::canvas, and gui.

int VideoWindow::get_full_sizes int &  w,
int &  h
 

Definition at line 117 of file videowindow.C.

Referenced by original_size().

int VideoWindow::get_h  ) 
 

Definition at line 169 of file videowindow.C.

References gui.

Referenced by VideoWindowGUI::create_objects(), and VideoWindowCanvas::cursor_motion().

int VideoWindow::get_w  ) 
 

Definition at line 163 of file videowindow.C.

References gui.

Referenced by VideoWindowGUI::create_objects(), and VideoWindowCanvas::cursor_motion().

int VideoWindow::hide_window  ) 
 

Definition at line 74 of file videowindow.C.

References MWindow::gui, gui, MWindowGUI::mainmenu, mwindow, and video_visible.

Referenced by VideoWindowGUI::close_event().

int VideoWindow::init_video  ) 
 

Definition at line 137 of file videowindow.C.

References VideoWindowGUI::canvas, and gui.

int VideoWindow::init_window  ) 
 

Definition at line 54 of file videowindow.C.

Referenced by create_objects().

int VideoWindow::load_defaults Defaults *  defaults  ) 
 

Definition at line 33 of file videowindow.C.

References video_visible, and video_window_w.

int VideoWindow::original_size  ) 
 

Definition at line 109 of file videowindow.C.

References get_full_sizes(), resize_window(), video_window_w, and VideoDevice::w.

int VideoWindow::reset  ) 
 

Definition at line 180 of file videowindow.C.

int VideoWindow::resize_window  ) 
 

Definition at line 84 of file videowindow.C.

References VideoWindowGUI::canvas, VideoWindowCanvas::draw_crop_box(), gui, mwindow, MWindow::session, VideoWindowGUI::update_title(), and video_cropping.

Referenced by original_size().

void VideoWindow::run  ) 
 

Definition at line 132 of file videowindow.C.

References gui.

int VideoWindow::show_window  ) 
 

Definition at line 64 of file videowindow.C.

References MWindow::gui, gui, MWindowGUI::mainmenu, mwindow, and video_visible.

int VideoWindow::start_cropping  ) 
 

Definition at line 184 of file videowindow.C.

References VideoWindowGUI::canvas, VideoWindowCanvas::draw_crop_box(), gui, video_cropping, VideoWindowGUI::x1, VideoWindowGUI::x2, VideoWindowGUI::y1, and VideoWindowGUI::y2.

int VideoWindow::stop_cropping  ) 
 

Definition at line 207 of file videowindow.C.

int VideoWindow::stop_video  ) 
 

Definition at line 145 of file videowindow.C.

References VideoWindowGUI::canvas, and gui.

int VideoWindow::update BC_Bitmap *  frame  ) 
 

Definition at line 153 of file videowindow.C.

References gui.

int VideoWindow::update_defaults Defaults *  defaults  ) 
 

Definition at line 39 of file videowindow.C.

References video_visible, and video_window_w.


Member Data Documentation

VideoWindowGUI* VideoWindow::gui
 

Definition at line 49 of file videowindow.h.

Referenced by get_aspect_ratio(), get_bitmap(), get_h(), get_w(), hide_window(), init_video(), resize_window(), run(), show_window(), start_cropping(), stop_video(), update(), VideoWindow(), and ~VideoWindow().

MWindow* VideoWindow::mwindow
 

Definition at line 50 of file videowindow.h.

Referenced by create_objects(), get_aspect_ratio(), hide_window(), resize_window(), and show_window().

float** VideoWindow::peak_history
 

Definition at line 42 of file videowindow.h.

VFrame** VideoWindow::vbuffer
 

Definition at line 48 of file videowindow.h.

Referenced by VideoWindow().

int VideoWindow::video_cropping
 

Definition at line 45 of file videowindow.h.

Referenced by VideoWindowCanvas::button_press(), VideoWindowCanvas::button_release(), VideoWindowCanvas::cursor_motion(), resize_window(), start_cropping(), and VideoWindow().

int VideoWindow::video_visible
 

Definition at line 44 of file videowindow.h.

Referenced by hide_window(), load_defaults(), show_window(), update_defaults(), and VideoWindow().

int VideoWindow::video_window_w
 

Definition at line 47 of file videowindow.h.

Referenced by get_aspect_ratio(), load_defaults(), original_size(), update_defaults(), and VideoWindow().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:28 2006 for Cinelerra-svn by  doxygen 1.4.4