#include <remoteencoder.h>
Definition at line 19 of file remoteencoder.h.
Public Member Functions | |
| RemoteEncoder (int num, const QString &host, short port) | |
| ~RemoteEncoder (void) | |
| bool | Setup (void) |
| bool | IsValidRecorder (void) |
| int | GetRecorderNumber (void) |
| 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 |
| RemoteEncoder::RemoteEncoder | ( | int | num, | |
| const QString & | host, | |||
| short | port | |||
| ) |
Definition at line 22 of file remoteencoder.cpp.
| RemoteEncoder::~RemoteEncoder | ( | void | ) |
Definition at line 29 of file remoteencoder.cpp.
| bool RemoteEncoder::Setup | ( | void | ) |
Definition at line 35 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), SendReceiveStringList(), TV::SwitchCards(), and TV::timerEvent().
| bool RemoteEncoder::IsValidRecorder | ( | void | ) |
Definition at line 65 of file remoteencoder.cpp.
Referenced by MythPlayer::CalcMaxFFTime(), MythPlayer::calcSliderPos(), TV::ChangeChannel(), MythPlayer::GetStatusbarPos(), TV::HandleStateChange(), MythPlayer::IsNearEnd(), TV::PlayFromRecorder(), MythPlayer::PosMapFromEnc(), TV::RequestNextRecorder(), and TV::SwitchCards().
| int RemoteEncoder::GetRecorderNumber | ( | void | ) |
Definition at line 70 of file remoteencoder.cpp.
Referenced by FlagCommercials(), PlayerContext::SetRecorder(), and TV::SwitchCards().
| ProgramInfo * RemoteEncoder::GetRecording | ( | void | ) |
Definition at line 127 of file remoteencoder.cpp.
Referenced by TV::StartRecorder(), and TV::timerEvent().
| float RemoteEncoder::GetFrameRate | ( | void | ) |
Returns recordering frame rate set by nvr.
Definition at line 169 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), and TV::SwitchCards().
| long long RemoteEncoder::GetFramesWritten | ( | void | ) |
Returns number of frames written to disk by TVRec's RecorderBase instance.
Definition at line 204 of file remoteencoder.cpp.
Referenced by MythPlayer::CalcMaxFFTime(), MythPlayer::calcSliderPos(), MythPlayer::GetSecondsBehind(), MythPlayer::GetStatusbarPos(), and MythPlayer::IsNearEnd().
| 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 233 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 248 of file remoteencoder.cpp.
Returns byte position in RingBuffer of a keyframe.
Definition at line 266 of file remoteencoder.cpp.
| void RemoteEncoder::FillPositionMap | ( | long long | start, | |
| long long | end, | |||
| QMap< long long, long long > & | positionMap | |||
| ) |
| void RemoteEncoder::StopPlaying | ( | void | ) |
Tells TVRec to stop streaming a recording to the frontend.
Definition at line 326 of file remoteencoder.cpp.
| void RemoteEncoder::SpawnLiveTV | ( | QString | chainid, | |
| bool | pip, | |||
| QString | startchan | |||
| ) |
Tells TVRec to Spawn a "Live TV" recorder.
Definition at line 339 of file remoteencoder.cpp.
Referenced by TV::HandleStateChange(), and TV::SwitchCards().
| void RemoteEncoder::StopLiveTV | ( | void | ) |
Tells TVRec to stop a "Live TV" recorder.
This only works on local recorders.
Definition at line 355 of file remoteencoder.cpp.
Referenced by TV::StopStuff(), and TV::SwitchCards().
| void RemoteEncoder::PauseRecorder | ( | void | ) |
Tells TVRec to pause a recorder, used for channel and input changes.
Definition at line 368 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 394 of file remoteencoder.cpp.
Referenced by TV::ActiveHandleAction(), TV::ChangeChannel(), TV::PauseLiveTV(), 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 554 of file remoteencoder.cpp.
Referenced by TV::DoChangePictureAttribute().
| void RemoteEncoder::ChangeChannel | ( | int | channeldirection | ) |
| void RemoteEncoder::ChangeDeinterlacer | ( | int | deint_mode | ) |
Definition at line 579 of file remoteencoder.cpp.
| void RemoteEncoder::ToggleChannelFavorite | ( | QString | changroupname | ) |
| void RemoteEncoder::SetChannel | ( | QString | channel | ) |
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 478 of file remoteencoder.cpp.
Referenced by TV::ActiveHandleAction().
| uint RemoteEncoder::GetSignalLockTimeout | ( | QString | input | ) |
Definition at line 491 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 597 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 618 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 639 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 679 of file remoteencoder.cpp.
Referenced by TV::GetNextProgram().
| void RemoteEncoder::GetChannelInfo | ( | QHash< QString, QString > & | infoMap, | |
| uint | chanid = 0 | |||
| ) |
Definition at line 711 of file remoteencoder.cpp.
Referenced by TV::FillOSDMenuSource(), TV::StartChannelEditMode(), and TV::SwitchSource().
| bool RemoteEncoder::SetChannelInfo | ( | const QHash< QString, QString > & | infoMap | ) |
| bool RemoteEncoder::GetErrorStatus | ( | void | ) | [inline] |
| bool RemoteEncoder::SendReceiveStringList | ( | QStringList & | strlist, | |
| uint | min_reply_length = 0 | |||
| ) | [private] |
Definition at line 75 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] |
short RemoteEncoder::remoteport [private] |
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] |
long long RemoteEncoder::cachedFramesWritten [private] |
QMap<QString,uint> RemoteEncoder::cachedTimeout [private] |
1.5.5