VideoWindow Class Reference

#include <videowindow.h>

Inherits Thread.

Collaboration diagram for VideoWindow:

Collaboration graph
[legend]

Public Member Functions

 VideoWindow (MWindow *mwindow)
 ~VideoWindow ()
int create_objects ()
int init_window ()
int load_defaults (BC_Hash *defaults)
int update_defaults (BC_Hash *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_Bitmapget_bitmap ()

Data Fields

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, Thread::join(), and BC_WindowBase::set_done().

Here is the call graph for this function:


Member Function Documentation

int VideoWindow::create_objects (  ) 

Definition at line 45 of file videowindow.C.

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

Here is the call graph for this function:

int VideoWindow::init_window (  ) 

Definition at line 54 of file videowindow.C.

Referenced by create_objects().

int VideoWindow::load_defaults ( BC_Hash defaults  ) 

Definition at line 33 of file videowindow.C.

References BC_Hash::get(), video_visible, and video_window_w.

Here is the call graph for this function:

int VideoWindow::update_defaults ( BC_Hash defaults  ) 

Definition at line 39 of file videowindow.C.

References BC_Hash::update(), video_visible, and video_window_w.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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_full_sizes ( int &  w,
int &  h 
)

Definition at line 117 of file videowindow.C.

Referenced by original_size().

void VideoWindow::run (  )  [virtual]

Implements Thread.

Definition at line 132 of file videowindow.C.

References gui, and BC_WindowBase::run_window().

Here is the call graph for this function:

int VideoWindow::show_window (  ) 

Definition at line 64 of file videowindow.C.

References MWindow::gui, gui, MWindowGUI::mainmenu, mwindow, BC_WindowBase::show_window(), and video_visible.

Here is the call graph for this function:

int VideoWindow::hide_window (  ) 

Definition at line 74 of file videowindow.C.

References MWindow::gui, gui, BC_WindowBase::hide_window(), MWindowGUI::mainmenu, mwindow, and video_visible.

Referenced by VideoWindowGUI::close_event().

Here is the call graph for this function:

int VideoWindow::resize_window (  ) 

int VideoWindow::original_size (  ) 

Definition at line 109 of file videowindow.C.

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

Here is the call graph for this function:

int VideoWindow::reset (  ) 

Definition at line 180 of file videowindow.C.

int VideoWindow::init_video (  ) 

Definition at line 137 of file videowindow.C.

References VideoWindowGUI::canvas, gui, and BC_WindowBase::start_video().

Here is the call graph for this function:

int VideoWindow::stop_video (  ) 

Definition at line 145 of file videowindow.C.

References VideoWindowGUI::canvas, gui, and BC_WindowBase::stop_video().

Here is the call graph for this function:

int VideoWindow::update ( BC_Bitmap frame  ) 

Definition at line 153 of file videowindow.C.

References gui, BC_WindowBase::lock_window(), and BC_WindowBase::unlock_window().

Here is the call graph for this function:

int VideoWindow::get_w (  ) 

Definition at line 163 of file videowindow.C.

References BC_WindowBase::get_w(), and gui.

Here is the call graph for this function:

int VideoWindow::get_h (  ) 

Definition at line 169 of file videowindow.C.

References BC_WindowBase::get_h(), and gui.

Here is the call graph for this function:

int VideoWindow::start_cropping (  ) 

int VideoWindow::stop_cropping (  ) 

Definition at line 207 of file videowindow.C.

BC_Bitmap * VideoWindow::get_bitmap (  ) 

Definition at line 175 of file videowindow.C.

References VideoWindowGUI::canvas, BC_WindowBase::get_h(), BC_WindowBase::get_w(), gui, and BC_WindowBase::new_bitmap().

Here is the call graph for this function:


Field Documentation

Definition at line 42 of file videowindow.h.

Definition at line 44 of file videowindow.h.

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

Definition at line 48 of file videowindow.h.

Referenced by VideoWindow().


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

Generated on Mon Apr 28 14:49:16 2008 for Cinelerra by  doxygen 1.5.5