summaryrefslogtreecommitdiff
path: root/dvbspu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-05 14:45:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-05 14:45:07 +0100
commit1b973fd8ebb0a5dca7c82fac0651c33ecb7edd50 (patch)
tree217d8b681331be13fdac6b98ec811c604c87e6ef /dvbspu.h
parentfa5db6d7772bb636839f0261eebd9cca3f2bad7d (diff)
downloadvdr-1b973fd8ebb0a5dca7c82fac0651c33ecb7edd50.tar.gz
vdr-1b973fd8ebb0a5dca7c82fac0651c33ecb7edd50.tar.bz2
Improved SPU handling on devices with limited OSD capabilities
Diffstat (limited to 'dvbspu.h')
-rw-r--r--dvbspu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/dvbspu.h b/dvbspu.h
index 685681be..42aa7f08 100644
--- a/dvbspu.h
+++ b/dvbspu.h
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.h 2.1 2009/05/09 16:26:45 kls Exp $
+ * $Id: dvbspu.h 2.2 2009/12/05 14:40:08 kls Exp $
*/
#ifndef __DVBSPU_H
@@ -80,6 +80,7 @@ class cDvbSpuBitmap {
bool getMinSize(const aDvbSpuPalDescr paldescr,
sDvbSpuRect & size) const;
+ int getMinBpp(const aDvbSpuPalDescr paldescr);
cBitmap *getBitmap(const aDvbSpuPalDescr paldescr,
const cDvbSpuPalette & pal,
sDvbSpuRect & size) const;
@@ -97,6 +98,7 @@ class cDvbSpuDecoder:public cSpuDecoder {
uint32_t spupts;
bool clean;
bool ready;
+ bool restricted_osd;
enum spFlag { spNONE, spHIDE, spSHOW, spMENU };
spFlag state;
@@ -129,6 +131,7 @@ class cDvbSpuDecoder:public cSpuDecoder {
};
sDvbSpuRect CalcAreaSize(sDvbSpuRect fgsize, cBitmap *fgbmp, sDvbSpuRect bgsize, cBitmap *bgbmp);
+ int CalcAreaBpp(cBitmap *fgbmp, cBitmap *bgbmp);
public:
cDvbSpuDecoder();