MythTV  master
Macros | Typedefs | Enumerations | Functions | Variables
programtypes.h File Reference
#include <cstdint>
#include <deque>
#include <QString>
#include <QMap>
#include <QHash>
#include <QtCore>
#include "mythexp.h"
#include "recordingtypes.h"
#include "programtypeflags.h"
Include dependency graph for programtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_FLAGS_ENUM
 

Typedefs

using frm_pos_map_t = QMap< long long, long long >
 Frame # -> File offset map. More...
 
using stringMarkMap = std::map< QString, MarkTypes >
 
using frm_dir_map_t = QMap< uint64_t, MarkTypes >
 Frame # -> Mark map. More...
 

Enumerations

enum  MarkTypes {
  MARK_INVALID = -9999, MARK_ALL = -100, MARK_UNSET = -10, MARK_TMP_CUT_END = -5,
  MARK_TMP_CUT_START = -4, MARK_UPDATED_CUT = -3, MARK_PLACEHOLDER = -2, MARK_CUT_END = 0,
  MARK_CUT_START = 1, MARK_BOOKMARK = 2, MARK_BLANK_FRAME = 3, MARK_COMM_START = 4,
  MARK_COMM_END = 5, MARK_GOP_START = 6, MARK_KEYFRAME = 7, MARK_SCENE_CHANGE = 8,
  MARK_GOP_BYFRAME = 9, MARK_ASPECT_1_1 = 10, MARK_ASPECT_4_3 = 11, MARK_ASPECT_16_9 = 12,
  MARK_ASPECT_2_21_1 = 13, MARK_ASPECT_CUSTOM = 14, MARK_SCAN_PROGRESSIVE = 15, MARK_VIDEO_WIDTH = 30,
  MARK_VIDEO_HEIGHT = 31, MARK_VIDEO_RATE = 32, MARK_DURATION_MS = 33, MARK_TOTAL_FRAMES = 34,
  MARK_UTIL_PROGSTART = 40, MARK_UTIL_LASTPLAYPOS = 41
}
 
enum  CommFlagStatus { COMM_FLAG_NOT_FLAGGED = 0, COMM_FLAG_DONE = 1, COMM_FLAG_PROCESSING = 2, COMM_FLAG_COMMFREE = 3 }
 
enum  SkipType {
  COMM_DETECT_COMMFREE = -2, COMM_DETECT_UNINIT = -1, COMM_DETECT_OFF = 0x00000000, COMM_DETECT_BLANK = 0x00000001,
  COMM_DETECT_BLANKS = COMM_DETECT_BLANK, COMM_DETECT_SCENE = 0x00000002, COMM_DETECT_LOGO = 0x00000004, COMM_DETECT_BLANK_SCENE = (COMM_DETECT_BLANKS | COMM_DETECT_SCENE),
  COMM_DETECT_ALL, COMM_DETECT_2 = 0x00000100, COMM_DETECT_2_LOGO = COMM_DETECT_2 | COMM_DETECT_LOGO, COMM_DETECT_2_BLANK = COMM_DETECT_2 | COMM_DETECT_BLANKS,
  COMM_DETECT_2_SCENE = COMM_DETECT_2 | COMM_DETECT_SCENE, COMM_DETECT_2_ALL = (COMM_DETECT_2_LOGO | COMM_DETECT_2_BLANK), COMM_DETECT_PREPOSTROLL = 0x00000200, COMM_DETECT_PREPOSTROLL_ALL
}
 This is used as a bitmask. More...
 
enum  TranscodingStatus { TRANSCODING_NOT_TRANSCODED = 0, TRANSCODING_COMPLETE = 1, TRANSCODING_RUNNING = 2 }
 
enum  ProgramInfoType {
  kProgramInfoTypeRecording = 0, kProgramInfoTypeVideoFile, kProgramInfoTypeVideoDVD, kProgramInfoTypeVideoStreamingHTML,
  kProgramInfoTypeVideoStreamingRTSP, kProgramInfoTypeVideoBD
}
 
enum  AvailableStatusType {
  asAvailable = 0, asNotYetAvailable, asPendingDelete, asFileNotFound,
  asZeroByte, asDeleted
}
 
enum  WatchListStatus { wlDeleted = -4, wlEarlier = -3, wlWatched = -2, wlExpireOff = -1 }
 
enum  AutoExpireType { kDisableAutoExpire = 0, kNormalAutoExpire = 1, kDeletedAutoExpire = 9999, kLiveTVAutoExpire = 10000 }
 

Functions

MPUBLIC QString toString (MarkTypes type)
 
MPUBLIC MarkTypes markTypeFromString (const QString &str)
 
MPUBLIC QString SkipTypeToString (int flags)
 
MPUBLIC std::deque< int > GetPreferredSkipTypeCombinations (void)
 
MPUBLIC QString toString (AvailableStatusType status)
 

Variables

const MPUBLIC QString kPlayerInUseID
 
