19#include <vdr/player.h>
20#include <vdr/plugin.h>
113 return " -a device\taudio device (e.g. alsa: hw:0,0)\n"
114 " -c channel\taudio mixer channel name (e.g. PCM)\n"
115 " -o device\tdrm device (e.g. /dev/dri/card0)\n"
116 " -d resolution\tdisplay resolution (e.g. 1920x1080@50)\n"
117 " -g resolution\tosd resolution (e.g. 1920x1080)\n"
118 " -D start in detached state\n"
119 " -w workaround\tenable/disable workarounds\n"
121 "\tdisable-ogl-osd disable openGL osd\n"
123 "\tdisable-pip disable picture-in-picture\n"
320 "PLAY Url\n" " Play the media from the given url.\n",
321 "DETA\n" " Detach the plugin.\n",
322 "ATTA\n" " Attach the plugin.\n",
323 "STAT\n" " Get attached/detached status.\n"
325 " DETACHED -> 911\n",
326 "PION\n" " Enable picture-in-picture.\n",
327 "PIOF\n" " Disable picture-in-picture.\n",
328 "PITO\n" " Toggle picture-in-picture.\n",
329 "PIPU\n" " Pip channel up.\n",
330 "PIPD\n" " Pip channel down.\n",
331 "PIPC\n" " Pip swap channels.\n",
332 "PIPS\n" " Pip switch main stream to pip channel and close pip.\n",
333 "PIIP\n" " Pip swap positions.\n",
368 return "SoftHdDevice is already detached";
371 return "Detached SoftHdDevice";
376 return "SoftHdDevice is not detached";
379 return "Attached SoftHdDevice";
385 return "SoftHdDevice is attached";
388 return "SoftHdDevice is detached";
397 return "Pip is already enabled";
400 return "Pip was enabled";
405 return "Pip isn't enabled";
408 return "Pip was disabled";
414 return "Pip was enabled";
417 return "Pip was disabled";
423 return "Pip isn't enabled";
426 return "Pip channel up";
431 return "Pip isn't enabled";
434 return "Pip channel down";
439 return "Pip isn't enabled";
442 return "Pip swap channels";
447 return "Pip isn't enabled";
450 return "Pip switch main stream to pip channel and close pip";
455 return "Pip isn't enabled";
458 return "Pip swap position";
virtual void Stop(void)
Shutdown plugin.
virtual const char * CommandLineHelp(void)
Return a string that describes all known command line options.
virtual cMenuSetupPage * SetupMenu(void)
Return our setup menu.
virtual bool SetupParse(const char *, const char *)
Parse setup parameters.
virtual cOsdObject * MainMenuAction(void)
Perform the action when selected from the main VDR menu.
virtual const char * Description(void)
Return plugin short description.
cPluginSoftHdDevice(void)
cPluginSoftHdDevice constructor
virtual bool Start(void)
Start any background activities the plugin shall perform.
virtual const char ** SVDRPHelpPages(void)
Return SVDRP commands help pages.
cSoftHdConfig * m_pConfig
pointer to cSoftHdConfig object
virtual ~cPluginSoftHdDevice(void)
cPluginSoftHdDevice destructor
virtual bool Initialize(void)
Initializes the DVB devices.
cSoftHdDevice * m_pDevice
pointer to cSoftHdDevice object
virtual bool ProcessArgs(int, char *[])
Process the command line arguments.
virtual const char * Version(void)
Return plugin version number.
virtual const char * MainMenuEntry(void)
Create main menu entry.
virtual cString SVDRPCommand(const char *, const char *, int &)
Handle SVDRP commands.
virtual bool Service(const char *, void *=nullptr)
Receive requests or messages.
const char * ConfigDrmDevice
user requested drm device (e.g. "/dev/dri/card0")
const char * ConfigDisplayResolution
display resolution (syntax: "1920x1080@50")
const char * ConfigAudioPCMDevice
audio PCM device
const char * ConfigAudioMixerChannel
audio mixer channel name
bool SetupParse(const char *, const char *)
Parse setup parameters.
const char * ConfigDrmConnector
user requested drm connector (e.g. "HDMI-A-1")
const char * ConfigOsdResolution
osd resolution (syntax: "1920x1080")
sDrmMode UserSetDrmMode
user requested drm mode on the current connector
bool ConfigHideMainMenuEntry
config hide main menu entry
Output Device Implementation.
void Stop(void)
Called by VDR when the plugin is stopped.
void PipChannelSwap(bool)
void PipSwapPosition(void)
int Start(void)
Called by VDR when the plugin is started.
void Detach(void)
Detach the device.
void SetStartDetached(void)
bool IsDetached(void) const
Returns true, if the device is detached.
bool PipIsEnabled(void)
Returns true, if pip is currently enabled.
bool Initialize(void)
Initialize the device.
void SetDisableOglOsd(void)
Disables OpenGL/ES Osd (called from setup menu or conf)
void PipChannelChange(int)
void Attach(void)
Attach the device again.
Plugin Configuration Header File.
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix
#define LOGDEBUG
log to LOG_DEBUG
@ L_MEDIA
mediaplayer logs
static cSoftHdMenu * pSoftHdMenu
Main Menu Instance.
static const char *const DESCRIPTION
vdr-plugin description.
static const char * SVDRPHelpText[]
SVDRP commands help text.
static const char *const MAINMENUENTRY
what is displayed in the main menu entry
static const char *const VERSION
vdr-plugin version number Makefile extracts the version number for generating the file name for the d...
VDRPLUGINCREATOR(cPluginSoftHdDevice)
Main Plugin Interface Header File.
Output Device Header File.