VDeviceLML Class Reference

#include <vdevicelml.h>

Inherits VDeviceBase.

Collaboration diagram for VDeviceLML:

Collaboration graph
[legend]

Public Member Functions

 VDeviceLML (VideoDevice *device)
 ~VDeviceLML ()
int open_input ()
int open_output ()
int close_all ()
int read_buffer (VFrame *frame)
int write_buffer (VFrame *frame, EDL *edl)
int reset_parameters ()
ArrayList< int > * get_render_strategies ()

Private Member Functions

int reopen_input ()
unsigned char get_byte ()
unsigned long next_bytes (int total)
int refill_input ()
int write_byte (unsigned char byte)
int write_fake_marker ()

Private Attributes

FILE * jvideo_fd
unsigned char * input_buffer
unsigned char * frame_buffer
long input_position
long frame_size
long frame_allocated
int input_error
long last_frame_no
ArrayList< int > render_strategies

Detailed Description

Definition at line 13 of file vdevicelml.h.


Constructor & Destructor Documentation

VDeviceLML::VDeviceLML ( VideoDevice device  ) 

Definition at line 20 of file vdevicelml.C.

References ArrayList< TYPE >::append(), render_strategies, and reset_parameters().

Here is the call graph for this function:

VDeviceLML::~VDeviceLML (  ) 

Definition at line 27 of file vdevicelml.C.

References close_all().

Here is the call graph for this function:


Member Function Documentation

int VDeviceLML::open_input (  )  [virtual]

Reimplemented from VDeviceBase.

Definition at line 44 of file vdevicelml.C.

References VDeviceBase::device, fopen(), VideoDevice::in_config, jvideo_fd, and VideoInConfig::lml_in_device.

Referenced by reopen_input().

Here is the call graph for this function:

int VDeviceLML::open_output (  )  [virtual]

Reimplemented from VDeviceBase.

Definition at line 60 of file vdevicelml.C.

References VDeviceBase::device, fopen(), jvideo_fd, VideoOutConfig::lml_out_device, and VideoDevice::out_config.

Here is the call graph for this function:

int VDeviceLML::close_all (  )  [virtual]

Reimplemented from VDeviceBase.

Definition at line 76 of file vdevicelml.C.

References VDeviceBase::device, fclose(), frame_buffer, input_buffer, jvideo_fd, VideoDevice::r, reset_parameters(), and VideoDevice::w.

Referenced by ~VDeviceLML().

Here is the call graph for this function:

int VDeviceLML::read_buffer ( VFrame frame  )  [virtual]

int VDeviceLML::write_buffer ( VFrame frame,
EDL edl 
) [virtual]

Reimplemented from VDeviceBase.

Definition at line 294 of file vdevicelml.C.

References APP3, EOI, frame_allocated, frame_buffer, fwrite(), VFrame::get_color_model(), VFrame::get_compressed_size(), VFrame::get_data(), and jvideo_fd.

Here is the call graph for this function:

int VDeviceLML::reset_parameters (  ) 

ArrayList< int > * VDeviceLML::get_render_strategies (  )  [virtual]

Reimplemented from VDeviceBase.

Definition at line 418 of file vdevicelml.C.

References render_strategies.

int VDeviceLML::reopen_input (  )  [private]

Definition at line 247 of file vdevicelml.C.

References _, Timer::delay(), fclose(), fprintf, INPUT_BUFFER_SIZE, input_error, input_position, jvideo_fd, last_frame_no, and open_input().

Referenced by read_buffer().

Here is the call graph for this function:

unsigned char VDeviceLML::get_byte (  )  [inline, private]

Definition at line 30 of file vdevicelml.h.

References input_buffer, INPUT_BUFFER_SIZE, input_position, and refill_input().

Referenced by read_buffer().

Here is the call graph for this function:

unsigned long VDeviceLML::next_bytes ( int  total  )  [inline, private]

Definition at line 37 of file vdevicelml.h.

References input_buffer, INPUT_BUFFER_SIZE, input_position, and refill_input().

Referenced by read_buffer().

Here is the call graph for this function:

int VDeviceLML::refill_input (  )  [private]

Definition at line 278 of file vdevicelml.C.

References fread(), input_buffer, INPUT_BUFFER_SIZE, input_error, input_position, jvideo_fd, and memcpy.

Referenced by get_byte(), and next_bytes().

Here is the call graph for this function:

int VDeviceLML::write_byte ( unsigned char  byte  )  [inline, private]

Definition at line 54 of file vdevicelml.h.

References frame_allocated, frame_buffer, frame_size, and memcpy.

Referenced by read_buffer(), and write_fake_marker().

int VDeviceLML::write_fake_marker (  )  [private]

Definition at line 262 of file vdevicelml.C.

References write_byte().

Referenced by read_buffer().

Here is the call graph for this function:


Field Documentation

FILE* VDeviceLML::jvideo_fd [private]

unsigned char* VDeviceLML::input_buffer [private]

Definition at line 78 of file vdevicelml.h.

Referenced by close_all(), get_byte(), next_bytes(), refill_input(), and reset_parameters().

unsigned char * VDeviceLML::frame_buffer [private]

Definition at line 78 of file vdevicelml.h.

Referenced by close_all(), read_buffer(), reset_parameters(), write_buffer(), and write_byte().

Definition at line 79 of file vdevicelml.h.

Referenced by get_byte(), next_bytes(), refill_input(), reopen_input(), and reset_parameters().

long VDeviceLML::frame_size [private]

Definition at line 80 of file vdevicelml.h.

Referenced by read_buffer(), reset_parameters(), and write_byte().

Definition at line 80 of file vdevicelml.h.

Referenced by reset_parameters(), write_buffer(), and write_byte().

int VDeviceLML::input_error [private]

Definition at line 81 of file vdevicelml.h.

Referenced by read_buffer(), refill_input(), reopen_input(), and reset_parameters().

long VDeviceLML::last_frame_no [private]

Definition at line 83 of file vdevicelml.h.

Referenced by read_buffer(), reopen_input(), and reset_parameters().

Definition at line 84 of file vdevicelml.h.

Referenced by get_render_strategies(), and VDeviceLML().


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

Generated on Mon Apr 28 14:48:29 2008 for Cinelerra by  doxygen 1.5.5