DrawStyle DrawStyle::DARKGREY(100, 100, 100);
DrawStyle DrawStyle::BLUE(0, 0, 255);
DrawStyle DrawStyle::YELLOW(255, 255, 0);
+DrawStyle DrawStyle::VIDEOBLUE(0, 0, 150);
DrawStyle DrawStyle::VIEWBACKGROUND(0, 0, 100);
DrawStyle DrawStyle::VIEWTRANSPARENTBACKGROUND(0, 0, 100, 128);
DrawStyle DrawStyle::TABVIEWBACKGROUND(0, 0, 120);
static DrawStyle BLUE;
static DrawStyle GREY;
static DrawStyle DARKGREY;
+ static DrawStyle VIDEOBLUE;
static DrawStyle VIEWBACKGROUND;
static DrawStyle VIEWTRANSPARENTBACKGROUND;
static DrawStyle LIVETVSYMBOLS;
#include "log.h"
#include "vsleeptimer.h"
#include "wjpeg.h"
+#include "osdvector.h"
+
Command* Command::instance = NULL;
#define VOMP_MEDIAPLAYER
#define VOMP_LINUX_CLOCK CLOCK_REALTIME
+
+ #define VectorHandle void*
+
#endif
#ifdef VOMP_PLATTFORM_NMT // This was the attempt to port vomp to nmt, it failed but maybe the code is useful at some time
vradiorec.o vaudioselector.o vscreensaver.o vopts.o \
wselectlist.o wjpeg.o wsymbol.o wbutton.o wtextbox.o \
woptionpane.o woptionbox.o wremoteconfig.o wtabbar.o \
- remote.o led.o mtd.o osd.o surface.o \
+ remote.o led.o mtd.o osd.o osdvector.o surface.o surfacevector.o \
vpicturebanner.o \
abstractoption.o \
eventdispatcher.o vdrrequestpacket.o vdrresponsepacket.o \
{
if (m->message == Message::MOUSE_MOVE)
{
- if (sl.mouseMove((m->parameter>>16)-getScreenX(),(m->parameter&0xFFFF)-getScreenY()))
+ if (sl.mouseMove((m->parameter.num>>16)-getScreenX(),(m->parameter.num&0xFFFF)-getScreenY()))
{
sl.draw();
doShowingBar();
}
else if (m->message == Message::MOUSE_LBDOWN)
{
- if (sl.mouseLBDOWN((m->parameter>>16)-getScreenX(),(m->parameter&0xFFFF)-getScreenY()))
+ if (sl.mouseLBDOWN((m->parameter.num>>16)-getScreenX(),(m->parameter.num&0xFFFF)-getScreenY()))
{
updateSelection();
boxstack->handleCommand(Remote::OK); //simulate OK press
}
else
{ //check if press is outside this view! then simulate cancel
- int x=(m->parameter>>16)-getScreenX();
- int y=(m->parameter&0xFFFF)-getScreenY();
+ int x=(m->parameter.num>>16)-getScreenX();
+ int y=(m->parameter.num&0xFFFF)-getScreenY();
if (x<0 || y <0 || x>(int)getWidth() || y>(int)getHeight())
{
boxstack->handleCommand(Remote::BACK); //simulate cancel press
}
}
else if (m->message == Message::PLAYER_EVENT) {
- switch (m->parameter) {
+ switch (m->parameter.num) {
case 1:
directoryDone();
break;
Message* m = new Message();
m->message = Message::ADD_VIEW;
m->to = boxstack;
- m->parameter = (ULONG)vi;
+ m->parameter.num = (ULONG)vi;
Command::getInstance()->postMessageNoLock(m);
}
return 1;
Message* m = new Message();
m->message = Message::PLAYER_EVENT;
m->to = this;
- m->parameter = ref;
+ m->parameter.num = ref;
Command::getInstance()->postMessageFromOuterSpace(m);
}
}
m->message = Message::PLAYER_EVENT;
m->to = _parent;
m->from = _parent;
- m->parameter= rt?VMediaView::EVENT_DRAWINGDONE:VMediaView::EVENT_DRAWINGERROR;
+ m->parameter.num = rt?VMediaView::EVENT_DRAWINGDONE:VMediaView::EVENT_DRAWINGERROR;
Command::getInstance()->postMessageFromOuterSpace(m);
}
Log::getInstance()->log("DrawingThread",Log::DEBUG,"finishing interrupt=%d",(int)_interrupted);
{
//check if press is outside this view! then simulate cancel
- int x=(m->parameter>>16)-getScreenX();
- int y=(m->parameter&0xFFFF)-getScreenY();
+ int x=(m->parameter.num>>16)-getScreenX();
+ int y=(m->parameter.num&0xFFFF)-getScreenY();
if (x<0 || y <0 || x>(int)getWidth() || y>(int)getHeight())
{
BoxStack::getInstance()->handleCommand(Remote::BACK); //simulate cancel press
}
}
else if (m->message = Message::PLAYER_EVENT) {
- switch (m->parameter) {
+ switch (m->parameter.num) {
case EVENT_SLIDESHOW:
if (! pictureEnabled) break; //old timer msg...
//if (! audioEnabled) {
m->message = Message::CLOSE_ME;
m->to = BoxStack::getInstance();
m->from = v;
- m->parameter=(ULONG)v;
+ m->parameter.num=(ULONG)v;
Command::getInstance()->postMessageFromOuterSpace(m);
}
void VMediaView::sendCommandMsg(int command) {
m->message = Message::PLAYER_EVENT;
m->to = this;
m->from = this;
- m->parameter= command;
+ m->parameter.num = command;
Command::getInstance()->postMessageFromOuterSpace(m);
}
m = new Message();
m->message = Message::ADD_VIEW;
m->to = boxstack;
- m->parameter = (ULONG)vi;
+ m->parameter.num = (ULONG)vi;
Command::getInstance()->postMessageNoLock(m);
}
}
if (m->message == Message::MOUSE_LBDOWN)
{
- UINT x = (m->parameter>>16) - getScreenX();
- UINT y = (m->parameter&0xFFFF) - getScreenY();
+ UINT x = (m->parameter.num>>16) - getScreenX();
+ UINT y = (m->parameter.num&0xFFFF) - getScreenY();
if (!barShowing)
{
}
else if (m->message == Message::PLAYER_EVENT)
{
- switch(m->parameter)
+ switch(m->parameter.num)
{
case PlayerMedia::CONNECTION_LOST: // connection lost detected
{
else if (m->message == Message::AUDIO_CHANGE_CHANNEL)
{
Log::getInstance()->log("VVideoMedia", Log::DEBUG, "Received change audio channel to %i", m->parameter);
- player->setAudioChannel(m->parameter);
+ player->setAudioChannel(m->parameter.num);
}
else if (m->message == Message::CHILD_CLOSE)
{
m->message=Message::PLAYER_EVENT;
m->to=this;
m->from=this;
- m->parameter=PLAYER_TIMER_BASE+clientReference;
+ m->parameter.num=PLAYER_TIMER_BASE+clientReference;
Command::getInstance()->postMessageFromOuterSpace(m);
}