MythTV  master
mythplayerstate.h
Go to the documentation of this file.
1 #ifndef MYTHPLAYERSTATE_H
2 #define MYTHPLAYERSTATE_H
3 
4 // MythTV
5 #include "mythtvexp.h"
6 #include "volumebase.h"
7 #include "videoouttypes.h"
8 #include "audiooutputsettings.h"
9 
10 // FFmpeg
11 extern "C" {
12 #include "libavcodec/avcodec.h"
13 }
14 
15 class OSD;
16 class AudioPlayer;
17 
19 {
20  public:
21  MythOverlayState() = default;
22  MythOverlayState(bool Browsing, bool Editing);
23 
24  bool m_browsing { false };
25  bool m_editing { false };
26 };
27 
29 
31 {
32  public:
33  MythAudioPlayerState() = default;
34 
35  int m_channels { -1 };
36  int m_origChannels { -1 };
37  AVCodecID m_codec { AV_CODEC_ID_NONE };
38  AudioFormat m_format { FORMAT_NONE };
39  int m_sampleRate { 44100 };
40  int m_codecProfile { 0 };
41  bool m_passthru { false };
42 };
43 
45 
47 {
48  public:
49  MythAudioState() = default;
50  MythAudioState(AudioPlayer* Player, int64_t Offset);
51 
52  bool m_hasAudioOut { true };
53  bool m_volumeControl { true };
54  uint m_volume { 0 };
55  MuteState m_muteState { kMuteOff };
56  bool m_canUpmix { false };
57  bool m_isUpmixing { false };
58  bool m_paused { false };
59  int64_t m_audioOffset { 0 };
60 };
61 
63 
65 {
66  public:
67  MythCaptionsState() = default;
68 
69  uint m_textDisplayMode { kDisplayNone };
70  bool m_externalTextSubs { false };
71  bool m_haveITV { false };
72 };
73 
75 
77 {
78  public:
79  MythNavigationState() = default;
80  MythNavigationState(int CurrentChapter, std::vector<int64_t> ChapterTimes,
81  int CurrentTitle, std::vector<int64_t> TitleDurations, std::vector<QString> TitleNames,
82  int CurrentAngle, std::vector<QString> AngleNames);
83 
84  int m_currentChapter { 0 };
85  std::vector<int64_t> m_chapterTimes { };
86  int m_currentTitle { 0 };
87  std::vector<int64_t> m_titleDurations { };
88  std::vector<QString> m_titleNames { };
89  int m_currentAngle { 0 };
90  std::vector<QString> m_angleNames { };
91 };
92 
94 
96 {
97  public:
98  MythVideoBoundsState() = default;
100  float HorizScale, float VertScale, QPoint Move,
101  StereoscopicMode StereoOverride);
102 
103  AdjustFillMode m_adjustFillMode { kAdjustFill_Off };
104  AspectOverrideMode m_aspectOverrideMode { kAspect_Off };
105  float m_manualHorizScale { 1.0F };
106  float m_manualVertScale { 1.0F };
107  QPoint m_manualMove { 0, 0 };
109 };
110 
112 
114 {
115  public:
116  MythVideoColourState() = default;
118  std::map<PictureAttribute,int> AttributeValues);
119  int GetValue(PictureAttribute Attribute);
120 
122  std::map<PictureAttribute,int> m_attributeValues;
123 };
124 
126 {
127  public:
128  MythVisualiserState() = default;
129  MythVisualiserState(bool Embedding, bool Visualising,
130  QString Name, QStringList Visualisers);
131 
132  bool m_canVisualise { false };
133  bool m_embedding { false };
134  bool m_visualising { false };
135  QString m_visualiserName { };
136  QStringList m_visualiserList { };
137 };
138 
140 
141 #endif
FORMAT_NONE
@ FORMAT_NONE
Definition: audiooutputsettings.h:26
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
PictureAttributeSupported
PictureAttributeSupported
Definition: videoouttypes.h:116
MythVideoColourState::m_attributeValues
std::map< PictureAttribute, int > m_attributeValues
Definition: mythplayerstate.h:122
AudioPlayer
Definition: audioplayer.h:24
kDisplayNone
@ kDisplayNone
Definition: videoouttypes.h:12
AdjustFill
static HostComboBoxSetting * AdjustFill()
Definition: globalsettings.cpp:2177
kAdjustFill_Off
@ kAdjustFill_Off
Definition: videoouttypes.h:74
mythtvexp.h
kAspect_Off
@ kAspect_Off
Definition: videoouttypes.h:63
kPictureAttributeSupported_None
@ kPictureAttributeSupported_None
Definition: videoouttypes.h:118
MuteState
MuteState
Definition: volumebase.h:6
MythVideoColourState
Definition: mythplayerstate.h:113
videoouttypes.h
AspectOverrideMode
AspectOverrideMode
Definition: videoouttypes.h:60
MythNavigationState
Definition: mythplayerstate.h:76
kMuteOff
@ kMuteOff
Definition: volumebase.h:7
uint
unsigned int uint
Definition: compat.h:141
kStereoscopicModeAuto
@ kStereoscopicModeAuto
Definition: videoouttypes.h:136
PictureAttribute
PictureAttribute
Definition: videoouttypes.h:103
volumebase.h
StereoscopicMode
StereoscopicMode
Definition: videoouttypes.h:134
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
AspectOverride
static HostComboBoxSetting * AspectOverride()
Definition: globalsettings.cpp:2162
Name
Definition: channelsettings.cpp:46
AdjustFillMode
AdjustFillMode
Definition: videoouttypes.h:71
MythAudioState
A simple wrapper around audio state used to signal changes in the current state.
Definition: mythplayerstate.h:46
MythOverlayState
A simpler than simple wrapper around OSD state.
Definition: mythplayerstate.h:18
Player
Definition: zmliveplayer.h:34
AudioFormat
AudioFormat
Definition: audiooutputsettings.h:25
MythVisualiserState
Definition: mythplayerstate.h:125
MythCaptionsState
Definition: mythplayerstate.h:64
audiooutputsettings.h
OSD
Definition: osd.h:94
MythVideoBoundsState
Definition: mythplayerstate.h:95
MythAudioPlayerState
Definition: mythplayerstate.h:30