const MPUBLIC QString kPIPPlayerInUseID
 
const MPUBLIC QString kPBPPlayerInUseID
 
const MPUBLIC QString kImportRecorderInUseID
 
const MPUBLIC QString kRecorderInUseID
 
const MPUBLIC QString kFileTransferInUseID
 
const MPUBLIC QString kTruncatingDeleteInUseID
 
const MPUBLIC QString kFlaggerInUseID
 
const MPUBLIC QString kTranscoderInUseID
 
const MPUBLIC QString kPreviewGeneratorInUseID
 
const MPUBLIC QString kJobQueueInUseID
 
const MPUBLIC QString kCCExtractorInUseID
 
static stringMarkMap MarkTypeStrings
 

Macro Definition Documentation

◆ DEFINE_FLAGS_ENUM

#define DEFINE_FLAGS_ENUM

Definition at line 164 of file programtypes.h.

Typedef Documentation

◆ frm_pos_map_t

using frm_pos_map_t = QMap<long long, long long>

Frame # -> File offset map.

Definition at line 46 of file programtypes.h.

◆ stringMarkMap

using stringMarkMap = std::map<QString, MarkTypes>

Definition at line 83 of file programtypes.h.

◆ frm_dir_map_t

using frm_dir_map_t = QMap<uint64_t, MarkTypes>

Frame # -> Mark map.

Definition at line 119 of file programtypes.h.

Enumeration Type Documentation

◆ MarkTypes

enum MarkTypes
Enumerator
MARK_INVALID 
MARK_ALL 
MARK_UNSET 
MARK_TMP_CUT_END 
MARK_TMP_CUT_START 
MARK_UPDATED_CUT 
MARK_PLACEHOLDER 
MARK_CUT_END 
MARK_CUT_START 
MARK_BOOKMARK 
MARK_BLANK_FRAME 
MARK_COMM_START 
MARK_COMM_END 
MARK_GOP_START 
MARK_KEYFRAME 
MARK_SCENE_CHANGE 
MARK_GOP_BYFRAME 
MARK_ASPECT_1_1 

deprecated, it is only 1:1 sample aspect ratio

MARK_ASPECT_4_3 
MARK_ASPECT_16_9 
MARK_ASPECT_2_21_1 
MARK_ASPECT_CUSTOM 
MARK_SCAN_PROGRESSIVE 
MARK_VIDEO_WIDTH 
MARK_VIDEO_HEIGHT 
MARK_VIDEO_RATE 
MARK_DURATION_MS 
MARK_TOTAL_FRAMES 
MARK_UTIL_PROGSTART 
MARK_UTIL_LASTPLAYPOS 

Definition at line 48 of file programtypes.h.

◆ CommFlagStatus

Enumerator
COMM_FLAG_NOT_FLAGGED 
COMM_FLAG_DONE 
COMM_FLAG_PROCESSING 
COMM_FLAG_COMMFREE 

Definition at line 121 of file programtypes.h.

◆ SkipType

enum SkipType

This is used as a bitmask.

Enumerator
COMM_DETECT_COMMFREE 
COMM_DETECT_UNINIT 
COMM_DETECT_OFF 
COMM_DETECT_BLANK 
COMM_DETECT_BLANKS 
COMM_DETECT_SCENE 
COMM_DETECT_LOGO 
COMM_DETECT_BLANK_SCENE 
COMM_DETECT_ALL 
COMM_DETECT_2 
COMM_DETECT_2_LOGO 
COMM_DETECT_2_BLANK 
COMM_DETECT_2_SCENE 
COMM_DETECT_2_ALL 
COMM_DETECT_PREPOSTROLL 
COMM_DETECT_PREPOSTROLL_ALL 

Definition at line 129 of file programtypes.h.

◆ TranscodingStatus

Enumerator
TRANSCODING_NOT_TRANSCODED 
TRANSCODING_COMPLETE 
TRANSCODING_RUNNING 

Definition at line 158 of file programtypes.h.

◆ ProgramInfoType

Enumerator
kProgramInfoTypeRecording 
kProgramInfoTypeVideoFile 
kProgramInfoTypeVideoDVD 
kProgramInfoTypeVideoStreamingHTML 
kProgramInfoTypeVideoStreamingRTSP 
kProgramInfoTypeVideoBD 

Definition at line 168 of file programtypes.h.

◆ AvailableStatusType

Enumerator
asAvailable 
asNotYetAvailable 
asPendingDelete 
asFileNotFound 
asZeroByte 
asDeleted 

Definition at line 177 of file programtypes.h.

◆ WatchListStatus

Enumerator
wlDeleted 
wlEarlier 
wlWatched 
wlExpireOff 

Definition at line 187 of file programtypes.h.

◆ AutoExpireType

Enumerator
kDisableAutoExpire 
kNormalAutoExpire 
kDeletedAutoExpire 
kLiveTVAutoExpire 

Definition at line 194 of file programtypes.h.

Function Documentation

