2013-09-23 22:33:38 +02:00
|
|
|
#pragma once
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
#include <QString>
|
|
|
|
|
2013-10-02 09:46:12 +02:00
|
|
|
/**
|
|
|
|
* Enumeration of the possible modes in which frame-grabbing is performed.
|
|
|
|
*/
|
2013-09-23 22:33:38 +02:00
|
|
|
enum GrabbingMode
|
|
|
|
{
|
2013-10-02 09:46:12 +02:00
|
|
|
/** Frame grabbing is switched off */
|
2013-09-23 22:33:38 +02:00
|
|
|
GRABBINGMODE_OFF,
|
2013-10-02 09:46:12 +02:00
|
|
|
/** Frame grabbing during video */
|
2013-09-23 22:33:38 +02:00
|
|
|
GRABBINGMODE_VIDEO,
|
2016-06-07 12:34:50 +02:00
|
|
|
GRABBINGMODE_PAUSE,
|
2013-09-23 22:33:38 +02:00
|
|
|
GRABBINGMODE_PHOTO,
|
|
|
|
GRABBINGMODE_AUDIO,
|
|
|
|
GRABBINGMODE_MENU,
|
2016-07-21 20:15:54 +02:00
|
|
|
GRABBINGMODE_SCREENSAVER,
|
2013-09-23 22:33:38 +02:00
|
|
|
GRABBINGMODE_INVALID
|
|
|
|
};
|
2017-08-04 23:08:15 +02:00
|
|
|
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
}
|