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.


class  LFDPriv
struct  dev_item


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


using handle_to_lfd_t = QHash< raw1394handle_t, LinuxFirewireDevice * >


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, int msec)
static QString speed_to_string (uint speed)
static int linux_firewire_device_bus_reset_handler (raw1394handle_t handle, uint generation)

Macro Definition Documentation


#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

using handle_to_lfd_t = QHash<raw1394handle_t,LinuxFirewireDevice*>

Definition at line 46 of file linuxfirewiredevice.cpp.

Function Documentation

◆ add_handle()

static void add_handle ( raw1394handle_t  handle,
LinuxFirewireDevice dev 

Definition at line 96 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::OpenPort().

◆ remove_handle()

static void remove_handle ( raw1394handle_t  handle)

Definition at line 102 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 964 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,
int  msec 

Definition at line 980 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::run().

◆ speed_to_string()

static QString speed_to_string ( uint  speed)

Definition at line 998 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 

Definition at line 1007 of file linuxfirewiredevice.cpp.

Referenced by LinuxFirewireDevice::OpenPort().