|
MythTV
0.25-pre
|
#include <remoteencoder.h>
Public Member Functions | |
| RemoteEncoder (int num, const QString &host, short port) | |
| ~RemoteEncoder (void) | |
| bool | Setup (void) |
| bool | IsValidRecorder (void) const |
| int | GetRecorderNumber (void) const |
| ProgramInfo * | GetRecording (void) |
| bool | IsRecording (bool *ok=NULL) |
| 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 () |
| Returns the maximum bits per second this recorder can produce. | |
| int64_t | GetKeyframePosition (uint64_t desired) |
| Returns byte position in RingBuffer of a keyframe. | |
| void | FillPositionMap (long long start, long long 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 (QString) |
| 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 (QHash< QString, QString > &infoMap, uint chanid=0) |
| bool | SetChannelInfo (const QHash< QString, QString > &infoMap) |
| bool | GetErrorStatus (void) |
Private Member Functions | |
| bool | SendReceiveStringList (QStringList &strlist, uint min_reply_length=0) |
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 |
Definition at line 19 of file remoteencoder.h.
| RemoteEncoder::RemoteEncoder | ( | int | num, |
| const QString & | host, | ||
| short | port | ||
| ) |
Definition at line 19 of file remoteencoder.cpp.
Definition at line 26 of file remoteencoder.cpp.
Definition at line 32 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), SendReceiveStringList(), and TV::SwitchCards().
| bool RemoteEncoder::IsValidRecorder | ( | void | ) | const |
Definition at line 61 of file remoteencoder.cpp.
Referenced by MythPlayer::CalcMaxFFTime(), MythPlayer::calcSliderPos(), TV::ChangeChannel(), MythPlayer::EventLoop(), MythPlayer::GetStatusbarPos(), TV::HandleStateChange(), MythPlayer::IsNearEnd(), MythPlayer::PosMapFromEnc(), TV::RequestNextRecorder(), TV::SwitchCards(), and MythPlayer::WaitForSeek().
| int RemoteEncoder::GetRecorderNumber | ( | void | ) | const |
Definition at line 66 of file remoteencoder.cpp.
Referenced by FlagCommercials(), PlayerContext::SetRecorder(), and TV::SwitchCards().
Definition at line 141 of file remoteencoder.cpp.
| bool RemoteEncoder::IsRecording | ( | bool * | ok = NULL | ) |
Definition at line 121 of file remoteencoder.cpp.
Referenced by TV::StartRecorder().
| float RemoteEncoder::GetFrameRate | ( | void | ) |
Returns recordering frame rate set by nvr.
Definition at line 163 of file remoteencoder.cpp.
| long long RemoteEncoder::GetFramesWritten | ( | void | ) |
Returns number of frames written to disk by TVRec's RecorderBase instance.
Definition at line 198 of file remoteencoder.cpp.
Referenced by MythPlayer::CalcMaxFFTime(), MythPlayer::calcSliderPos(), MythPlayer::GetSecondsBehind(), MythPlayer::GetStatusbarPos(), MythPlayer::IsNearEnd(), and MythPlayer::WaitForSeek().
| long long RemoteEncoder::GetCachedFramesWritten | ( | void | ) | const [inline] |
Return value last returned by GetFramesWritten().
Definition at line 34 of file remoteencoder.h.
Referenced by MythPlayer::IsNearEnd().
| long long RemoteEncoder::GetFilePosition | ( | void | ) |
Returns total number of bytes written by TVRec's RingBuffer.
Definition at line 219 of file remoteencoder.cpp.
| long long RemoteEncoder::GetFreeDiskSpace | ( | ) |
| long long RemoteEncoder::GetMaxBitrate | ( | void | ) |
Returns the maximum bits per second this recorder can produce.
Definition at line 234 of file remoteencoder.cpp.
| int64_t RemoteEncoder::GetKeyframePosition | ( | uint64_t | desired | ) |
Returns byte position in RingBuffer of a keyframe.
Definition at line 252 of file remoteencoder.cpp.
| void RemoteEncoder::FillPositionMap | ( | long long | start, |
| long long | end, | ||
| QMap< long long, long long > & | positionMap | ||
| ) |
Definition at line 264 of file remoteencoder.cpp.
Referenced by MythPlayer::PosMapFromEnc().
Tells TVRec to stop streaming a recording to the frontend.
Definition at line 312 of file remoteencoder.cpp.
| void RemoteEncoder::SpawnLiveTV | ( | QString | chainid, |
| bool | pip, | ||
| QString | startchan | ||
| ) |
Tells TVRec to Spawn a "Live TV" recorder.
Definition at line 325 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), and TV::SwitchCards().
Tells TVRec to stop a "Live TV" recorder.
This only works on local recorders.
Definition at line 341 of file remoteencoder.cpp.
Referenced by TV::StopStuff(), and TV::SwitchCards().
Tells TVRec to pause a recorder, used for channel and input changes.
Definition at line 354 of file remoteencoder.cpp.
Referenced by TV::PauseLiveTV().
Definition at line 363 of file remoteencoder.cpp.
Referenced by TV::FinishRecording().
Definition at line 300 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange().
| void RemoteEncoder::CancelNextRecording | ( | bool | cancel | ) |
Definition at line 291 of file remoteencoder.cpp.
Referenced by TV::HandleOSDAskAllow().
| void RemoteEncoder::SetLiveRecording | ( | bool | recording | ) |
Definition at line 371 of file remoteencoder.cpp.
Referenced by TV::ToggleRecord().
| QString RemoteEncoder::GetInput | ( | void | ) |
Definition at line 380 of file remoteencoder.cpp.
Referenced by TV::ActiveHandleAction(), TVBrowseHelper::BrowseChannel(), TV::ChangeChannel(), TV::PauseLiveTV(), TV::ToggleInputs(), and TV::UpdateOSDTimeoutMessage().
| QString RemoteEncoder::SetInput | ( | QString | input | ) |
Definition at line 397 of file remoteencoder.cpp.
Referenced by TV::ToggleInputs().
Definition at line 512 of file remoteencoder.cpp.
Referenced by TV::DoTogglePictureAttribute().
| 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 540 of file remoteencoder.cpp.
Referenced by TV::DoChangePictureAttribute().
| void RemoteEncoder::ChangeChannel | ( | int | channeldirection | ) |
Definition at line 422 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel().
| void RemoteEncoder::ChangeDeinterlacer | ( | int | deint_mode | ) |
Definition at line 565 of file remoteencoder.cpp.
| void RemoteEncoder::ToggleChannelFavorite | ( | QString | changroupname | ) |
Definition at line 413 of file remoteencoder.cpp.
Referenced by TV::ToggleChannelFavorite().
| void RemoteEncoder::SetChannel | ( | QString | channel | ) |
Definition at line 435 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel().
| 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 464 of file remoteencoder.cpp.
Referenced by TV::ActiveHandleAction().
| uint RemoteEncoder::GetSignalLockTimeout | ( | QString | input | ) |
Definition at line 477 of file remoteencoder.cpp.
Referenced by TV::ActiveHandleAction(), TV::PauseLiveTV(), 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 583 of file remoteencoder.cpp.
Referenced by 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 604 of file remoteencoder.cpp.
Referenced by TV::ChangeChannel(), and TV::HandleStateChange().
| 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 625 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 665 of file remoteencoder.cpp.
Referenced by TVBrowseHelper::GetNextProgram().
| void RemoteEncoder::GetChannelInfo | ( | QHash< QString, QString > & | infoMap, |
| uint | chanid = 0 |
||
| ) |
Definition at line 697 of file remoteencoder.cpp.
Referenced by TV::FillOSDMenuSource(), TV::StartChannelEditMode(), and TV::SwitchSource().
| bool RemoteEncoder::SetChannelInfo | ( | const QHash< QString, QString > & | infoMap | ) |
Definition at line 716 of file remoteencoder.cpp.
Referenced by TV::HandleOSDChannelEdit().
| bool RemoteEncoder::GetErrorStatus | ( | void | ) | [inline] |
Definition at line 72 of file remoteencoder.h.
Referenced by PlayerContext::IsRecorderErrored().
| bool RemoteEncoder::SendReceiveStringList | ( | QStringList & | strlist, |
| uint | min_reply_length = 0 |
||
| ) | [private] |
Definition at line 71 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 78 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 80 of file remoteencoder.h.
Referenced by SendReceiveStringList(), Setup(), and ~RemoteEncoder().
QMutex RemoteEncoder::lock [private] |
Definition at line 81 of file remoteencoder.h.
Referenced by GetSignalLockTimeout(), and SendReceiveStringList().
QString RemoteEncoder::remotehost [private] |
Definition at line 83 of file remoteencoder.h.
Referenced by Setup().
short RemoteEncoder::remoteport [private] |
Definition at line 84 of file remoteencoder.h.
Referenced by Setup().
QString RemoteEncoder::lastchannel [private] |
Definition at line 86 of file remoteencoder.h.
Referenced by ChangeChannel(), SetChannel(), and SetInput().
QString RemoteEncoder::lastinput [private] |
Definition at line 87 of file remoteencoder.h.
Referenced by ChangeChannel(), GetInput(), PauseRecorder(), SetChannel(), and SetInput().
bool RemoteEncoder::backendError [private] |
Definition at line 89 of file remoteencoder.h.
Referenced by SendReceiveStringList().
long long RemoteEncoder::cachedFramesWritten [private] |
Definition at line 90 of file remoteencoder.h.
Referenced by GetFramesWritten().
QMap<QString,uint> RemoteEncoder::cachedTimeout [private] |
Definition at line 91 of file remoteencoder.h.
Referenced by GetSignalLockTimeout().
1.7.6.1