From 198b274e70c737d0de8a5f8ffe41d2beef3bafd3 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 20 Mar 2011 20:59:25 +0000 Subject: Added SupportsTrueColorOSD() to frontends --- frontend.h | 4 +++- frontend_local.c | 7 ++++++- frontend_local.h | 4 +++- frontend_svr.c | 25 ++++++++++++++++++++++++- frontend_svr.h | 5 ++++- 5 files changed, 40 insertions(+), 5 deletions(-) diff --git a/frontend.h b/frontend.h index b08f8891..0e325266 100644 --- a/frontend.h +++ b/frontend.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.h,v 1.40 2010-05-18 15:28:34 phintuka Exp $ + * $Id: frontend.h,v 1.41 2011-03-20 20:59:25 phintuka Exp $ * */ @@ -133,6 +133,8 @@ class cXinelibThread : public cThread, public cListObject // Remote frontend server: virtual bool Listen(int port) { return false; } + virtual int SupportsTrueColorOSD(void) { return 0; } /* 0: no, 1: yes, -1: unknown */ + // // Data // diff --git a/frontend_local.c b/frontend_local.c index 49004a1e..99b19d19 100644 --- a/frontend_local.c +++ b/frontend_local.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_local.c,v 1.54 2011-02-28 13:37:10 phintuka Exp $ + * $Id: frontend_local.c,v 1.55 2011-03-20 20:59:25 phintuka Exp $ * */ @@ -218,6 +218,11 @@ void cXinelibLocal::ConfigureDecoder(int pes_buffers) cCondWait::SleepMs(100); } +int cXinelibLocal::SupportsTrueColorOSD(void) +{ + return !!xc.hud_osd; +} + // // Xine control // diff --git a/frontend_local.h b/frontend_local.h index 72552b03..863d3f0e 100644 --- a/frontend_local.h +++ b/frontend_local.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_local.h,v 1.8 2010-03-13 12:04:29 phintuka Exp $ + * $Id: frontend_local.h,v 1.9 2011-03-20 20:59:25 phintuka Exp $ * */ @@ -49,6 +49,8 @@ class cXinelibLocal : public cXinelibThread int aspect, int scale_video, int field_order); virtual void ConfigureDecoder(int pes_buffers); + virtual int SupportsTrueColorOSD(void); + protected: // Playback control diff --git a/frontend_svr.c b/frontend_svr.c index a37bbe06..0fcf2a0b 100644 --- a/frontend_svr.c +++ b/frontend_svr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_svr.c,v 1.102 2011-03-19 21:38:20 phintuka Exp $ + * $Id: frontend_svr.c,v 1.103 2011-03-20 20:59:25 phintuka Exp $ * */ @@ -127,6 +127,7 @@ cXinelibServer::cXinelibServer(int listen_port) : m_State[i] = NULL; m_bMulticast[i] = 0; m_bConfigOk[i] = false; + m_bArgbOSD[i] = false; m_bUdp[i] = 0; m_ConnType[i] = ctDetecting; } @@ -219,6 +220,7 @@ void cXinelibServer::CloseDataConnection(int cli) m_bUdp[cli] = false; m_bMulticast[cli] = false; m_bConfigOk[cli] = false; + m_bArgbOSD[cli] = false; m_iMulticastMask &= ~(1<