From 3e58bc64fece489778cdd2dc3df24c9bdca28779 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 4 Sep 2002 17:26:02 +0200 Subject: Implemented recording and replaying with a single DVB card --- PLUGINS.html | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index 12a25b24..9d6f4a64 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -21,18 +21,18 @@ VDR program and present itself to the user. The inside interface provides the plugin code access to VDR's internal data structures and allows it to hook itself into specific areas to perform special actions.

-
  -Important modifications introduced in version 1.1.5 are marked like this. -
-
  +
  Important modifications introduced in version 1.1.6 are marked like this.
-
  +
  Important modifications introduced in version 1.1.7 are marked like this.
-
  +
  Important modifications introduced in version 1.1.8 are marked like this.
+
  +Important modifications introduced in version 1.1.9 are marked like this. +

Part I - The Outside Interface

@@ -352,20 +352,20 @@ these values inside the plugin. Here's an example:


bool cPluginHello::ProcessArgs(int argc, char *argv[]) -{ +{ // Implement command line argument processing here if applicable. static struct option long_options[] = { { "aaa", required_argument, NULL, 'a' }, { "bbb", no_argument, NULL, 'b' }, { NULL } }; - + int c; while ((c = getopt_long(argc, argv, "a:b", long_options, NULL)) != -1) { switch (c) { case 'a': option_a = optarg; break; - case 'b': option_b = true; + case 'b': option_b = true; break; default: return false; } @@ -609,7 +609,7 @@ public: }; cMenuSetupHello::cMenuSetupHello(void) -{ +{ newGreetingTime = GreetingTime; newUseAlternateGreeting = UseAlternateGreeting; Add(new cMenuEditIntItem( tr("Greeting time (s)"), &newGreetingTime)); @@ -617,7 +617,7 @@ cMenuSetupHello::cMenuSetupHello(void) } void cMenuSetupHello::Store(void) -{ +{ SetupStore("GreetingTime", GreetingTime = newGreetingTime); SetupStore("UseAlternateGreeting", UseAlternateGreeting = newUseAlternateGreeting); } @@ -957,7 +957,7 @@ stream. There are no prerequisites regarding the length or alignment of an individual block of data. The sum of all blocks must simply result in the desired video data stream, and it must be delivered fast enough so that the DVB device doesn't run out of data. -
  +
  To avoid busy loops the player should call its member function


@@ -1034,7 +1034,7 @@ void DeviceStillPicture(const uchar *Data, int Length); which can be called to display a still picture. VDR uses this function when handling its editing marks. A special case of a "player" might use this function to implement -a "picture viewer". +a "picture viewer".

For detailed information on how to implement your own player, please take a look at VDR's cDvbPlayer and cDvbPlayerControl classes. @@ -1065,7 +1065,7 @@ enjoy additional players, since they will be able to control them with actions that they already know. If you absolutely want to do things differently, just go ahead - it's your show... -
  +
 

Receivers

Tapping into the stream...

@@ -1121,7 +1121,6 @@ If the cReceiver isn't needed any more, it may simply be deleted and will automatically detach itself from the cDevice.

-
 

The On Screen Display

Express yourself

@@ -1151,9 +1150,8 @@ MyOsd->Create(...); to define an actual OSD drawing area (see VDR/osdbase.h for the declarations of these functions, and VDR/osd.c to see how VDR opens the OSD and sets up its windows and color depths). -

-
  +
 

Devices

Expanding the possibilities

@@ -1189,12 +1187,16 @@ the cDvbDevice, which is used to access the DVB PCI cards. If the new device can receive, it most likely needs to provide a way of selecting which channel it shall tune to: +
 


-virtual bool SetChannelDevice(const cChannel *Channel); +virtual bool ProvidesChannel(const cChannel *Channel, int Priority = -1, bool *NeedsSwitchChannel = NULL); +virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView);

-This function will be called with the desired channel and shall return whether -tuning to it was successful. +These functions will be called with the desired channel and shall return whether +this device can provide the requested channel and whether tuning to it was successful, +repectively. +

Recording

@@ -1226,7 +1228,7 @@ to indicate this to VDR.

The functions to implement replaying capabilites are -
  +
 


virtual bool HasDecoder(void) const; virtual bool SetPlayMode(ePlayMode PlayMode); @@ -1250,7 +1252,7 @@ virtual void SetVideoFormat(bool VideoFormat16_9); virtual void SetVolumeDevice(int Volume);

-
  +
 

On Screen Display

-- cgit v1.2.3