MythTV  master
Classes | Macros | Typedefs | Functions
linuxfirewiredevice.cpp File Reference
#include <sys/select.h>
#include <unistd.h>
#include <fcntl.h>
#include <libraw1394/raw1394.h>
#include <libraw1394/csr.h>
#include <libiec61883/iec61883.h>
#include <libavc1394/avc1394.h>
#include <libavc1394/rom1394.h>
#include <netinet/in.h>
#include <algorithm>
#include <chrono>
#include <map>
#include <thread>
#include <QDateTime>
#include "linuxfirewiredevice.h"
#include "firewirerecorder.h"
#include "mythcorecontext.h"
#include "linuxavcinfo.h"
#include "mythlogging.h"
Include dependency graph for linuxfirewiredevice.cpp:

Go to the source code of this file.

Classes

class  LFDPriv
 
struct  dev_item
 

Macros

#define LOC   QString("LFireDev(%1): ").arg(guid_to_string(m_guid))
 
#define kNoDataTimeout   50 /* msec */
 
#define kResetTimeout   1000 /* msec */
 

Typedefs

typedef QMap< raw1394handle_t, LinuxFirewireDevice * > handle_to_lfd_t
 

Functions

static void add_handle (raw1394handle_t handle, LinuxFirewireDevice *dev)
 
static void remove_handle (raw1394handle_t handle)
 
int linux_firewire_device_tspacket_handler (unsigned char *tspacket, int len, uint dropped, void *callback_data)
 
void * linux_firewire_device_port_handler_thunk (void *param)
 
static bool has_data (int fd, uint msec)
 
static QString speed_to_string (uint speed)
 
static int linux_firewire_device_bus_reset_handler (raw1394handle_t handle, uint generation)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("LFireDev(%1): ").arg(guid_to_string(m_guid))

Definition at line 41 of file linuxfirewiredevice.cpp.

◆ kNoDataTimeout

#define kNoDataTimeout   50 /* msec */

Definition at line 43 of file linuxfirewiredevice.cpp.

◆ kResetTimeout

#define kResetTimeout   1000 /* msec */

Definition at line 44 of file linuxfirewiredevice.cpp.

Typedef Documentation

◆ handle_to_lfd_t

typedef QMap<raw1394handle_t,LinuxFirewireDevice*> handle_to_lfd_t

Definition at line 46 of file linuxfirewiredevice.cpp.

Function Documentation

◆ add_handle()

static void add_handle ( raw1394handle_t  handle,
LinuxFirewireDevice dev 
)
static

Definition at line 98 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::OpenPort().

◆ remove_handle()

static void remove_handle ( raw1394handle_t  handle)
static

Definition at line 104 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::ClosePort().

◆ linux_firewire_device_tspacket_handler()

int linux_firewire_device_tspacket_handler ( unsigned char *  tspacket,
int  len,
uint  dropped,
void *  callback_data 
)

Definition at line 966 of file linuxfirewiredevice.cpp.

◆ linux_firewire_device_port_handler_thunk()

void* linux_firewire_device_port_handler_thunk ( void *  param)

◆ has_data()

static bool has_data ( int  fd,
uint  msec 
)
static

Definition at line 984 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::run().

◆ speed_to_string()

static QString speed_to_string ( uint  speed)
static

Definition at line 1002 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::SetAVStreamSpeed().

◆ linux_firewire_device_bus_reset_handler()

static int linux_firewire_device_bus_reset_handler ( raw1394handle_t  handle,
uint  generation 
)
static

Definition at line 1011 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::OpenPort().