MythTV  master
Classes | Namespaces | Macros | Functions
darwinfirewiredevice.cpp File Reference
#include <pthread.h>
#include <IOKit/IOMessage.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/firewire/IOFireWireLib.h>
#include <IOKit/firewire/IOFireWireLibIsoch.h>
#include <IOKit/firewire/IOFireWireFamilyCommon.h>
#include <IOKit/avc/IOFireWireAVCLib.h>
#include <CoreServices/CoreServices.h>
#include <algorithm>
#include <vector>
#include "darwinfirewiredevice.h"
#include "darwinavcinfo.h"
#include "mythlogging.h"
#include "mthread.h"
#include "mythtimer.h"
#include <AVCVideoServices/StringLogger.h>
#include <AVCVideoServices/AVSShared.h>
#include <AVCVideoServices/MPEG2Receiver.h>
Include dependency graph for darwinfirewiredevice.cpp:

Go to the source code of this file.


class  DFDPriv




#define LOC   QString("DFireDev(%1): ").arg(guid_to_string(m_guid))
#define kAnyAvailableIsochChannel   0xFFFFFFFF
#define kNoDataTimeout   300 /* msec */
#define kResetTimeout   1500 /* msec */


IOReturn AVS::CreateMPEG2Receiver (MPEG2Receiver **ppReceiver, DataPushProc dataPushProcHandler, void *pDataPushProcRefCon=nil, MPEG2ReceiverMessageProc messageProcHandler=nil, void *pMessageProcRefCon=nil, StringLogger *stringLogger=nil, IOFireWireLibNubRef nubInterface=nil, unsigned int cyclesPerSegment=kCyclesPerReceiveSegment, unsigned int numSegments=kNumReceiveSegments, bool doIRMAllocations=false)
IOReturn AVS::DestroyMPEG2Receiver (MPEG2Receiver *pReceiver)
static IOReturn dfd_tspacket_handler_thunk (UInt32 tsPacketCount, UInt32 **ppBuf, void *callback_data)
static void dfd_update_device_list (void *dfd, io_iterator_t deviter)
static void dfd_streaming_log_message (char *msg)
void * dfd_controller_thunk (void *callback_data)
void dfd_stream_msg (UInt32 msg, UInt32 param1, UInt32 param2, void *callback_data)
int dfd_no_data_notification (void *callback_data)
void dfd_update_device_list_item (DarwinFirewireDevice *dev, uint64_t guid, void *item)
int dfd_tspacket_handler (uint tsPacketCount, uint32_t **ppBuf, void *callback_data)

Macro Definition Documentation


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

Definition at line 59 of file darwinfirewiredevice.cpp.

◆ kAnyAvailableIsochChannel

#define kAnyAvailableIsochChannel   0xFFFFFFFF

Definition at line 61 of file darwinfirewiredevice.cpp.

◆ kNoDataTimeout

#define kNoDataTimeout   300 /* msec */

Definition at line 62 of file darwinfirewiredevice.cpp.

◆ kResetTimeout

#define kResetTimeout   1500 /* msec */

Definition at line 63 of file darwinfirewiredevice.cpp.

Function Documentation

◆ dfd_tspacket_handler_thunk()

static IOReturn dfd_tspacket_handler_thunk ( UInt32  tsPacketCount,
UInt32 **  ppBuf,
void *  callback_data 

Definition at line 934 of file darwinfirewiredevice.cpp.

Referenced by DarwinFirewireDevice::OpenAVStream().

◆ dfd_update_device_list()

static void dfd_update_device_list ( void *  dfd,
io_iterator_t  deviter 

Definition at line 941 of file darwinfirewiredevice.cpp.

Referenced by DarwinFirewireDevice::RunController().

◆ dfd_streaming_log_message()

static void dfd_streaming_log_message ( char *  msg)

Definition at line 965 of file darwinfirewiredevice.cpp.

Referenced by DFDPriv::DFDPriv().

◆ dfd_controller_thunk()

void * dfd_controller_thunk ( void *  callback_data)

Definition at line 892 of file darwinfirewiredevice.cpp.

◆ dfd_stream_msg()

void dfd_stream_msg ( UInt32  msg,
UInt32  param1,
UInt32  param2,
void *  callback_data 

Definition at line 914 of file darwinfirewiredevice.cpp.

◆ dfd_no_data_notification()

int dfd_no_data_notification ( void *  callback_data)

Definition at line 906 of file darwinfirewiredevice.cpp.

◆ dfd_update_device_list_item()

void dfd_update_device_list_item ( DarwinFirewireDevice dev,
uint64_t  guid,
void *  item 

Definition at line 900 of file darwinfirewiredevice.cpp.

Referenced by dfd_update_device_list().

◆ dfd_tspacket_handler()

int dfd_tspacket_handler ( uint  tsPacketCount,
uint32_t **  ppBuf,
void *  callback_data 

Definition at line 921 of file darwinfirewiredevice.cpp.

Referenced by dfd_tspacket_handler_thunk().