BC_Capture Class Reference

#include <bccapture.h>


Public Member Functions

 BC_Capture (int w, int h, char *display_path="")
virtual ~BC_Capture ()
int init_window (char *display_path)
int capture_frame (VFrame *frame, int &x1, int &y1)
int get_w ()
int get_h ()

Data Fields

int w
int h
int default_depth
unsigned char ** row_data

Private Member Functions

int allocate_data ()
int delete_data ()
int get_top_w ()
int get_top_h ()
void import_RGB565_to_RGB888 (unsigned char *&output, unsigned char *&input)
void import_BGR888_to_RGB888 (unsigned char *&output, unsigned char *&input)
void import_BGR8888_to_RGB888 (unsigned char *&output, unsigned char *&input)

Private Attributes

int use_shm
int bitmap_color_model
unsigned char * data
XImage * ximage
XShmSegmentInfo shm_info
Display * display
Window rootwin
Visual * vis
int bits_per_pixel
int screen
long shm_event_type
int client_byte_order
int server_byte_order


Detailed Description

Definition at line 13 of file bccapture.h.


Constructor & Destructor Documentation

BC_Capture::BC_Capture ( int  w,
int  h,
char *  display_path = "" 
)

Definition at line 20 of file bccapture.C.

References allocate_data(), data, init_window(), and use_shm.

Here is the call graph for this function:

BC_Capture::~BC_Capture (  )  [virtual]

Definition at line 32 of file bccapture.C.

References delete_data(), and display.

Here is the call graph for this function:


Member Function Documentation

int BC_Capture::init_window ( char *  display_path  ) 

Definition at line 38 of file bccapture.C.

References _, bitmap_color_model, bits_per_pixel, client_byte_order, data, default_depth, display, BC_WindowBase::evaluate_color_model(), NULL, rootwin, screen, server_byte_order, use_shm, vis, and ximage.

Referenced by BC_Capture().

Here is the call graph for this function:

int BC_Capture::capture_frame ( VFrame frame,
int &  x1,
int &  y1 
)

int BC_Capture::get_w (  ) 

Definition at line 155 of file bccapture.C.

References w.

int BC_Capture::get_h (  ) 

Definition at line 156 of file bccapture.C.

References h.

int BC_Capture::allocate_data (  )  [private]

Definition at line 83 of file bccapture.C.

References bits_per_pixel, data, default_depth, display, BC_Resources::error, h, NULL, row_data, shm_info, use_shm, vis, w, and ximage.

Referenced by BC_Capture().

int BC_Capture::delete_data (  )  [private]

Definition at line 131 of file bccapture.C.

References data, display, row_data, shm_info, use_shm, and ximage.

Referenced by ~BC_Capture().

int BC_Capture::get_top_w (  )  [private]

Definition at line 213 of file bccapture.C.

References display.

Referenced by capture_frame().

int BC_Capture::get_top_h (  )  [private]

Definition at line 219 of file bccapture.C.

References display.

Referenced by capture_frame().

void BC_Capture::import_RGB565_to_RGB888 ( unsigned char *&  output,
unsigned char *&  input 
) [inline, private]

Definition at line 34 of file bccapture.h.

void BC_Capture::import_BGR888_to_RGB888 ( unsigned char *&  output,
unsigned char *&  input 
) [inline, private]

Definition at line 44 of file bccapture.h.

void BC_Capture::import_BGR8888_to_RGB888 ( unsigned char *&  output,
unsigned char *&  input 
) [inline, private]

Definition at line 54 of file bccapture.h.


Field Documentation

Definition at line 25 of file bccapture.h.

Referenced by allocate_data(), capture_frame(), and get_w().

Definition at line 25 of file bccapture.h.

Referenced by allocate_data(), capture_frame(), and get_h().

Definition at line 25 of file bccapture.h.

Referenced by allocate_data(), and init_window().

unsigned char** BC_Capture::row_data

Definition at line 26 of file bccapture.h.

Referenced by allocate_data(), capture_frame(), and delete_data().

int BC_Capture::use_shm [private]

Definition at line 62 of file bccapture.h.

Referenced by allocate_data(), BC_Capture(), capture_frame(), delete_data(), and init_window().

Definition at line 65 of file bccapture.h.

Referenced by capture_frame(), and init_window().

unsigned char* BC_Capture::data [private]

Definition at line 66 of file bccapture.h.

Referenced by allocate_data(), BC_Capture(), delete_data(), and init_window().

XImage* BC_Capture::ximage [private]

Definition at line 67 of file bccapture.h.

Referenced by allocate_data(), capture_frame(), delete_data(), and init_window().

XShmSegmentInfo BC_Capture::shm_info [private]

Definition at line 68 of file bccapture.h.

Referenced by allocate_data(), and delete_data().

Display* BC_Capture::display [private]

Window BC_Capture::rootwin [private]

Definition at line 70 of file bccapture.h.

Referenced by capture_frame(), and init_window().

Visual* BC_Capture::vis [private]

Definition at line 71 of file bccapture.h.

Referenced by allocate_data(), and init_window().

Definition at line 72 of file bccapture.h.

Referenced by allocate_data(), and init_window().

int BC_Capture::screen [private]

Definition at line 73 of file bccapture.h.

Referenced by init_window().

Definition at line 74 of file bccapture.h.

Definition at line 75 of file bccapture.h.

Referenced by init_window().

Definition at line 75 of file bccapture.h.

Referenced by init_window().


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

Generated on Mon Apr 28 14:13:02 2008 for Cinelerra by  doxygen 1.5.5