From c6ed4da7a0e8d9bf5664ba2c4282e3c6cb6d7932 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 25 Aug 2002 09:36:09 +0200 Subject: Added cDevice::NewOsd() to allow a derived cDevice class to implement its own OSD capabilities --- PLUGINS.html | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index e1f73f55..12a25b24 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.4 are marked like this. -
-
  +
  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. +

Part I - The Outside Interface

@@ -907,7 +907,6 @@ See the file status.h for detailed information on which status monitor member functions are available in cStatus. You only need to implement the functions you actually want to use. -
 

Players

Play it again, Sam!

@@ -958,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


@@ -1065,9 +1064,8 @@ Of course, these are only suggestions which should make it easier for VDR users 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...

@@ -1123,7 +1121,7 @@ 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

@@ -1155,7 +1153,7 @@ 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

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

The functions to implement replaying capabilites are -
  +
 


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

+
  +

+On Screen Display +

+If your device provides On Screen Display (OSD) capabilities (which every device +that is supposed to be used as a primary device should do), it can implement +the function + +


+virtual cOsdBase *NewOsd(int x, int y); +

+ +which must return a newly created object of a derived cOsdBase class that +implements the functions necessary to display OSD information on your device. +The caller of this function will delete the object as soon as it is no longer +needed. +

+ +

Initializing new devices

A derived cDevice class shall implement a static function -- cgit v1.2.3