MythTV  0.28pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Typedefs | Enumerations | Functions | Variables
programtypes.h File Reference

Go to the source code of this file.

Typedefs

typedef QMap< uint64_t, uint64_t > frm_pos_map_t
 Frame # -> File offset map. More...
 
typedef QMap< uint64_t, MarkTypesfrm_dir_map_t
 Frame # -> Mark map. More...
 
typedef enum CommFlagStatuses CommFlagStatus
 
typedef enum SkipTypes SkipType
 This is used as a bitmask. More...
 
typedef enum TranscodingStatuses TranscodingStatus
 
typedef enum FlagMask ProgramFlag
 If you change these please update: mythplugins/mythweb/modules/tv/classes/Program.php mythtv/bindings/perl/MythTV/Program.pm (search for "Assign the program flags" in both) More...
 
typedef enum ProgramInfoType ProgramInfoType
 
typedef enum AudioProps AudioProperty
 if AudioProps changes, the audioprop column in program and recordedprogram has to changed accordingly More...
 
typedef enum VideoProps VideoProperty
 if VideoProps changes, the videoprop column in program and recordedprogram has to changed accordingly More...
 
typedef enum SubtitleTypes SubtitleType
 if SubtitleTypes changes, the subtitletypes column in program and recordedprogram has to changed accordingly More...
 
typedef enum RecStatusTypes RecStatusType
 
typedef enum AvailableStatusTypes AvailableStatusType
 
typedef enum AutoExpireTypes AutoExpireType
 

Enumerations

enum  MarkTypes {
  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_VIDEO_WIDTH = 30, MARK_VIDEO_HEIGHT = 31, MARK_VIDEO_RATE = 32,
  MARK_DURATION_MS = 33, MARK_TOTAL_FRAMES = 34
}
 
enum  CommFlagStatuses { COMM_FLAG_NOT_FLAGGED = 0, COMM_FLAG_DONE = 1, COMM_FLAG_PROCESSING = 2, COMM_FLAG_COMMFREE = 3 }
 
