summaryrefslogtreecommitdiff
path: root/dvbapi.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-17 13:47:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-17 13:47:06 +0200
commit925780c20f09c7d0ef4a921f355a47f5e472878e (patch)
treec934c608bb59b3bda0a9cde282fcb22d8458914f /dvbapi.h
parentb3c78919d5e8dcfcf8f5eb635bbb86efa98a3fa4 (diff)
downloadvdr-925780c20f09c7d0ef4a921f355a47f5e472878e.tar.gz
vdr-925780c20f09c7d0ef4a921f355a47f5e472878e.tar.bz2
Implemented overlay handling
Diffstat (limited to 'dvbapi.h')
-rw-r--r--dvbapi.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/dvbapi.h b/dvbapi.h
index 5ae3a513..08ba4bfc 100644
--- a/dvbapi.h
+++ b/dvbapi.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.h 1.15 2000/09/17 11:43:10 kls Exp $
+ * $Id: dvbapi.h 1.16 2000/09/17 12:15:05 kls Exp $
*/
#ifndef __DVBAPI_H
@@ -21,6 +21,12 @@ typedef unsigned char __u8;
#include <stdio.h>
#include <dvb.h>
+// Overlay facilities
+#define MAXCLIPRECTS 100
+typedef struct CRect {
+ signed short x, y, width, height;
+ };
+
#define MenuLines 15
#define MenuColumns 40
@@ -74,6 +80,21 @@ public:
bool GrabImage(const char *FileName, bool Jpeg = true, int Quality = -1, int SizeX = -1, int SizeY = -1);
+ // Overlay facilities
+
+private:
+ bool ovlStat, ovlGeoSet, ovlFbSet;
+ int ovlSizeX, ovlSizeY, ovlPosX, ovlPosY, ovlBpp, ovlPalette, ovlClips, ovlClipCount;
+ int ovlFbSizeX, ovlFbSizeY;
+ __u16 ovlBrightness, ovlColour, ovlHue, ovlContrast;
+ struct video_clip ovlClipRects[MAXCLIPRECTS];
+public:
+ bool OvlF(int SizeX, int SizeY, int FbAddr, int Bpp, int Palette);
+ bool OvlG(int SizeX, int SizeY, int PosX, int PosY);
+ bool OvlC(int ClipCount, CRect *Cr);
+ bool OvlP(__u16 Brightness, __u16 Color, __u16 Hue, __u16 Contrast);
+ bool OvlO(bool Value);
+
// On Screen Display facilities
private: