MythTV  master
Macros | Enumerations | Functions
videoouttypes.h File Reference
#include <QPoint>
#include <QString>
#include <QObject>
Include dependency graph for videoouttypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ALL_PICTURE_ATTRIBUTES
 

Enumerations

enum  : std::uint16_t {
  kDisplayNone = 0x000, kDisplayNUVTeletextCaptions = 0x001, kDisplayTeletextCaptions = 0x002, kDisplayAVSubtitle = 0x004,
  kDisplayCC608 = 0x008, kDisplayCC708 = 0x010, kDisplayTextSubtitle = 0x020, kDisplayDVDButton = 0x040,
  kDisplayRawTextSubtitle = 0x080, kDisplayAllCaptions = 0x0FF, kDisplayTeletextMenu = 0x100, kDisplayAllTextCaptions = ~kDisplayDVDButton & kDisplayAllCaptions
}
 
enum  ZoomDirection : std::uint8_t {
  kZoomHome = 0, kZoomIn, kZoomOut, kZoomVerticalIn,
  kZoomVerticalOut, kZoomHorizontalIn, kZoomHorizontalOut, kZoomUp,
  kZoomDown, kZoomLeft, kZoomRight, kZoomAspectUp,
  kZoomAspectDown, kZoom_END
}
 
enum  AspectOverrideMode : std::int8_t {
  kAspect_Toggle = -1, kAspect_Off = 0, kAspect_4_3 = 1, kAspect_16_9 = 2,
  kAspect_14_9 = 3, kAspect_2_35_1 = 4, kAspect_END = 5
}
 
enum  AdjustFillMode : std::int8_t {
  kAdjustFill_Toggle = -1, kAdjustFill_Off = 0, kAdjustFill_Half = 1, kAdjustFill_Full = 2,
  kAdjustFill_HorizontalStretch = 3, kAdjustFill_VerticalStretch = 4, kAdjustFill_HorizontalFill = 5, kAdjustFill_VerticalFill = 6,
  kAdjustFill_END = 7, kAdjustFill_AutoDetect_DefaultOff = 8, kAdjustFill_AutoDetect_DefaultHalf = 9
}
 
enum  LetterBoxColour : std::int8_t { kLetterBoxColour_Toggle = -1, kLetterBoxColour_Black = 0, kLetterBoxColour_Gray25 = 1, kLetterBoxColour_END = 2 }
 
enum  FrameScanType : std::int8_t {
  kScan_Ignore = -1, kScan_Detect = 0, kScan_Interlaced = 1, kScan_Intr2ndField = 2,
  kScan_Progressive = 3
}
 
enum  PictureAttribute : std::uint8_t {
  kPictureAttribute_None = 0, kPictureAttribute_MIN = 0, kPictureAttribute_Brightness = 1, kPictureAttribute_Contrast = 2,
  kPictureAttribute_Colour = 3, kPictureAttribute_Hue = 4, kPictureAttribute_Range = 5, kPictureAttribute_Volume = 6,
  kPictureAttribute_MAX = 7
}
 
enum  PictureAttributeSupported : std::uint8_t {
  kPictureAttributeSupported_None = 0x00, kPictureAttributeSupported_Brightness = 0x01, kPictureAttributeSupported_Contrast = 0x02, kPictureAttributeSupported_Colour = 0x04,
  kPictureAttributeSupported_Hue = 0x08, kPictureAttributeSupported_Range = 0x10, kPictureAttributeSupported_Volume = 0x20
}
 
enum  StereoscopicMode : std::uint8_t { kStereoscopicModeAuto, kStereoscopicModeIgnore3D, kStereoscopicModeSideBySideDiscard, kStereoscopicModeTopAndBottomDiscard }
 
enum  PrimariesMode : std::uint8_t { PrimariesDisabled = 0, PrimariesRelaxed, PrimariesExact }
 
enum  VideoErrorState : std::uint8_t { kError_None = 0x00, kError_Unknown = 0x01 }
 

Functions

bool OptionalCaptionEnabled (uint Captions)
 Return whether any optional captions are enabled. More...
 
QString toUserString (PrimariesMode Mode)
 
QString toDBString (PrimariesMode Mode)
 
PrimariesMode toPrimariesMode (const QString &Mode)
 
QString StereoscopictoString (StereoscopicMode Mode)
 
bool is_interlaced (FrameScanType Scan)
 
