summaryrefslogtreecommitdiff
path: root/dvbspu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-20 10:43:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-20 10:43:32 +0100
commitdb98ecf54e7bbefe2c8649d7a8615bb83d0fb70c (patch)
treeb3570eb130ce474de241a274bc61d07eafeb586d /dvbspu.h
parent6a8a7903129063175fb9e63df6f2f84109481581 (diff)
downloadvdr-db98ecf54e7bbefe2c8649d7a8615bb83d0fb70c.tar.gz
vdr-db98ecf54e7bbefe2c8649d7a8615bb83d0fb70c.tar.bz2
Implemented scaling of SPU bitmaps
Diffstat (limited to 'dvbspu.h')
-rw-r--r--dvbspu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/dvbspu.h b/dvbspu.h
index 863e4464..5c7cc0a4 100644
--- a/dvbspu.h
+++ b/dvbspu.h
@@ -8,13 +8,14 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.h 2.5 2011/03/27 14:50:48 kls Exp $
+ * $Id: dvbspu.h 2.6 2013/01/20 10:15:47 kls Exp $
*/
#ifndef __DVBSPU_H
#define __DVBSPU_H
#include <inttypes.h>
+#include "device.h"
#include "osd.h"
#include "spu.h"
#include "thread.h"
@@ -106,7 +107,8 @@ class cDvbSpuDecoder:public cSpuDecoder {
enum spFlag { spNONE, spHIDE, spSHOW, spMENU };
spFlag state;
- cSpuDecoder::eScaleMode scaleMode;
+ cSpuDecoder::eScaleMode scaleMode;
+ double xscaling, yscaling;
//highligh area
bool highlight;
@@ -133,6 +135,7 @@ class cDvbSpuDecoder:public cSpuDecoder {
return ((spu[0] << 8) | spu[1]);
};
+ void SetSpuScaling(void);
sDvbSpuRect CalcAreaSize(sDvbSpuRect fgsize, cBitmap *fgbmp, sDvbSpuRect bgsize, cBitmap *bgbmp);
int CalcAreaBpp(cBitmap *fgbmp, cBitmap *bgbmp);