#include <remoteencoder.h>
Definition at line 15 of file remoteencoder.h.
Public Member Functions | |
| RemoteEncoder (int num, const QString &host, short port) | |
| ~RemoteEncoder (void) | |
| void | Setup (void) |
| bool | IsValidRecorder (void) |
| int | GetRecorderNumber (void) |
| ProgramInfo * | GetRecording (void) |
| bool | IsRecording (void) |
| float | GetFrameRate (void) |
| Returns recordering frame rate set by nvr. | |
| long long | GetFramesWritten (void) |
| Returns number of frames written to disk by TVRec's RecorderBase instance. | |
| long long | GetCachedFramesWritten (void) const |
| Return value last returned by GetFramesWritten(). | |
| long long | GetFilePosition (void) |
| Returns total number of bytes written by TVRec's RingBuffer. | |
| long long | GetFreeDiskSpace () |
| long long | GetMaxBitrate () |
| long long | GetKeyframePosition (long long desired) |
| Returns byte position in RingBuffer of a keyframe. | |
| void | FillPositionMap (int start, int end, QMap< long long, long long > &positionMap) |
| void | StopPlaying (void) |
| Tells TVRec to stop streaming a recording to the frontend. | |
| void | SpawnLiveTV (QString chainid, bool pip, QString startchan) |
| Tells TVRec to Spawn a "Live TV" recorder. | |
| void | StopLiveTV (void) |
| Tells TVRec to stop a "Live TV" recorder. | |
| void | PauseRecorder (void) |
| Tells TVRec to pause a recorder, used for channel and input changes. | |
| void | FinishRecording (void) |
| void | FrontendReady (void) |
| void | CancelNextRecording (bool cancel) |
| void | SetLiveRecording (bool recording) |
| QString | GetInput (void) |
| QString | SetInput (QString) |
| int | GetPictureAttribute (PictureAttribute attr) |
| int | ChangePictureAttribute (PictureAdjustType type, PictureAttribute attr, bool up) |
| Changes brightness/contrast/colour/hue of a recording. | |
| void | ChangeChannel (int channeldirection) |
| void | ChangeDeinterlacer (int deint_mode) |
| void | ToggleChannelFavorite (void) |
| void | SetChannel (QString channel) |
| int | SetSignalMonitoringRate (int msec, bool notifyFrontend=true) |
| Sets the signal monitoring rate. | |
| uint | GetSignalLockTimeout (QString input) |
| bool | CheckChannel (QString channel) |
| Checks if named channel exists on current tuner. | |
| bool | ShouldSwitchToAnotherCard (QString channelid) |
| Checks if named channel exists on current tuner, or another tuner. | |
| bool | CheckChannelPrefix (const QString &, uint &, bool &, QString &) |
| Checks a prefix against the channels in the DB. | |
| void | GetNextProgram (int direction, QString &title, QString &subtitle, QString &desc, QString &category, QString &starttime, QString &endtime, QString &callsign, QString &iconpath, QString &channelname, QString &chanid, QString &seriesid, QString &programid) |
| Returns information about the program that would be seen if we changed the channel using ChangeChannel(int) with "direction". | |
| void | GetChannelInfo (QMap< QString, QString > &infoMap, uint chanid=0) |
| bool | SetChannelInfo (const QMap< QString, QString > &infoMap) |
| bool | GetErrorStatus (void) |
Private Member Functions | |
| MythSocket * | openControlSocket (const QString &host, short port) |
| void | SendReceiveStringList (QStringList &strlist) |
Private Attributes | |
| int | recordernum |
| MythSocket * | controlSock |
| QMutex | lock |
| QString | remotehost |
| short | remoteport |
| QString | lastchannel |
| QString | lastinput |
| bool | backendError |
| long long | cachedFramesWritten |
| QMap< QString, uint > | cachedTimeout |
| RemoteEncoder::RemoteEncoder | ( | int | num, | |
| const QString & | host, | |||
| short | port | |||
| ) |
Definition at line 15 of file remoteencoder.cpp.
| RemoteEncoder::~RemoteEncoder | ( | void | ) |
Definition at line 22 of file remoteencoder.cpp.
| void RemoteEncoder::Setup | ( | void | ) |
Definition at line 28 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), TV::RunTV(), TV::SwitchCards(), and TV::TogglePIPView().
| bool RemoteEncoder::IsValidRecorder | ( | void | ) |
Definition at line 36 of file remoteencoder.cpp.
Referenced by NuppelVideoPlayer::CalcMaxFFTime(), NuppelVideoPlayer::calcSliderPos(), TV::ChangeChannel(), NuppelVideoPlayer::GetStatusbarPos(), TV::HandleStateChange(), NuppelVideoPlayer::IsNearEnd(), TV::PlayFromRecorder(), DecoderBase::PosMapFromEnc(), TV::RequestNextRecorder(), TV::SwitchCards(), and TV::TogglePIPView().
| int RemoteEncoder::GetRecorderNumber | ( | void | ) |
Definition at line 41 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel(), TV::customEvent(), TV::DeleteRecorder(), TV::FillMenuLiveTV(), FlagCommercials(), TV::GetLastRecorderNum(), TV::IsTunable(), TV::ITVRestart(), TV::SwitchCards(), TV::SwitchInputs(), TV::SwitchSource(), TV::ToggleInputs(), TV::UpdateOSDAskAllowDialog(), and TV::UpdateOSDInput().
| ProgramInfo * RemoteEncoder::GetRecording | ( | void | ) |
| bool RemoteEncoder::IsRecording | ( | void | ) |
Definition at line 92 of file remoteencoder.cpp.
Referenced by TV::RunTV(), and TV::StartRecorder().
| float RemoteEncoder::GetFrameRate | ( | void | ) |
Returns recordering frame rate set by nvr.
Definition at line 121 of file remoteencoder.cpp.
Referenced by TV::StartRecorder(), and TV::SwapPIP().
| long long RemoteEncoder::GetFramesWritten | ( | void | ) |
Returns number of frames written to disk by TVRec's RecorderBase instance.
Definition at line 139 of file remoteencoder.cpp.
Referenced by NuppelVideoPlayer::CalcMaxFFTime(), NuppelVideoPlayer::calcSliderPos(), NuppelVideoPlayer::GetSecondsBehind(), NuppelVideoPlayer::GetStatusbarPos(), NuppelVideoPlayer::IsNearEnd(), and DecoderBase::PosMapFromEnc().
| long long RemoteEncoder::GetCachedFramesWritten | ( | void | ) | const [inline] |
Return value last returned by GetFramesWritten().
Definition at line 30 of file remoteencoder.h.
Referenced by NuppelVideoPlayer::IsNearEnd().
| long long RemoteEncoder::GetFilePosition | ( | void | ) |
Returns total number of bytes written by TVRec's RingBuffer.
Definition at line 157 of file remoteencoder.cpp.
| long long RemoteEncoder::GetFreeDiskSpace | ( | ) |
| long long RemoteEncoder::GetMaxBitrate | ( | void | ) |
Definition at line 173 of file remoteencoder.cpp.
| long long RemoteEncoder::GetKeyframePosition | ( | long long | desired | ) |
Returns byte position in RingBuffer of a keyframe.
Definition at line 192 of file remoteencoder.cpp.
| void RemoteEncoder::FillPositionMap | ( | int | start, | |
| int | end, | |||
| QMap< long long, long long > & | positionMap | |||
| ) |
| void RemoteEncoder::StopPlaying | ( | void | ) |
Tells TVRec to stop streaming a recording to the frontend.
Definition at line 250 of file remoteencoder.cpp.
| void RemoteEncoder::SpawnLiveTV | ( | QString | chainid, | |
| bool | pip, | |||
| QString | startchan | |||
| ) |
Tells TVRec to Spawn a "Live TV" recorder.
Definition at line 263 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), TV::SwitchCards(), and TV::TogglePIPView().
| void RemoteEncoder::StopLiveTV | ( | void | ) |
Tells TVRec to stop a "Live TV" recorder.
This only works on local recorders.
Definition at line 279 of file remoteencoder.cpp.
Referenced by TV::StopStuff(), TV::SwitchCards(), and TV::TogglePIPView().
| void RemoteEncoder::PauseRecorder | ( | void | ) |
Tells TVRec to pause a recorder, used for channel and input changes.
Definition at line 292 of file remoteencoder.cpp.
Referenced by TV::PauseLiveTV().
| void RemoteEncoder::FinishRecording | ( | void | ) |
| void RemoteEncoder::FrontendReady | ( | void | ) |
| void RemoteEncoder::CancelNextRecording | ( | bool | cancel | ) |
| void RemoteEncoder::SetLiveRecording | ( | bool | recording | ) |
| QString RemoteEncoder::GetInput | ( | void | ) |
Definition at line 319 of file remoteencoder.cpp.
Referenced by TV::PauseLiveTV(), TV::ProcessKeypress(), TV::ToggleInputs(), and TV::UpdateOSDTimeoutMessage().
| QString RemoteEncoder::SetInput | ( | QString | input | ) |
| int RemoteEncoder::GetPictureAttribute | ( | PictureAttribute | attr | ) |
| int RemoteEncoder::ChangePictureAttribute | ( | PictureAdjustType | type, | |
| PictureAttribute | attr, | |||
| bool | up | |||
| ) |
Changes brightness/contrast/colour/hue of a recording.
Note: In practice this only works with frame grabbing recorders.
Definition at line 471 of file remoteencoder.cpp.
Referenced by TV::DoChangePictureAttribute().
| void RemoteEncoder::ChangeChannel | ( | int | channeldirection | ) |
| void RemoteEncoder::ChangeDeinterlacer | ( | int | deint_mode | ) |
Definition at line 496 of file remoteencoder.cpp.
| void RemoteEncoder::ToggleChannelFavorite | ( | void | ) |
| void RemoteEncoder::SetChannel | ( | QString | channel | ) |
| int RemoteEncoder::SetSignalMonitoringRate | ( | int | msec, | |
| bool | notifyFrontend = true | |||
| ) |
Sets the signal monitoring rate.
This will actually call SetupSignalMonitor() and TeardownSignalMonitor(bool) as needed, so it can be used directly, without worrying about the SignalMonitor instance.
| rate | The update rate to use in milliseconds, use 0 to disable. | |
| notifyFrontend | If true, SIGNAL messages will be sent to the frontend using this recorder. |
Definition at line 395 of file remoteencoder.cpp.
Referenced by TV::ProcessKeypress().
| uint RemoteEncoder::GetSignalLockTimeout | ( | QString | input | ) |
Definition at line 408 of file remoteencoder.cpp.
Referenced by TV::PauseLiveTV(), TV::ProcessKeypress(), and TV::UpdateOSDTimeoutMessage().
| bool RemoteEncoder::CheckChannel | ( | QString | channel | ) |
Checks if named channel exists on current tuner.
| channel | Channel to verify against current tuner. |
Definition at line 514 of file remoteencoder.cpp.
Referenced by TV::BrowseChannel(), and TV::ChangeChannel().
| bool RemoteEncoder::ShouldSwitchToAnotherCard | ( | QString | channelid | ) |
Checks if named channel exists on current tuner, or another tuner.
This only works on local recorders.
| channelid | channel to verify against tuners. |
Definition at line 535 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel().
| bool RemoteEncoder::CheckChannelPrefix | ( | const QString & | prefix, | |
| uint & | is_complete_valid_channel_on_rec, | |||
| bool & | is_extra_char_useful, | |||
| QString & | needed_spacer | |||
| ) |
Checks a prefix against the channels in the DB.
Definition at line 556 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel(), and TV::ProcessSmartChannel().
| void RemoteEncoder::GetNextProgram | ( | int | direction, | |
| QString & | title, | |||
| QString & | subtitle, | |||
| QString & | desc, | |||
| QString & | category, | |||
| QString & | starttime, | |||
| QString & | endtime, | |||
| QString & | callsign, | |||
| QString & | iconpath, | |||
| QString & | channelname, | |||
| QString & | chanid, | |||
| QString & | seriesid, | |||
| QString & | programid | |||
| ) |
Returns information about the program that would be seen if we changed the channel using ChangeChannel(int) with "direction".
Definition at line 595 of file remoteencoder.cpp.
Referenced by TV::GetNextProgram().
| void RemoteEncoder::GetChannelInfo | ( | QMap< QString, QString > & | infoMap, | |
| uint | chanid = 0 | |||
| ) |
Definition at line 626 of file remoteencoder.cpp.
Referenced by TV::FillMenuLiveTV(), TV::StartChannelEditMode(), and TV::SwitchSource().
| bool RemoteEncoder::SetChannelInfo | ( | const QMap< QString, QString > & | infoMap | ) |
| bool RemoteEncoder::GetErrorStatus | ( | void | ) | [inline] |
Definition at line 68 of file remoteencoder.h.
Referenced by TV::RunTV(), and NuppelVideoPlayer::StartPlaying().
| MythSocket * RemoteEncoder::openControlSocket | ( | const QString & | host, | |
| short | port | |||
| ) | [private] |
| void RemoteEncoder::SendReceiveStringList | ( | QStringList & | strlist | ) | [private] |
Definition at line 46 of file remoteencoder.cpp.
Referenced by CancelNextRecording(), ChangeChannel(), ChangeDeinterlacer(), ChangePictureAttribute(), CheckChannel(), CheckChannelPrefix(), FillPositionMap(), FinishRecording(), FrontendReady(), GetChannelInfo(), GetFilePosition(), GetFrameRate(), GetFramesWritten(), GetInput(), GetKeyframePosition(), GetMaxBitrate(), GetNextProgram(), GetPictureAttribute(), GetRecording(), IsRecording(), PauseRecorder(), SetChannel(), SetChannelInfo(), SetInput(), SetLiveRecording(), SetSignalMonitoringRate(), ShouldSwitchToAnotherCard(), SpawnLiveTV(), StopLiveTV(), StopPlaying(), and ToggleChannelFavorite().
int RemoteEncoder::recordernum [private] |
Definition at line 75 of file remoteencoder.h.
Referenced by CancelNextRecording(), ChangeChannel(), ChangeDeinterlacer(), ChangePictureAttribute(), CheckChannel(), CheckChannelPrefix(), FillPositionMap(), FinishRecording(), FrontendReady(), GetChannelInfo(), GetFilePosition(), GetFrameRate(), GetFramesWritten(), GetInput(), GetKeyframePosition(), GetMaxBitrate(), GetNextProgram(), GetPictureAttribute(), GetRecorderNumber(), GetRecording(), GetSignalLockTimeout(), IsRecording(), IsValidRecorder(), PauseRecorder(), SetChannel(), SetInput(), SetLiveRecording(), SetSignalMonitoringRate(), ShouldSwitchToAnotherCard(), SpawnLiveTV(), StopLiveTV(), StopPlaying(), and ToggleChannelFavorite().
MythSocket* RemoteEncoder::controlSock [private] |
Definition at line 77 of file remoteencoder.h.
Referenced by SendReceiveStringList(), Setup(), and ~RemoteEncoder().
QMutex RemoteEncoder::lock [private] |
Definition at line 78 of file remoteencoder.h.
Referenced by GetSignalLockTimeout(), and SendReceiveStringList().
QString RemoteEncoder::remotehost [private] |
short RemoteEncoder::remoteport [private] |
QString RemoteEncoder::lastchannel [private] |
Definition at line 83 of file remoteencoder.h.
Referenced by ChangeChannel(), SetChannel(), and SetInput().
QString RemoteEncoder::lastinput [private] |
Definition at line 84 of file remoteencoder.h.
Referenced by ChangeChannel(), GetInput(), PauseRecorder(), SetChannel(), and SetInput().
bool RemoteEncoder::backendError [private] |
long long RemoteEncoder::cachedFramesWritten [private] |
QMap<QString,uint> RemoteEncoder::cachedTimeout [private] |
1.5.5