bool is_progressive (FrameScanType Scan)
 
QString ScanTypeToUserString (FrameScanType Scan, bool Forced=false)
 
QString ScanTypeToString (FrameScanType Scan)
 
QString toString (AspectOverrideMode Aspectmode)
 
QString toString (LetterBoxColour LetterboxColour)
 
float get_aspect_override (AspectOverrideMode Aspectmode, float Original)
 
QString toString (AdjustFillMode Aspectmode)
 
QString toString (PictureAttribute PictureAttribute)
 
QString toDBString (PictureAttribute PictureAttribute)
 
QString toString (PictureAttributeSupported Supported)
 
PictureAttributeSupported toMask (PictureAttribute PictureAttribute)
 
PictureAttribute next_picattr (PictureAttributeSupported Supported, PictureAttribute Attribute)
 
QString GetZoomString (float HorizScale, float VertScale, QPoint Move)
 

Macro Definition Documentation

◆ ALL_PICTURE_ATTRIBUTES

#define ALL_PICTURE_ATTRIBUTES
Value:
kPictureAttributeSupported_Contrast | \
kPictureAttributeSupported_Colour | \
kPictureAttributeSupported_Hue | \
kPictureAttributeSupported_Range)

Definition at line 127 of file videoouttypes.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : std::uint16_t
Enumerator
kDisplayNone 
kDisplayNUVTeletextCaptions 
kDisplayTeletextCaptions 
kDisplayAVSubtitle 
kDisplayCC608 
kDisplayCC708 
kDisplayTextSubtitle 
kDisplayDVDButton 
kDisplayRawTextSubtitle 
kDisplayAllCaptions 
kDisplayTeletextMenu 
kDisplayAllTextCaptions 

Definition at line 10 of file videoouttypes.h.

◆ ZoomDirection

enum ZoomDirection : std::uint8_t
Enumerator
kZoomHome 
kZoomIn 
kZoomOut 
kZoomVerticalIn 
kZoomVerticalOut 
kZoomHorizontalIn 
kZoomHorizontalOut 
kZoomUp 
kZoomDown 
kZoomLeft 
kZoomRight 
kZoomAspectUp 
kZoomAspectDown 
kZoom_END 

Definition at line 42 of file videoouttypes.h.

◆ AspectOverrideMode

enum AspectOverrideMode : std::int8_t
Enumerator
kAspect_Toggle 
kAspect_Off 
kAspect_4_3 
kAspect_16_9 
kAspect_14_9 
kAspect_2_35_1 
kAspect_END 

Definition at line 60 of file videoouttypes.h.

◆ AdjustFillMode

enum AdjustFillMode : std::int8_t
Enumerator
kAdjustFill_Toggle 
kAdjustFill_Off 
kAdjustFill_Half 
kAdjustFill_Full 
kAdjustFill_HorizontalStretch 
kAdjustFill_VerticalStretch 
kAdjustFill_HorizontalFill 
kAdjustFill_VerticalFill 
kAdjustFill_END 
kAdjustFill_AutoDetect_DefaultOff 
kAdjustFill_AutoDetect_DefaultHalf 

Definition at line 71 of file videoouttypes.h.

◆ LetterBoxColour

enum LetterBoxColour : std::int8_t
Enumerator
kLetterBoxColour_Toggle 
kLetterBoxColour_Black 
kLetterBoxColour_Gray25 
kLetterBoxColour_END 

Definition at line 86 of file videoouttypes.h.

◆ FrameScanType

enum FrameScanType : std::int8_t
Enumerator
kScan_Ignore 
kScan_Detect 
kScan_Interlaced 
kScan_Intr2ndField 
kScan_Progressive 

Definition at line 94 of file videoouttypes.h.

◆ PictureAttribute

enum PictureAttribute : std::uint8_t
Enumerator
kPictureAttribute_None 
kPictureAttribute_MIN 
kPictureAttribute_Brightness 
kPictureAttribute_Contrast 
kPictureAttribute_Colour 
kPictureAttribute_Hue 
kPictureAttribute_Range 
kPictureAttribute_Volume 
kPictureAttribute_MAX 

Definition at line 103 of file videoouttypes.h.

◆ PictureAttributeSupported