enum  SkipTypes {
  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  TranscodingStatuses { TRANSCODING_NOT_TRANSCODED = 0, TRANSCODING_COMPLETE = 1, TRANSCODING_RUNNING = 2 }
 
enum  FlagMask {
  FL_NONE = 0x00000000, FL_COMMFLAG = 0x00000001, FL_CUTLIST = 0x00000002, FL_AUTOEXP = 0x00000004,
  FL_EDITING = 0x00000008, FL_BOOKMARK = 0x00000010, FL_REALLYEDITING = 0x00000020, FL_COMMPROCESSING = 0x00000040,
  FL_DELETEPENDING = 0x00000080, FL_TRANSCODED = 0x00000100, FL_WATCHED = 0x00000200, FL_PRESERVED = 0x00000400,
  FL_CHANCOMMFREE = 0x00000800, FL_REPEAT = 0x00001000, FL_DUPLICATE = 0x00002000, FL_REACTIVATE = 0x00004000,
  FL_IGNOREBOOKMARK = 0x00008000, FL_TYPEMASK = 0x000F0000, FL_INUSERECORDING = 0x00100000, FL_INUSEPLAYING = 0x00200000,
  FL_INUSEOTHER = 0x00400000
}
 If you change these please update: mythplugins/mythweb/modules/tv/classes/Program.php mythtv/bindings/perl/MythTV/Program.pm (search for "Assign the program flags" in both) More...
 
enum  ProgramInfoType {
  kProgramInfoTypeRecording = 0, kProgramInfoTypeVideoFile, kProgramInfoTypeVideoDVD, kProgramInfoTypeVideoStreamingHTML,
  kProgramInfoTypeVideoStreamingRTSP, kProgramInfoTypeVideoBD
}
 
enum  AudioProps {
  AUD_UNKNOWN = 0x00, AUD_STEREO = 0x01, AUD_MONO = 0x02, AUD_SURROUND = 0x04,
  AUD_DOLBY = 0x08, AUD_HARDHEAR = 0x10, AUD_VISUALIMPAIR = 0x20
}
 if AudioProps changes, the audioprop column in program and recordedprogram has to changed accordingly More...
 
enum  VideoProps {
  VID_UNKNOWN = 0x00, VID_HDTV = 0x01, VID_WIDESCREEN = 0x02, VID_AVC = 0x04,
  VID_720 = 0x08, VID_1080 = 0x10, VID_DAMAGED = 0x20, VID_3DTV = 0x40
}
 if VideoProps changes, the videoprop column in program and recordedprogram has to changed accordingly More...
 
enum  SubtitleTypes {
  SUB_UNKNOWN = 0x00, SUB_HARDHEAR = 0x01, SUB_NORMAL = 0x02, SUB_ONSCREEN = 0x04,
  SUB_SIGNED = 0x08
}
 if SubtitleTypes changes, the subtitletypes column in program and recordedprogram has to changed accordingly More...
 
enum  RecStatusTypes {
  rsOtherRecording = -13, rsOtherTuning = -12, rsMissedFuture = -11, rsTuning = -10,
  rsFailed = -9, rsTunerBusy = -8, rsLowDiskSpace = -7, rsCancelled = -6,
  rsMissed = -5, rsAborted = -4, rsRecorded = -3, rsRecording = -2,
  rsWillRecord = -1, rsUnknown = 0, rsDontRecord = 1, rsPreviousRecording = 2,
  rsCurrentRecording = 3, rsEarlierShowing = 4, rsTooManyRecordings = 5, rsNotListed = 6,
  rsConflict = 7, rsLaterShowing = 8, rsRepeat = 9, rsInactive = 10,
  rsNeverRecord = 11, rsOffLine = 12, rsOtherShowing = 13
}
 
enum  AvailableStatusTypes {
  asAvailable = 0, asNotYetAvailable, asPendingDelete, asFileNotFound,
  asZeroByte, asDeleted
}
 
enum  WatchListStatus { wlDeleted = -4, wlEarlier = -3, wlWatched = -2, wlExpireOff = -1 }
 
enum  AutoExpireTypes { kDisableAutoExpire = 0, kNormalAutoExpire = 1, kDeletedAutoExpire = 9999, kLiveTVAutoExpire = 10000 }
 

Functions

MPUBLIC QString toString (MarkTypes type)
 
MPUBLIC QString SkipTypeToString (int)
 
MPUBLIC deque< intGetPreferredSkipTypeCombinations (void)
 
MPUBLIC QString toUIState (RecStatusType)
 
MPUBLIC QString toString (RecStatusType, uint id)
 Converts "recstatus" into a short (unreadable) string. More...
 
MPUBLIC QString toString (RecStatusType, RecordingType type=kNotRecording)
 Converts "recstatus" into a human readable string. More...
 
MPUBLIC QString toDescription (RecStatusType, RecordingType, const QDateTime &recstartts)
 Converts "recstatus" into a long human readable description. More...
 
MPUBLIC QString toString (AvailableStatusType)
 

Variables

MPUBLIC const char * kPlayerInUseID
 
MPUBLIC const char * kPIPPlayerInUseID
 
MPUBLIC const char * kPBPPlayerInUseID
 
MPUBLIC const char * kImportRecorderInUseID
 
MPUBLIC const char * kRecorderInUseID
 
MPUBLIC const char * kFileTransferInUseID
 
MPUBLIC const char * kTruncatingDeleteInUseID
 
MPUBLIC const char * kFlaggerInUseID
 
MPUBLIC const char * kTranscoderInUseID
 
MPUBLIC const char * kPreviewGeneratorInUseID
 
MPUBLIC const char * kJobQueueInUseID
 
MPUBLIC const char * kCCExtractorInUseID
 

Typedef Documentation

typedef QMap<uint64_t, uint64_t> frm_pos_map_t

Frame # -> File offset map.

Definition at line 48 of file programtypes.h.

typedef QMap<uint64_t, MarkTypes> frm_dir_map_t

Frame # -> Mark map.

Definition at line 81 of file programtypes.h.

typedef enum SkipTypes SkipType

This is used as a bitmask.

typedef enum FlagMask ProgramFlag

If you change these please update: mythplugins/mythweb/modules/tv/classes/Program.php mythtv/bindings/perl/MythTV/Program.pm (search for "Assign the program flags" in both)

typedef enum AudioProps AudioProperty

if AudioProps changes, the audioprop column in program and recordedprogram has to changed accordingly

typedef enum VideoProps VideoProperty

if VideoProps changes, the videoprop column in program and recordedprogram has to changed accordingly

if SubtitleTypes changes, the subtitletypes column in program and recordedprogram has to changed accordingly

Enumeration Type Documentation

enum MarkTypes
Enumerator
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 
MARK_ASPECT_4_3 
MARK_ASPECT_16_9 
MARK_ASPECT_2_21_1 
MARK_ASPECT_CUSTOM 
MARK_VIDEO_WIDTH 
MARK_VIDEO_HEIGHT 
MARK_VIDEO_RATE 
MARK_DURATION_MS 
MARK_TOTAL_FRAMES 

Definition at line 50 of file programtypes.h.

Enumerator
COMM_FLAG_NOT_FLAGGED 
COMM_FLAG_DONE 
COMM_FLAG_PROCESSING 
COMM_FLAG_COMMFREE 

Definition at line 83 of file programtypes.h.

enum SkipTypes

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 91 of file programtypes.h.

Enumerator
TRANSCODING_NOT_TRANSCODED 
TRANSCODING_COMPLETE 
TRANSCODING_RUNNING 

Definition at line 120 of file programtypes.h.

enum FlagMask

If you change these please update: mythplugins/mythweb/modules/tv/classes/Program.php mythtv/bindings/perl/MythTV/Program.pm (search for "Assign the program flags" in both)

Enumerator
FL_NONE 
FL_COMMFLAG 
FL_CUTLIST 
FL_AUTOEXP 
FL_EDITING 
FL_BOOKMARK 
FL_REALLYEDITING 
FL_COMMPROCESSING 
FL_DELETEPENDING 
FL_TRANSCODED 
FL_WATCHED 
FL_PRESERVED 
FL_CHANCOMMFREE 
FL_REPEAT 
FL_DUPLICATE 
FL_REACTIVATE 
FL_IGNOREBOOKMARK 
FL_TYPEMASK 
FL_INUSERECORDING 
FL_INUSEPLAYING 
FL_INUSEOTHER 

Definition at line 130 of file programtypes.h.

Enumerator
kProgramInfoTypeRecording 
kProgramInfoTypeVideoFile 
kProgramInfoTypeVideoDVD 
kProgramInfoTypeVideoStreamingHTML 
kProgramInfoTypeVideoStreamingRTSP 
kProgramInfoTypeVideoBD 

Definition at line 155 of file programtypes.h.

enum AudioProps

if AudioProps changes, the audioprop column in program and recordedprogram has to changed accordingly

Enumerator
AUD_UNKNOWN 
AUD_STEREO 
AUD_MONO 
AUD_SURROUND 
AUD_DOLBY 
AUD_HARDHEAR 
AUD_VISUALIMPAIR 

Definition at line 166 of file programtypes.h.

enum VideoProps

if VideoProps changes, the videoprop column in program and recordedprogram has to changed accordingly

Enumerator
VID_UNKNOWN 
VID_HDTV 
VID_WIDESCREEN 
VID_AVC 
VID_720 
VID_1080 
VID_DAMAGED 
VID_3DTV 

Definition at line 181 of file programtypes.h.

if SubtitleTypes changes, the subtitletypes column in program and recordedprogram has to changed accordingly

Enumerator
SUB_UNKNOWN 
SUB_HARDHEAR 
SUB_NORMAL 
SUB_ONSCREEN 
SUB_SIGNED 

Definition at line 198 of file programtypes.h.

Enumerator
rsOtherRecording 
rsOtherTuning 
rsMissedFuture 
rsTuning 
rsFailed 
rsTunerBusy 
rsLowDiskSpace 
rsCancelled 
rsMissed 
rsAborted 
rsRecorded 
rsRecording 
rsWillRecord 
rsUnknown 
rsDontRecord 
rsPreviousRecording 
rsCurrentRecording 
rsEarlierShowing 
rsTooManyRecordings 
rsNotListed 
rsConflict 
rsLaterShowing 
rsRepeat 
rsInactive 
rsNeverRecord 
rsOffLine 
rsOtherShowing 

Definition at line 210 of file programtypes.h.

Enumerator
asAvailable 
asNotYetAvailable 
asPendingDelete 
asFileNotFound 
asZeroByte 
asDeleted 

Definition at line 245 of file programtypes.h.

Enumerator
wlDeleted 
wlEarlier 
wlWatched 
wlExpireOff 

Definition at line 255 of file programtypes.h.

Enumerator
kDisableAutoExpire 
kNormalAutoExpire 
kDeletedAutoExpire 
kLiveTVAutoExpire 

Definition at line 262 of file programtypes.h.

Function Documentation

MPUBLIC QString toString ( MarkTypes  type)

Definition at line 22 of file programtypes.cpp.

Referenced by TV::ActiveHandleAction(), UPnpCDSMusic::AddItem(), AdjustFill(), AspectOverride(), HTTPRequest::BuildHeader(), PlayerContext::CreatePIPWindow(), ProgramData::DeleteOverlaps(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), TV::DoChangePictureAttribute(), StatusBox::doScheduleStatus(), LCDProcClient::dostdclock(), TV::DoTogglePictureAttribute(), Dvr::DupInToString(), Dvr::DupMethodToString(), HttpStatus::FillStatusXML(), TVRec::FinishedRecording(), IPTVTuningData::GetDeviceName(), MythAirplayServer::GetPlayerStatus(), GetSettingValueList(), AvFormatDecoder::GetTrackDesc(), Scheduler::HandleRecordingStatusChange(), ProgLister::HandleSelected(), VideoOutputNull::Init(), VideoOutputD3D::Init(), VAAPIContext::InitProfiles(), VideoOutputXv::InitSetupBuffers(), VideoOutputNullVAAPI::InputChanged(), VideoOutputOpenGLVAAPI::InputChanged(), VideoOutputOpenGL::InputChanged(), VideoOutputD3D::InputChanged(), VideoOutputVDPAU::InputChanged(), VideoOutputNullVDPAU::InputChanged(), VideoOutputXv::InputChanged(), ChannelImporter::InsertChannels(), KeyGrabPopupBox::keyPressEvent(), LetterboxingColour(), NetworkControl::listRecordings(), NetworkControl::listSchedule(), ProgDetails::loadPage(), TV::MenuItemDisplayPlayback(), TV::OSDDialogEvent(), PIPLocationComboBox(), ClassicCommDetector::PrintFullMap(), Scheduler::PrintRec(), JobQueue::ProcessQueue(), Dvr::RecStatusToString(), Dvr::RecTypeToString(), ProgramRecPriority::remove(), AvFormatDecoder::ScanStreams(), MythAirplayServer::SendResponse(), TV::SetAutoCommercialSkip(), TVRec::SetRecordingStatus(), VideoColourSpace::SetSupportedAttributes(), ProgLister::ShowDeleteRuleMenu(), TV::ToggleAdjustFill(), TV::ToggleAspectOverride(), RecordingRule::ToMap(), ComponentNameDescriptor::toString(), VirtualChannelMapSubtable::toStringXML(), ProgLister::UpdateButtonList(), ProgramRecPriority::updateInfo(), ProgramRecPriority::UpdateList(), Scheduler::UpdateRecStatus(), ViewScheduleDiff::updateUIList(), and wait_for_backend().

MPUBLIC QString SkipTypeToString ( int  )

Definition at line 5434 of file programinfo.cpp.

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

MPUBLIC deque<int> GetPreferredSkipTypeCombinations ( void  )

Definition at line 5472 of file programinfo.cpp.

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

MPUBLIC QString toUIState ( RecStatusType  )
MPUBLIC QString toString ( RecStatusType  ,
uint  id 
)

Converts "recstatus" into a short (unreadable) string.

Definition at line 85 of file programtypes.cpp.

MPUBLIC QString toString ( RecStatusType  ,
RecordingType  type = kNotRecording 
)

Converts "recstatus" into a human readable string.

Definition at line 176 of file programtypes.cpp.

MPUBLIC QString toDescription ( RecStatusType  ,
RecordingType  ,
const QDateTime &  recstartts 
)
MPUBLIC QString toString ( AvailableStatusType  )

Definition at line 377 of file programtypes.cpp.

Variable Documentation

MPUBLIC const char* kPlayerInUseID
MPUBLIC const char* kPIPPlayerInUseID

Definition at line 10 of file programtypes.cpp.

Referenced by TV::CreatePIP(), and ProgramInfo::QueryIsInUse().

MPUBLIC const char* kPBPPlayerInUseID

Definition at line 11 of file programtypes.cpp.

Referenced by TV::CreatePBP(), and ProgramInfo::QueryIsInUse().

MPUBLIC const char* kImportRecorderInUseID

Definition at line 12 of file programtypes.cpp.

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

MPUBLIC const char* kRecorderInUseID
MPUBLIC const char* kFileTransferInUseID
MPUBLIC const char* kTruncatingDeleteInUseID

Definition at line 15 of file programtypes.cpp.

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

MPUBLIC const char* kFlaggerInUseID
MPUBLIC const char* kTranscoderInUseID
MPUBLIC const char* kPreviewGeneratorInUseID
MPUBLIC const char* kJobQueueInUseID
MPUBLIC const char* kCCExtractorInUseID

Definition at line 20 of file programtypes.cpp.

Referenced by RunCCExtract().