MythTV
master
mythtv
libs
libmythtv
driveroption.h
Go to the documentation of this file.
1
#ifndef DRIVER_OPTION_H
2
#define DRIVER_OPTION_H
3
4
#include <QMap>
5
6
struct
DriverOption
7
{
8
// The order of this list dictates the order the options will be shown
9
enum
category_t
: std::uint8_t
10
{
UNKNOWN_CAT
,
STREAM_TYPE
,
VIDEO_ENCODING
,
VIDEO_ASPECT
,
11
VIDEO_B_FRAMES
,
VIDEO_GOP_SIZE
,
12
VIDEO_BITRATE_MODE
,
VIDEO_BITRATE
,
VIDEO_BITRATE_PEAK
,
13
AUDIO_ENCODING
,
AUDIO_BITRATE_MODE
,
AUDIO_SAMPLERATE
,
14
AUDIO_BITRATE
,
AUDIO_LANGUAGE
,
VOLUME
,
15
BRIGHTNESS
,
CONTRAST
,
SATURATION
,
HUE
,
SHARPNESS
16
};
17
enum
type_t
: std::uint8_t
18
{
UNKNOWN_TYPE
,
INTEGER
,
BOOLEAN
,
STRING
,
MENU
,
19
BUTTON
,
BITMASK
};
20
21
using
menu_t
= QMap<int, QString>;
22
using
Options
= QMap<category_t, DriverOption>;
23
24
DriverOption
(
void
) =
default
;
25
~DriverOption
(
void
) =
default
;
26
27
QString
m_name
;
28
category_t
m_category
{
UNKNOWN_CAT
};
29
int32_t
m_minimum
{0};
30
int32_t
m_maximum
{0};
31
int32_t
m_defaultValue
{0};
32
int32_t
m_current
{0};
33
uint32_t
m_step
{0};
34
uint32_t
m_flags
{0};
35
menu_t
m_menu
;
36
type_t
m_type
{
UNKNOWN_TYPE
};
37
};
38
39
#endif // DRIVER_OPTION_H
DriverOption::m_step
uint32_t m_step
Definition:
driveroption.h:33
DriverOption::Options
QMap< category_t, DriverOption > Options
Definition:
driveroption.h:22
DriverOption::VIDEO_ASPECT
@ VIDEO_ASPECT
Definition:
driveroption.h:10
DriverOption::m_defaultValue
int32_t m_defaultValue
Definition:
driveroption.h:31
DriverOption::BUTTON
@ BUTTON
Definition:
driveroption.h:19
DriverOption::SATURATION
@ SATURATION
Definition:
driveroption.h:15
DriverOption::AUDIO_BITRATE
@ AUDIO_BITRATE
Definition:
driveroption.h:14
DriverOption::VIDEO_BITRATE_PEAK
@ VIDEO_BITRATE_PEAK
Definition:
driveroption.h:12
DriverOption::DriverOption
DriverOption(void)=default
DriverOption::VIDEO_BITRATE
@ VIDEO_BITRATE
Definition:
driveroption.h:12
DriverOption::category_t
category_t
Definition:
driveroption.h:9
DriverOption::VIDEO_BITRATE_MODE
@ VIDEO_BITRATE_MODE
Definition:
driveroption.h:12
DriverOption::m_minimum
int32_t m_minimum
Definition:
driveroption.h:29
DriverOption::AUDIO_BITRATE_MODE
@ AUDIO_BITRATE_MODE
Definition:
driveroption.h:13
DriverOption::UNKNOWN_CAT
@ UNKNOWN_CAT
Definition:
driveroption.h:10
DriverOption::SHARPNESS
@ SHARPNESS
Definition:
driveroption.h:15
DriverOption
Definition:
driveroption.h:6
DriverOption::m_name
QString m_name
Definition:
driveroption.h:27
DriverOption::VIDEO_ENCODING
@ VIDEO_ENCODING
Definition:
driveroption.h:10
DriverOption::MENU
@ MENU
Definition:
driveroption.h:18
DriverOption::BRIGHTNESS
@ BRIGHTNESS
Definition:
driveroption.h:15
DriverOption::BOOLEAN
@ BOOLEAN
Definition:
driveroption.h:18
DriverOption::UNKNOWN_TYPE
@ UNKNOWN_TYPE
Definition:
driveroption.h:18
DriverOption::m_current
int32_t m_current
Definition:
driveroption.h:32
DriverOption::type_t
type_t
Definition:
driveroption.h:17
DriverOption::STREAM_TYPE
@ STREAM_TYPE
Definition:
driveroption.h:10
DriverOption::AUDIO_LANGUAGE
@ AUDIO_LANGUAGE
Definition:
driveroption.h:14
DriverOption::~DriverOption
~DriverOption(void)=default
DriverOption::m_category
category_t m_category
Definition:
driveroption.h:28
DriverOption::AUDIO_SAMPLERATE
@ AUDIO_SAMPLERATE
Definition:
driveroption.h:13
DriverOption::m_type
type_t m_type
Definition:
driveroption.h:36
DriverOption::m_menu
menu_t m_menu
Definition:
driveroption.h:35
DriverOption::m_maximum
int32_t m_maximum
Definition:
driveroption.h:30
DriverOption::HUE
@ HUE
Definition:
driveroption.h:15
DriverOption::m_flags
uint32_t m_flags
Definition:
driveroption.h:34
DriverOption::menu_t
QMap< int, QString > menu_t
Definition:
driveroption.h:21
DriverOption::BITMASK
@ BITMASK
Definition:
driveroption.h:19
DriverOption::VOLUME
@ VOLUME
Definition:
driveroption.h:14
DriverOption::STRING
@ STRING
Definition:
driveroption.h:18
DriverOption::VIDEO_GOP_SIZE
@ VIDEO_GOP_SIZE
Definition:
driveroption.h:11
DriverOption::INTEGER
@ INTEGER
Definition:
driveroption.h:18
DriverOption::VIDEO_B_FRAMES
@ VIDEO_B_FRAMES
Definition:
driveroption.h:11
DriverOption::AUDIO_ENCODING
@ AUDIO_ENCODING
Definition:
driveroption.h:13
DriverOption::CONTRAST
@ CONTRAST
Definition:
driveroption.h:15
Generated on Mon Nov 25 2024 03:16:07 for MythTV by
1.8.17