◆ toString() [1/2]

MPUBLIC QString toString ( MarkTypes  type)

Definition at line 26 of file programtypes.cpp.

Referenced by AdjustFill(), AspectOverride(), ImageManagerFe::CreateImport(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), DetectLetterbox::Detect(), LCDProcClient::dostdclock(), TV::DoTogglePictureAttribute(), Dvr::DupInToString(), Dvr::DupMethodToString(), RecordingExtender::findKnownSport(), IPTVTuningData::GetDeviceName(), MythMediaCodecContext::GetProfiles(), Dvr::GetRecordedMarkup(), AvFormatDecoder::GetTrackDesc(), ProgLister::HandleSelected(), DVBChannel::HasLock(), MythVideoOutputNull::Init(), VideoOutputD3D::Init(), MythVAAPIContext::InitialiseContext(), VideoOutputD3D::InputChanged(), MythVideoOutputGPU::InputChanged(), LetterboxingColour(), ProgDetails::loadPage(), RecExtEspnDataSource::loadPage(), UPnpCDSMusic::LoadTracks(), UPnpCDSVideo::LoadVideos(), TV::MenuItemDisplayPlayback(), MythPlayerVideoUI::PictureAttributeChanged(), TV::PictureAttributeHandleAction(), MythVAAPIContext::PostProcessFrame(), ClassicCommDetector::PrintFullMap(), RecordingExtender::processActiveRecordings(), RecordingExtender::processNewRecordings(), JobQueue::ProcessQueue(), Dvr::RecTypeToString(), ProgramRecPriority::remove(), AvFormatDecoder::ScanStreams(), MSqlQuery::seekDebug(), MythAirplayServer::SendResponse(), TV::SetAutoCommercialSkip(), MythVideoColourSpace::SetSupportedAttributes(), ProgLister::ShowDeleteRuleMenu(), MythVideoBounds::ToggleAdjustFill(), MythPlayerVideoUI::ToggleAdjustFill(), MythVideoBounds::ToggleAspectOverride(), RecordingRule::ToMap(), VirtualChannelMapSubtable::toStringXML(), ProgLister::UpdateButtonList(), UPnpCDS::UPnpCDS(), and DVBChannel::WaitForBackend().

◆ markTypeFromString()

MPUBLIC MarkTypes markTypeFromString ( const QString &  str)

Definition at line 65 of file programtypes.cpp.

Referenced by Dvr::SetRecordedMarkup().

◆ SkipTypeToString()

MPUBLIC QString SkipTypeToString ( int  flags)

Definition at line 88 of file programtypes.cpp.

Referenced by CommercialSkipMethod(), and CommMethod::CommMethod().

◆ GetPreferredSkipTypeCombinations()

MPUBLIC std::deque<int> GetPreferredSkipTypeCombinations ( void  )

Definition at line 126 of file programtypes.cpp.

Referenced by CommercialSkipMethod(), and CommMethod::CommMethod().

◆ toString() [2/2]

MPUBLIC QString toString ( AvailableStatusType  status)

Definition at line 73 of file programtypes.cpp.

Variable Documentation

◆ kPlayerInUseID

const MPUBLIC QString kPlayerInUseID

◆ kPIPPlayerInUseID

const MPUBLIC QString kPIPPlayerInUseID

Definition at line 14 of file programtypes.cpp.

Referenced by ProgramInfo::QueryIsInUse().

◆ kPBPPlayerInUseID

const MPUBLIC QString kPBPPlayerInUseID

Definition at line 15 of file programtypes.cpp.

Referenced by ProgramInfo::QueryIsInUse().

◆ kImportRecorderInUseID

const MPUBLIC QString kImportRecorderInUseID

Definition at line 16 of file programtypes.cpp.

Referenced by ProgramInfo::QueryIsInUse(), and ImportRecorder::run().

◆ kRecorderInUseID

const MPUBLIC QString kRecorderInUseID

◆ kFileTransferInUseID

const MPUBLIC QString kFileTransferInUseID

◆ kTruncatingDeleteInUseID

const MPUBLIC QString kTruncatingDeleteInUseID

Definition at line 19 of file programtypes.cpp.

Referenced by ProgramInfo::QueryIsInUse(), and MainServer::TruncateAndClose().

◆ kFlaggerInUseID

const MPUBLIC QString kFlaggerInUseID

◆ kTranscoderInUseID

const MPUBLIC QString kTranscoderInUseID

◆ kPreviewGeneratorInUseID

const MPUBLIC QString kPreviewGeneratorInUseID

◆ kJobQueueInUseID

const MPUBLIC QString kJobQueueInUseID

◆ kCCExtractorInUseID

const MPUBLIC QString kCCExtractorInUseID

Definition at line 24 of file programtypes.cpp.

Referenced by RunCCExtract().

◆ MarkTypeStrings

stringMarkMap MarkTypeStrings
static

Definition at line 84 of file programtypes.h.

Referenced by markTypeFromString().