summaryrefslogtreecommitdiff
path: root/dxr3osd.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-12 20:13:56 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-12 20:13:56 +0200
commitaacb17750c711065a3bcf5307f40b7c25e1e49f6 (patch)
treee2714de0f24464fd43bf5123bd590965f8e121c5 /dxr3osd.c
parent3d6200f096559e5cebead403b5b151bff2f7ccef (diff)
downloadvdr-plugin-dxr3-aacb17750c711065a3bcf5307f40b7c25e1e49f6.tar.gz
vdr-plugin-dxr3-aacb17750c711065a3bcf5307f40b7c25e1e49f6.tar.bz2
add stub cBitmap scaler
Diffstat (limited to 'dxr3osd.c')
-rw-r--r--dxr3osd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/dxr3osd.c b/dxr3osd.c
index 9a78b1c..10b4024 100644
--- a/dxr3osd.c
+++ b/dxr3osd.c
@@ -25,6 +25,7 @@
#include "dxr3osd.h"
#include "dxr3interface_spu_encoder.h"
+#include "scaler.h"
// ==================================
// ! create osd at (Left, Top, Level)
@@ -229,6 +230,19 @@ void cDxr3Osd::Flush()
bmap = mergedBitmap;
}
+ uint32_t horizontal, vertical;
+ cDxr3Interface::instance()->dimension(horizontal, vertical);
+
+ // check if we need to scale the osd
+ if (horizontal < 720 || vertical < 576) {
+
+ // TODO
+ dsyslog("SCALE ME");
+ }
+
+ if (!bmap)
+ return;
+
// encode bitmap
if (bmap->Dirty(x1, y1, x2, y2)) {
cSpuEncoder::instance()->encode(bmap, Top(), Left());