enum PictureAttributeSupported : std::uint8_t
Enumerator
kPictureAttributeSupported_None 
kPictureAttributeSupported_Brightness 
kPictureAttributeSupported_Contrast 
kPictureAttributeSupported_Colour 
kPictureAttributeSupported_Hue 
kPictureAttributeSupported_Range 
kPictureAttributeSupported_Volume 

Definition at line 116 of file videoouttypes.h.

◆ StereoscopicMode

enum StereoscopicMode : std::uint8_t
Enumerator
kStereoscopicModeAuto 
kStereoscopicModeIgnore3D 
kStereoscopicModeSideBySideDiscard 
kStereoscopicModeTopAndBottomDiscard 

Definition at line 134 of file videoouttypes.h.

◆ PrimariesMode

enum PrimariesMode : std::uint8_t
Enumerator
PrimariesDisabled 
PrimariesRelaxed 
PrimariesExact 

Definition at line 142 of file videoouttypes.h.

◆ VideoErrorState

enum VideoErrorState : std::uint8_t
Enumerator
kError_None 
kError_Unknown 

Definition at line 182 of file videoouttypes.h.

Function Documentation

◆ OptionalCaptionEnabled()

bool OptionalCaptionEnabled ( uint  Captions)
inline

Return whether any optional captions are enabled.

Which currently means anything except DVD buttons.

Definition at line 30 of file videoouttypes.h.

Referenced by MythPlayerCaptionsUI::AdjustSubtitleZoom(), and TV::MenuItemDisplayPlayback().

◆ toUserString()

QString toUserString ( PrimariesMode  Mode)
inline

Definition at line 149 of file videoouttypes.h.

Referenced by ColourPrimaries().

◆ toDBString() [1/2]

QString toDBString ( PrimariesMode  Mode)
inline

◆ toPrimariesMode()

PrimariesMode toPrimariesMode ( const QString &  Mode)
inline

Definition at line 163 of file videoouttypes.h.

Referenced by MythVideoColourSpace::MythVideoColourSpace().

◆ StereoscopictoString()

QString StereoscopictoString ( StereoscopicMode  Mode)
inline

Definition at line 170 of file videoouttypes.h.

Referenced by MythVideoBounds::SetStereoOverride().

◆ is_interlaced()

bool is_interlaced ( FrameScanType  Scan)
inline

◆ is_progressive()

bool is_progressive ( FrameScanType  Scan)
inline

Definition at line 193 of file videoouttypes.h.

◆ ScanTypeToUserString()

QString ScanTypeToUserString ( FrameScanType  Scan,
bool  Forced = false 
)
inline

◆ ScanTypeToString()

QString ScanTypeToString ( FrameScanType  Scan)
inline

◆ toString() [1/5]

QString toString ( AspectOverrideMode  Aspectmode)
inline

Definition at line 223 of file videoouttypes.h.

◆ toString() [2/5]

QString toString ( LetterBoxColour  LetterboxColour)
inline

Definition at line 238 of file videoouttypes.h.

◆ get_aspect_override()

float get_aspect_override ( AspectOverrideMode  Aspectmode,
float  Original 
)
inline

Definition at line 250 of file videoouttypes.h.

Referenced by MythVideoBounds::SetVideoAspectRatio().

◆ toString() [3/5]

QString toString ( AdjustFillMode  Aspectmode)
inline

Definition at line 265 of file videoouttypes.h.

◆ toString() [4/5]

QString toString ( PictureAttribute  PictureAttribute)
inline

Definition at line 284 of file videoouttypes.h.

◆ toDBString() [2/2]

QString toDBString ( PictureAttribute  PictureAttribute)
inline

Definition at line 300 of file videoouttypes.h.

◆ toString() [5/5]

QString toString ( PictureAttributeSupported  Supported)
inline

Definition at line 316 of file videoouttypes.h.

◆ toMask()

PictureAttributeSupported toMask ( PictureAttribute  PictureAttribute)
inline

◆ next_picattr()

PictureAttribute next_picattr ( PictureAttributeSupported  Supported,
PictureAttribute  Attribute 
)
inline

Definition at line 350 of file videoouttypes.h.

Referenced by TV::NextPictureAdjustType().

◆ GetZoomString()

QString GetZoomString ( float  HorizScale,
float  VertScale,
QPoint  Move 
)
inline
kPictureAttributeSupported_Brightness
@ kPictureAttributeSupported_Brightness
Definition: videoouttypes.h:119
PictureAttributeSupported
PictureAttributeSupported
Definition: videoouttypes.h:116