25#define __STDC_CONSTANT_MACROS
32#include <vdr/player.h>
33#include <vdr/plugin.h>
48#include <libavcodec/avcodec.h>
61static const char *
const VERSION =
"1.4.0";
65static const char *
const DESCRIPTION = trNOOP(
"A software and GPU emulated HD device");
252 "PLAY Url\n" " Play the media from the given url.\n",
253 "DETA\n" " Detach the plugin.\n",
254 "ATTA\n" " Attach the plugin.\n",
255 "STAT\n" " Get attached/detached status.\n"
257 " DETACHED -> 911\n",
258 "PION\n" " Enable picture-in-picture.\n",
259 "PIOF\n" " Disable picture-in-picture.\n",
260 "PITO\n" " Toggle picture-in-picture.\n",
261 "PIPU\n" " Pip channel up.\n",
262 "PIPD\n" " Pip channel down.\n",
263 "PIPC\n" " Pip swap channels.\n",
264 "PIIP\n" " Pip swap positions.\n",
289 if (!strcasecmp(command,
"PLAY")) {
290 LOGDEBUG2(
L_MEDIA,
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
296 if (!strcasecmp(command,
"DETA")) {
297 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
299 return "SoftHdDevice is already detached";
302 return "Detached SoftHdDevice";
304 if (!strcasecmp(command,
"ATTA")) {
305 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
307 return "SoftHdDevice is not detached";
310 return "Attached SoftHdDevice";
312 if (!strcasecmp(command,
"STAT")) {
313 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
316 return "SoftHdDevice is attached";
319 return "SoftHdDevice is detached";
324 if (!strcasecmp(command,
"PION")) {
325 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
327 return "Pip is already enabled";
330 return "Pip was enabled";
332 if (!strcasecmp(command,
"PIOF")) {
333 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
335 return "Pip isn't enabled";
338 return "Pip was disabled";
340 if (!strcasecmp(command,
"PITO")) {
341 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
344 return "Pip was enabled";
347 return "Pip was disabled";
350 if (!strcasecmp(command,
"PIPU")) {
351 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
353 return "Pip isn't enabled";
356 return "Pip channel up";
358 if (!strcasecmp(command,
"PIPD")) {
359 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
361 return "Pip isn't enabled";
364 return "Pip channel down";
366 if (!strcasecmp(command,
"PIPC")) {
367 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
369 return "Pip isn't enabled";
372 return "Pip swap channels";
374 if (!strcasecmp(command,
"PIPP")) {
375 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
377 return "Pip isn't enabled";
380 return "Pip swap position";
Audio and alsa module header file.
cPluginSoftHdDevice - SoftHdDevice plugin class
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 bool Service(const char *, void *=NULL)
Receive requests or messages.
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.
bool SetupParse(const char *, const char *)
Parse setup parameters.
bool ConfigHideMainMenuEntry
config hide main menu entry
void Stop(void)
Called by VDR when the plugin is stopped.
void PipSwapPosition(void)
Swap pip between normal and alternative position.
int Start(void)
Called by VDR when the plugin is started.
void Detach(void)
Detach the device.
const char * CommandLineHelp(void)
Return command line help string.
bool IsDetached(void) const
Returns true, if the device is detached.
bool PipIsEnabled(void)
Returns true, if picture-in-picture is running.
void PipDisable(void)
Stop picture-in-picture.
void PipEnable(void)
Start picture-in-picture.
void PipChannelSwap(void)
Swap the pip channel with main live channel.
int ProcessArgs(int, char *[])
Process the command line arguments.
void PipChannelChange(int)
Change the pip channel.
void Attach(void)
Attach the device again.
Audio decoder header file.
Logger class header file.
Osd class - hardware accelerated (OpenGL/ES) - header file.
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 class header file.
Device class header file.
Softhddevice osd header file.
Rendering class header file.
Videostream class header file.