#include <vdevicelml.h>
Inherits VDeviceBase.

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 |
Definition at line 13 of file vdevicelml.h.
| VDeviceLML::VDeviceLML | ( | VideoDevice * | device | ) |
Definition at line 20 of file vdevicelml.C.
References ArrayList< TYPE >::append(), render_strategies, and reset_parameters().

| VDeviceLML::~VDeviceLML | ( | ) |
Definition at line 27 of file vdevicelml.C.
References close_all().

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

| int VDeviceLML::read_buffer | ( | VFrame * | frame | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 98 of file vdevicelml.C.
References VFrame::allocate_compressed_data(), APP3, VDeviceBase::device, EOI, frame_buffer, frame_size, get_byte(), VFrame::get_data(), input_error, jvideo_fd, last_frame_no, memcpy, next_bytes(), VideoDevice::odd_field_first, reopen_input(), VFrame::set_compressed_size(), SOI, write_byte(), and write_fake_marker().

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.

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

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

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

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

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().
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().
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().
long VDeviceLML::frame_size [private] |
Definition at line 80 of file vdevicelml.h.
Referenced by read_buffer(), reset_parameters(), and write_byte().
long VDeviceLML::frame_allocated [private] |
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().
ArrayList<int> VDeviceLML::render_strategies [private] |
Definition at line 84 of file vdevicelml.h.
Referenced by get_render_strategies(), and VDeviceLML().
1.5.5