summaryrefslogtreecommitdiff
path: root/sourceparams.h
blob: f1b3dcecbaf620e6454aa3e929321d915d6b8088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _PVRINPUT_SOURCEPARAMS_H
#define _PVRINPUT_SOURCEPARAMS_H

class cPvrSourceParam
#ifdef __SOURCEPARAMS_H
 : public cSourceParam
#endif
{
private:
  int param;
  int input;
  int standard;
  int card;

public:
  cPvrSourceParam();
  cString ParametersToString(void) const;
  virtual void SetData(cChannel *Channel);
  virtual void GetData(cChannel *Channel);
  virtual cOsdItem *GetOsdItem(void);

  static bool IsPvr(int Code);
  static bool ParseParameters(const char *Parameters, int *InputIndex, int *StandardIndex, int *CardIndex);

#ifdef PVR_SOURCEPARAMS
  static const char *sPluginId;
  static const char  sSourceID = 'V';
  static const uint  stPvr = (sSourceID << 24);
#else
  static const char *sPluginId;
  static const char  sSourceID = 'P';
  static const uint  stPvr = cSource::stPlug;
#endif

  static const int         sNumInputs = 12;
  static const char       *sInputName[];
  static const eInputType  sInputType[];

  static const int   sNumCards = 9;
  static const char *sCards[];

  static const int       sNumStandards = 31;
  static const char     *sStandardName[];
  static const uint64_t  sStandardNorm[];
  static const int       sStandardLinesPerFrame[];
};

#endif