#include <linuxfirewiredevice.h>
Public Member Functions | |
| LinuxFirewireDevice (uint64_t guid, uint subunitid, uint speed, bool use_p2p, uint av_buffer_size_in_bytes=0) | |
| ~LinuxFirewireDevice () | |
| virtual bool | OpenPort (void) |
| virtual bool | ClosePort (void) |
| virtual bool | ResetBus (void) |
| virtual void | AddListener (TSDataListener *) |
| virtual void | RemoveListener (TSDataListener *) |
| virtual bool | IsPortOpen (void) const |
| void | SignalReset (uint generation) |
Static Public Member Functions | |
| static vector< AVCInfo > | GetSTBList (void) |
Static Public Attributes | |
| static const uint | kBroadcastChannel = 63 |
| static const uint | kConnectionP2P = 0 |
| static const uint | kConnectionBroadcast = 1 |
| static const uint | kMaxBufferedPackets = 4 * 1024 * 1024 / 188 |
Private Member Functions | |
| bool | OpenNode (void) |
| bool | CloseNode (void) |
| bool | OpenAVStream (void) |
| bool | CloseAVStream (void) |
| bool | OpenP2PNode (void) |
| bool | CloseP2PNode (void) |
| bool | OpenBroadcastNode (void) |
| bool | CloseBroadcastNode (void) |
| bool | StartStreaming (void) |
| bool | StopStreaming (void) |
| void | run (void) |
| void | PrintDropped (uint dropped_packets) |
| bool | SetAVStreamBufferSize (uint size_in_bytes) |
| bool | SetAVStreamSpeed (uint speed) |
| bool | IsNodeOpen (void) const |
| bool | IsAVStreamOpen (void) const |
| bool | UpdateDeviceList (void) |
| void | UpdateDeviceListItem (uint64_t guid, void *pitem) |
| vector< AVCInfo > | GetSTBListPrivate (void) |
| virtual bool | SendAVCCommand (const vector< uint8_t > &cmd, vector< uint8_t > &result, int retry_cnt) |
| LinuxAVCInfo * | GetInfoPtr (void) |
| const LinuxAVCInfo * | GetInfoPtr (void) const |
| void | HandleBusReset (void) |
Private Attributes | |
| uint | m_bufsz |
| bool | m_db_reset_disabled |
| bool | m_use_p2p |
| LFDPriv * | m_priv |
Friends | |
| int | linux_firewire_device_tspacket_handler (unsigned char *tspacket, int len, uint dropped, void *callback_data) |
Definition at line 19 of file linuxfirewiredevice.h.
| LinuxFirewireDevice::LinuxFirewireDevice | ( | uint64_t | guid, | |
| uint | subunitid, | |||
| uint | speed, | |||
| bool | use_p2p, | |||
| uint | av_buffer_size_in_bytes = 0 | |||
| ) |
Definition at line 130 of file linuxfirewiredevice.cpp.
| LinuxFirewireDevice::~LinuxFirewireDevice | ( | ) |
Definition at line 146 of file linuxfirewiredevice.cpp.
| bool LinuxFirewireDevice::OpenPort | ( | void | ) | [virtual] |
Implements FirewireDevice.
Definition at line 238 of file linuxfirewiredevice.cpp.
| bool LinuxFirewireDevice::ClosePort | ( | void | ) | [virtual] |
Implements FirewireDevice.
Definition at line 298 of file linuxfirewiredevice.cpp.
Referenced by OpenPort(), and ~LinuxFirewireDevice().
| bool LinuxFirewireDevice::ResetBus | ( | void | ) | [virtual] |
Reimplemented from FirewireDevice.
Definition at line 776 of file linuxfirewiredevice.cpp.
Referenced by run().
| void LinuxFirewireDevice::AddListener | ( | TSDataListener * | listener | ) | [virtual] |
Reimplemented from FirewireDevice.
Definition at line 347 of file linuxfirewiredevice.cpp.
| void LinuxFirewireDevice::RemoveListener | ( | TSDataListener * | listener | ) | [virtual] |
Reimplemented from FirewireDevice.
Definition at line 361 of file linuxfirewiredevice.cpp.
| bool LinuxFirewireDevice::IsPortOpen | ( | void | ) | const [virtual] |
Implements FirewireDevice.
Definition at line 383 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), OpenAVStream(), OpenPort(), and ~LinuxFirewireDevice().
| void LinuxFirewireDevice::SignalReset | ( | uint | generation | ) |
Definition at line 162 of file linuxfirewiredevice.cpp.
| vector< AVCInfo > LinuxFirewireDevice::GetSTBList | ( | void | ) | [static] |
Reimplemented from FirewireDevice.
Definition at line 810 of file linuxfirewiredevice.cpp.
| bool LinuxFirewireDevice::OpenNode | ( | void | ) | [private] |
Definition at line 396 of file linuxfirewiredevice.cpp.
Referenced by AddListener(), and OpenAVStream().
| bool LinuxFirewireDevice::CloseNode | ( | void | ) | [private] |
Definition at line 404 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), and RemoveListener().
| bool LinuxFirewireDevice::OpenAVStream | ( | void | ) | [private] |
Definition at line 532 of file linuxfirewiredevice.cpp.
Referenced by AddListener(), and StartStreaming().
| bool LinuxFirewireDevice::CloseAVStream | ( | void | ) | [private] |
Definition at line 570 of file linuxfirewiredevice.cpp.
Referenced by CloseP2PNode(), OpenBroadcastNode(), and RemoveListener().
| bool LinuxFirewireDevice::OpenP2PNode | ( | void | ) | [private] |
Definition at line 417 of file linuxfirewiredevice.cpp.
Referenced by OpenNode().
| bool LinuxFirewireDevice::CloseP2PNode | ( | void | ) | [private] |
Definition at line 451 of file linuxfirewiredevice.cpp.
Referenced by CloseNode().
| bool LinuxFirewireDevice::OpenBroadcastNode | ( | void | ) | [private] |
Definition at line 477 of file linuxfirewiredevice.cpp.
Referenced by OpenNode().
| bool LinuxFirewireDevice::CloseBroadcastNode | ( | void | ) | [private] |
Definition at line 518 of file linuxfirewiredevice.cpp.
Referenced by CloseNode().
| bool LinuxFirewireDevice::StartStreaming | ( | void | ) | [private] |
Definition at line 671 of file linuxfirewiredevice.cpp.
Referenced by AddListener().
| bool LinuxFirewireDevice::StopStreaming | ( | void | ) | [private] |
Definition at line 701 of file linuxfirewiredevice.cpp.
Referenced by CloseAVStream(), and RemoveListener().
| void LinuxFirewireDevice::run | ( | void | ) | [private] |
Definition at line 589 of file linuxfirewiredevice.cpp.
| void LinuxFirewireDevice::PrintDropped | ( | uint | dropped_packets | ) | [private] |
Definition at line 797 of file linuxfirewiredevice.cpp.
Referenced by linux_firewire_device_tspacket_handler().
Definition at line 719 of file linuxfirewiredevice.cpp.
Referenced by OpenAVStream().
Definition at line 736 of file linuxfirewiredevice.cpp.
| bool LinuxFirewireDevice::IsNodeOpen | ( | void | ) | const [private] |
Definition at line 766 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), and OpenAVStream().
| bool LinuxFirewireDevice::IsAVStreamOpen | ( | void | ) | const [private] |
Definition at line 771 of file linuxfirewiredevice.cpp.
Referenced by StartStreaming().
| bool LinuxFirewireDevice::UpdateDeviceList | ( | void | ) | [private] |
Definition at line 857 of file linuxfirewiredevice.cpp.
Referenced by LinuxFirewireDevice(), and SignalReset().
| void LinuxFirewireDevice::UpdateDeviceListItem | ( | uint64_t | guid, | |
| void * | pitem | |||
| ) | [private] |
Definition at line 931 of file linuxfirewiredevice.cpp.
Referenced by UpdateDeviceList().
| vector< AVCInfo > LinuxFirewireDevice::GetSTBListPrivate | ( | void | ) | [private] |
Definition at line 822 of file linuxfirewiredevice.cpp.
Referenced by GetSTBList().
| bool LinuxFirewireDevice::SendAVCCommand | ( | const vector< uint8_t > & | cmd, | |
| vector< uint8_t > & | result, | |||
| int | retry_cnt | |||
| ) | [private, virtual] |
Implements FirewireDevice.
Definition at line 375 of file linuxfirewiredevice.cpp.
| LinuxAVCInfo * LinuxFirewireDevice::GetInfoPtr | ( | void | ) | [private] |
Definition at line 956 of file linuxfirewiredevice.cpp.
Referenced by CloseP2PNode(), ClosePort(), HandleBusReset(), IsPortOpen(), OpenAVStream(), OpenBroadcastNode(), OpenP2PNode(), OpenPort(), ResetBus(), run(), SendAVCCommand(), SignalReset(), and StopStreaming().
| const LinuxAVCInfo * LinuxFirewireDevice::GetInfoPtr | ( | void | ) | const [private] |
Definition at line 965 of file linuxfirewiredevice.cpp.
| void LinuxFirewireDevice::HandleBusReset | ( | void | ) | [private] |
Definition at line 182 of file linuxfirewiredevice.cpp.
Referenced by run().
| int linux_firewire_device_tspacket_handler | ( | unsigned char * | tspacket, | |
| int | len, | |||
| uint | dropped, | |||
| void * | callback_data | |||
| ) | [friend] |
Definition at line 974 of file linuxfirewiredevice.cpp.
Referenced by OpenAVStream().
const uint LinuxFirewireDevice::kBroadcastChannel = 63 [static] |
Definition at line 48 of file linuxfirewiredevice.h.
Referenced by OpenBroadcastNode().
const uint LinuxFirewireDevice::kConnectionP2P = 0 [static] |
Definition at line 49 of file linuxfirewiredevice.h.
Referenced by FirewireChannel::FirewireChannel().
const uint LinuxFirewireDevice::kConnectionBroadcast = 1 [static] |
Definition at line 50 of file linuxfirewiredevice.h.
const uint LinuxFirewireDevice::kMaxBufferedPackets = 4 * 1024 * 1024 / 188 [static] |
Definition at line 51 of file linuxfirewiredevice.h.
Referenced by SetAVStreamBufferSize().
uint LinuxFirewireDevice::m_bufsz [private] |
Definition at line 92 of file linuxfirewiredevice.h.
Referenced by LinuxFirewireDevice(), and OpenAVStream().
bool LinuxFirewireDevice::m_db_reset_disabled [private] |
Definition at line 93 of file linuxfirewiredevice.h.
Referenced by LinuxFirewireDevice(), and ResetBus().
bool LinuxFirewireDevice::m_use_p2p [private] |
Definition at line 94 of file linuxfirewiredevice.h.
Referenced by OpenNode().
LFDPriv* LinuxFirewireDevice::m_priv [private] |
Definition at line 95 of file linuxfirewiredevice.h.
Referenced by CloseAVStream(), CloseBroadcastNode(), CloseNode(), CloseP2PNode(), ClosePort(), GetInfoPtr(), GetSTBListPrivate(), HandleBusReset(), IsAVStreamOpen(), IsNodeOpen(), OpenAVStream(), OpenBroadcastNode(), OpenP2PNode(), OpenPort(), run(), SetAVStreamBufferSize(), SetAVStreamSpeed(), SignalReset(), StartStreaming(), StopStreaming(), UpdateDeviceList(), UpdateDeviceListItem(), and ~LinuxFirewireDevice().
1.6.3