mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
569e59110e
* implement set videomode via json api * refactor grabbers: - new base class - move shared code to base class * fix osx * rework all cmakelist files with auto file collection. except leddevices (need further restructuring) * store current video and grabbing mode * add json stuff * remove grabbingmode - we do not want to expose it
36 lines
802 B
C
36 lines
802 B
C
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
/**
|
|
* Enumeration of the possible modes in which frame-grabbing is performed.
|
|
*/
|
|
enum GrabbingMode
|
|
{
|
|
/** Frame grabbing is switched off */
|
|
GRABBINGMODE_OFF,
|
|
/** Frame grabbing during video */
|
|
GRABBINGMODE_VIDEO,
|
|
GRABBINGMODE_PAUSE,
|
|
GRABBINGMODE_PHOTO,
|
|
GRABBINGMODE_AUDIO,
|
|
GRABBINGMODE_MENU,
|
|
GRABBINGMODE_SCREENSAVER,
|
|
GRABBINGMODE_INVALID
|
|
};
|
|
|
|
inline QString grabbingMode2String(GrabbingMode mode)
|
|
{
|
|
switch(mode)
|
|
{
|
|
case GRABBINGMODE_OFF: return "OFF";
|
|
case GRABBINGMODE_VIDEO: return "VIDEO";
|
|
case GRABBINGMODE_PAUSE: return "PAUSE";
|
|
case GRABBINGMODE_PHOTO: return "PHOTO";
|
|
case GRABBINGMODE_AUDIO: return "AUDIO";
|
|
case GRABBINGMODE_MENU: return "MENU";
|
|
case GRABBINGMODE_SCREENSAVER: return "SCREENSAVER";
|
|
default: return "INVALID";
|
|
}
|
|
}
|