MythTV
master
|
#include <libmythtv/recorders/linuxfirewiredevice.h>
Public Member Functions | |
LinuxFirewireDevice (uint64_t guid, uint subunitid, uint speed, bool use_p2p, uint av_buffer_size_in_bytes=0) | |
~LinuxFirewireDevice () override | |
bool | OpenPort (void) override |
bool | ClosePort (void) override |
bool | ResetBus (void) override |
void | AddListener (TSDataListener *listener) override |
void | RemoveListener (TSDataListener *listener) override |
bool | IsPortOpen (void) const override |
void | SignalReset (uint generation) |
![]() | |
virtual | ~FirewireDevice ()=default |
virtual bool | SetPowerState (bool on) |
virtual bool | SetChannel (const QString &panel_model, uint alt_method, uint channel) |
bool | IsSTBBufferCleared (void) const |
virtual PowerState | GetPowerState (void) |
Static Public Member Functions | |
static std::vector< AVCInfo > | GetSTBList (void) |
![]() | |
static bool | IsSTBSupported (const QString &model) |
static QString | GetModelName (uint vendor_id, uint model_id) |
static std::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) override |
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) |
std::vector< AVCInfo > | GetSTBListPrivate (void) |
bool | SendAVCCommand (const std::vector< uint8_t > &cmd, std::vector< uint8_t > &result, int retry_cnt) override |
LinuxAVCInfo * | GetInfoPtr (void) |
const LinuxAVCInfo * | GetInfoPtr (void) const |
void | HandleBusReset (void) |
Private Attributes | |
uint | m_bufsz |
bool | m_dbResetDisabled {false} |
bool | m_useP2P |
LFDPriv * | m_priv {nullptr} |
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 122 of file linuxfirewiredevice.cpp.
|
override |
Definition at line 137 of file linuxfirewiredevice.cpp.
|
overridevirtual |
Implements FirewireDevice.
Definition at line 229 of file linuxfirewiredevice.cpp.
|
overridevirtual |
Implements FirewireDevice.
Definition at line 289 of file linuxfirewiredevice.cpp.
Referenced by OpenPort(), and ~LinuxFirewireDevice().
|
overridevirtual |
Reimplemented from FirewireDevice.
Definition at line 766 of file linuxfirewiredevice.cpp.
Referenced by run().
|
overridevirtual |
Reimplemented from FirewireDevice.
Definition at line 338 of file linuxfirewiredevice.cpp.
|
overridevirtual |
Reimplemented from FirewireDevice.
Definition at line 352 of file linuxfirewiredevice.cpp.
|
overridevirtual |
Implements FirewireDevice.
Definition at line 374 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), OpenAVStream(), OpenPort(), and ~LinuxFirewireDevice().
void LinuxFirewireDevice::SignalReset | ( | uint | generation | ) |
Definition at line 153 of file linuxfirewiredevice.cpp.
|
static |
Definition at line 800 of file linuxfirewiredevice.cpp.
Referenced by FirewireDevice::GetSTBList().
|
private |
Definition at line 387 of file linuxfirewiredevice.cpp.
Referenced by AddListener(), and OpenAVStream().
|
private |
Definition at line 394 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), and RemoveListener().
|
private |
Definition at line 522 of file linuxfirewiredevice.cpp.
Referenced by AddListener(), and StartStreaming().
|
private |
Definition at line 560 of file linuxfirewiredevice.cpp.
Referenced by CloseP2PNode(), OpenBroadcastNode(), and RemoveListener().
|
private |
Definition at line 407 of file linuxfirewiredevice.cpp.
Referenced by OpenNode().
|
private |
Definition at line 441 of file linuxfirewiredevice.cpp.
Referenced by CloseNode().
|
private |
Definition at line 467 of file linuxfirewiredevice.cpp.
Referenced by OpenNode().
|
private |
Definition at line 508 of file linuxfirewiredevice.cpp.
Referenced by CloseNode().
|
private |
Definition at line 661 of file linuxfirewiredevice.cpp.
Referenced by AddListener().
|
private |
Definition at line 691 of file linuxfirewiredevice.cpp.
Referenced by CloseAVStream(), and RemoveListener().
|
overrideprivate |
Definition at line 579 of file linuxfirewiredevice.cpp.
|
private |
Definition at line 787 of file linuxfirewiredevice.cpp.
Referenced by linux_firewire_device_tspacket_handler().
Definition at line 709 of file linuxfirewiredevice.cpp.
Referenced by OpenAVStream().
Definition at line 726 of file linuxfirewiredevice.cpp.
|
private |
Definition at line 756 of file linuxfirewiredevice.cpp.
Referenced by ClosePort(), and OpenAVStream().
|
private |
Definition at line 761 of file linuxfirewiredevice.cpp.
Referenced by StartStreaming().
|
private |
Definition at line 846 of file linuxfirewiredevice.cpp.
Referenced by LinuxFirewireDevice(), and SignalReset().
|
private |
Definition at line 921 of file linuxfirewiredevice.cpp.
Referenced by UpdateDeviceList().
|
private |
Definition at line 812 of file linuxfirewiredevice.cpp.
Referenced by GetSTBList().
|
overrideprivatevirtual |
Implements FirewireDevice.
Definition at line 366 of file linuxfirewiredevice.cpp.
|
private |
Definition at line 946 of file linuxfirewiredevice.cpp.
Referenced by CloseP2PNode(), ClosePort(), HandleBusReset(), IsPortOpen(), OpenAVStream(), OpenBroadcastNode(), OpenP2PNode(), OpenPort(), ResetBus(), run(), SendAVCCommand(), SignalReset(), and StopStreaming().
|
private |
Definition at line 955 of file linuxfirewiredevice.cpp.
|
private |
Definition at line 173 of file linuxfirewiredevice.cpp.
Referenced by run().
|
friend |
Definition at line 964 of file linuxfirewiredevice.cpp.
Referenced by OpenAVStream().
|
static |
Definition at line 48 of file linuxfirewiredevice.h.
Referenced by OpenBroadcastNode().
|
static |
Definition at line 49 of file linuxfirewiredevice.h.
Referenced by FirewireChannel::FirewireChannel().
|
static |
Definition at line 50 of file linuxfirewiredevice.h.
|
static |
Definition at line 51 of file linuxfirewiredevice.h.
Referenced by SetAVStreamBufferSize().
|
private |
Definition at line 92 of file linuxfirewiredevice.h.
Referenced by LinuxFirewireDevice(), and OpenAVStream().
Definition at line 93 of file linuxfirewiredevice.h.
Referenced by LinuxFirewireDevice(), and ResetBus().
|
private |
Definition at line 94 of file linuxfirewiredevice.h.
Referenced by OpenNode().
|
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().