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  {
  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 {
  kZoomHome = 0, kZoomIn, kZoomOut, kZoomVerticalIn,
  kZoomVerticalOut, kZoomHorizontalIn, kZoomHorizontalOut, kZoomUp,
  kZoomDown, kZoomLeft, kZoomRight, kZoomAspectUp,
  kZoomAspectDown, kZoom_END
}
 
enum  AspectOverrideMode {
  kAspect_Toggle = -1, kAspect_Off = 0, kAspect_4_3, kAspect_16_9,
  kAspect_14_9, kAspect_2_35_1, kAspect_END
}
 
enum  AdjustFillMode {
  kAdjustFill_Toggle = -1, kAdjustFill_Off = 0, kAdjustFill_Half, kAdjustFill_Full,
  kAdjustFill_HorizontalStretch, kAdjustFill_VerticalStretch, kAdjustFill_HorizontalFill, kAdjustFill_VerticalFill,
  kAdjustFill_END, kAdjustFill_AutoDetect_DefaultOff, kAdjustFill_AutoDetect_DefaultHalf
}
 
enum  LetterBoxColour { kLetterBoxColour_Toggle = -1, kLetterBoxColour_Black = 0, kLetterBoxColour_Gray25, kLetterBoxColour_END }
 
enum  FrameScanType {
  kScan_Ignore = -1, kScan_Detect = 0, kScan_Interlaced = 1, kScan_Intr2ndField = 2,
  kScan_Progressive = 3
}
 
enum  PictureAttribute {
  kPictureAttribute_None = 0, kPictureAttribute_MIN = 0, kPictureAttribute_Brightness = 1, kPictureAttribute_Contrast,
  kPictureAttribute_Colour, kPictureAttribute_Hue, kPictureAttribute_Range, kPictureAttribute_Volume,
  kPictureAttribute_MAX
}
 
enum  PictureAttributeSupported {
  kPictureAttributeSupported_None = 0x00, kPictureAttributeSupported_Brightness = 0x01, kPictureAttributeSupported_Contrast = 0x02, kPictureAttributeSupported_Colour = 0x04,
  kPictureAttributeSupported_Hue = 0x08, kPictureAttributeSupported_Range = 0x10, kPictureAttributeSupported_Volume = 0x20
}
 
enum  StereoscopicMode { kStereoscopicModeAuto, kStereoscopicModeIgnore3D, kStereoscopicModeSideBySideDiscard, kStereoscopicModeTopAndBottomDiscard }
 
enum  PrimariesMode { PrimariesDisabled = 0, PrimariesRelaxed, PrimariesExact }
 
enum  VideoErrorState { 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
Enumerator
kDisplayNone 
kDisplayNUVTeletextCaptions 
kDisplayTeletextCaptions 
kDisplayAVSubtitle 
kDisplayCC608 
kDisplayCC708 
kDisplayTextSubtitle 
kDisplayDVDButton 
kDisplayRawTextSubtitle 
kDisplayAllCaptions 
kDisplayTeletextMenu 
kDisplayAllTextCaptions 

Definition at line 10 of file videoouttypes.h.

◆ ZoomDirection

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

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

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

Enumerator
kLetterBoxColour_Toggle 
kLetterBoxColour_Black 
kLetterBoxColour_Gray25 
kLetterBoxColour_END 

Definition at line 86 of file videoouttypes.h.

◆ FrameScanType

Enumerator
kScan_Ignore 
kScan_Detect 
kScan_Interlaced 
kScan_Intr2ndField 
kScan_Progressive 

Definition at line 94 of file videoouttypes.h.

◆ PictureAttribute

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

Enumerator
kPictureAttributeSupported_None 
kPictureAttributeSupported_Brightness 
kPictureAttributeSupported_Contrast 
kPictureAttributeSupported_Colour 
kPictureAttributeSupported_Hue 
kPictureAttributeSupported_Range 
kPictureAttributeSupported_Volume 

Definition at line 116 of file videoouttypes.h.

◆ StereoscopicMode

Enumerator
kStereoscopicModeAuto 
kStereoscopicModeIgnore3D 
kStereoscopicModeSideBySideDiscard 
kStereoscopicModeTopAndBottomDiscard 

Definition at line 134 of file videoouttypes.h.

◆ PrimariesMode

Enumerator
PrimariesDisabled 
PrimariesRelaxed 
PrimariesExact 

Definition at line 142 of file videoouttypes.h.

◆ VideoErrorState

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::PlaybackMenuInit().

◆ 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
PictureAttributeSupported
PictureAttributeSupported
Definition: videoouttypes.h:116
kPictureAttributeSupported_Brightness
@ kPictureAttributeSupported_Brightness
Definition: videoouttypes.h:119