vdr 2.7.6
transfer.h
Go to the documentation of this file.
1/*
2 * transfer.h: Transfer mode
3 *
4 * See the main source file 'vdr.c' for copyright information and
5 * how to reach the author.
6 *
7 * $Id: transfer.h 5.1 2025/03/02 11:03:35 kls Exp $
8 */
9
10#ifndef __TRANSFER_H
11#define __TRANSFER_H
12
13#include "player.h"
14#include "receiver.h"
15#include "remux.h"
16
17class cTransfer : public cReceiver, public cPlayer {
18private:
22protected:
23 virtual void Activate(bool On) override;
24 virtual void Receive(const uchar *Data, int Length) override;
25public:
26 cTransfer(const cChannel *Channel);
27 virtual ~cTransfer() override;
28 };
29
30class cTransferControl : public cControl {
31private:
34public:
37 virtual void Hide(void) override {}
38 static cDevice *ReceiverDevice(void) { return receiverDevice; }
39 };
40
41#endif //__TRANSFER_H
cControl(cPlayer *Player, bool Hidden=false)
Definition player.c:45
cPlayer(ePlayMode PlayMode=pmAudioVideo)
Definition player.c:15
cReceiver(const cChannel *Channel=NULL, int Priority=MINPRIORITY)
Creates a new receiver for the given Channel with the given Priority.
Definition receiver.c:14
static cDevice * ReceiverDevice(void)
Definition transfer.h:38
cTransfer * transfer
Definition transfer.h:32
static cDevice * receiverDevice
Definition transfer.h:33
cTransferControl(cDevice *ReceiverDevice, const cChannel *Channel)
Definition transfer.c:70
virtual void Hide(void) override
Definition transfer.h:37
time_t lastErrorReport
Definition transfer.h:19
virtual void Receive(const uchar *Data, int Length) override
This function is called from the cDevice we are attached to, and delivers one TS packet from the set ...
Definition transfer.c:44
cTransfer(const cChannel *Channel)
Definition transfer.c:14
virtual ~cTransfer() override
Definition transfer.c:22
virtual void Activate(bool On) override
This function is called just before the cReceiver gets attached to (On == true) and right after it ge...
Definition transfer.c:28
int numLostPackets
Definition transfer.h:20
cPatPmtGenerator patPmtGenerator
Definition transfer.h:21
unsigned char uchar
Definition tools.h:31