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

VDeviceLML Class Reference

#include <vdevicelml.h>

Inheritance diagram for VDeviceLML:

VDeviceBase List of all members.

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 render_strategies, and reset_parameters().

VDeviceLML::~VDeviceLML  ) 
 

Definition at line 27 of file vdevicelml.C.

References close_all().


Member Function Documentation

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().

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().

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

Reimplemented from VDeviceBase.

Definition at line 418 of file vdevicelml.C.

References render_strategies.

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().

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().

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.

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

Reimplemented from VDeviceBase.

Definition at line 98 of file vdevicelml.C.

References APP3, VDeviceBase::device, EOI, frame_buffer, frame_size, get_byte(), input_error, jvideo_fd, last_frame_no, next_bytes(), VideoDevice::odd_field_first, reopen_input(), SOI, write_byte(), and write_fake_marker().

int VDeviceLML::refill_input  )  [private]
 

Definition at line 278 of file vdevicelml.C.

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

Referenced by get_byte(), and next_bytes().

int VDeviceLML::reopen_input  )  [private]
 

Definition at line 247 of file vdevicelml.C.

References _, fclose(), INPUT_BUFFER_SIZE, input_error, input_position, jvideo_fd, last_frame_no, and open_input().

Referenced by read_buffer().

int VDeviceLML::reset_parameters  ) 
 

Definition at line 32 of file vdevicelml.C.

References frame_allocated, frame_buffer, frame_size, input_buffer, INPUT_BUFFER_SIZE, input_error, input_position, jvideo_fd, and last_frame_no.

Referenced by close_all(), and VDeviceLML().

int VDeviceLML::write_buffer VFrame *  frame,
EDL edl
 

Definition at line 294 of file vdevicelml.C.

References APP3, EOI, frame_allocated, frame_buffer, fwrite(), and jvideo_fd.

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

Definition at line 54 of file vdevicelml.h.

References frame_allocated, frame_buffer, and frame_size.

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().


Member Data Documentation

long VDeviceLML::frame_allocated [private]
 

Definition at line 80 of file vdevicelml.h.

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

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().

long VDeviceLML::frame_size [private]
 

Definition at line 80 of file vdevicelml.h.

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

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().

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::input_position [private]
 

Definition at line 79 of file vdevicelml.h.

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

FILE* VDeviceLML::jvideo_fd [private]
 

Definition at line 77 of file vdevicelml.h.

Referenced by close_all(), open_input(), open_output(), read_buffer(), refill_input(), reopen_input(), reset_parameters(), and write_buffer().

long VDeviceLML::last_frame_no [private]
 

Definition at line 83 of file vdevicelml.h.

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

ArrayList<int> VDeviceLML::render_strategies [private]
 

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 Sun Jan 8 13:39:27 2006 for Cinelerra-svn by  doxygen 1.4.4