vdr
1.7.31
|
#include <time.h>
#include "channels.h"
#include "config.h"
#include "epg.h"
#include "thread.h"
#include "timers.h"
#include "tools.h"
Go to the source code of this file.
Classes | |
class | cResumeFile |
class | cRecordingInfo |
class | cRecording |
class | cRecordings |
class | cMark |
class | cMarks |
class | cRecordingUserCommand |
class | cIndexFile |
class | cFileName |
Macros | |
#define | FOLDERDELIMCHAR '~' |
#define | TIMERMACRO_TITLE "TITLE" |
#define | TIMERMACRO_EPISODE "EPISODE" |
#define | DEFAULTFRAMESPERSECOND 25.0 |
#define | RUC_BEFORERECORDING "before" |
#define | RUC_AFTERRECORDING "after" |
#define | RUC_EDITEDRECORDING "edited" |
#define | RUC_DELETERECORDING "deleted" |
#define | MAXFRAMESIZE (KILOBYTE(1024) / TS_SIZE * TS_SIZE) |
#define | MAXVIDEOFILESIZETS 1048570 |
#define | MAXVIDEOFILESIZEPES 2000 |
#define | MINVIDEOFILESIZE 1 |
#define | MAXVIDEOFILESIZEDEFAULT MAXVIDEOFILESIZEPES |
#define | MINRECORDINGSIZE 25 |
#define | MAXRECORDINGSIZE 500 |
#define | DEFAULTRECORDINGSIZE 100 |
Enumerations | |
enum | eRecordingsSortMode { rsmName, rsmTime, rsmName, rsmTime } |
Functions | |
void | RemoveDeletedRecordings (void) |
void | AssertFreeDiskSpace (int Priority=0, bool Force=false) |
cString | IndexToHMSF (int Index, bool WithFrame=false, double FramesPerSecond=DEFAULTFRAMESPERSECOND) |
int | HMSFToIndex (const char *HMSF, double FramesPerSecond=DEFAULTFRAMESPERSECOND) |
int | SecondsToFrames (int Seconds, double FramesPerSecond=DEFAULTFRAMESPERSECOND) |
int | ReadFrame (cUnbufferedFile *f, uchar *b, int Length, int Max) |
char * | ExchangeChars (char *s, bool ToFileSystem) |
bool | GenerateIndex (const char *FileName) |
bool | HasRecordingsSortMode (const char *Directory) |
void | GetRecordingsSortMode (const char *Directory) |
void | SetRecordingsSortMode (const char *Directory, eRecordingsSortMode SortMode) |
void | IncRecordingsSortMode (const char *Directory) |
Variables | |
bool | VfatFileSystem |
int | InstanceId |
cRecordings | Recordings |
cRecordings | DeletedRecordings |
eRecordingsSortMode | RecordingsSortMode |
#define DEFAULTFRAMESPERSECOND 25.0 |
Definition at line 204 of file include/vdr/recording.h.
Referenced by cRecorder::Action(), cFrameDetector::Analyze(), cRecording::cRecording(), cRecordingInfo::cRecordingInfo(), and cPlayer::FramesPerSecond().
#define DEFAULTRECORDINGSIZE 100 |
Definition at line 269 of file include/vdr/recording.h.
Referenced by cSetup::cSetup().
#define FOLDERDELIMCHAR '~' |
Definition at line 21 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), cMenuFolder::DescendPath(), ExchangeChars(), cMenuFolder::GetFolder(), cRecording::HierarchyLevels(), cRecording::IsEdited(), cTimer::Parse(), cMenuFolder::Select(), cMenuRecordings::Set(), cMenuTimerItem::Set(), cMenuEditTimer::SetFolder(), cMenuEditRecording::SetFolder(), and cRecording::Title().
Definition at line 255 of file include/vdr/recording.h.
Referenced by cCuttingThread::Action(), cDvbPlayer::Action(), and cDvbPlayer::Goto().
#define MAXRECORDINGSIZE 500 |
Definition at line 268 of file include/vdr/recording.h.
Referenced by cMenuSetupRecord::cMenuSetupRecord().
#define MAXVIDEOFILESIZEDEFAULT MAXVIDEOFILESIZEPES |
Definition at line 265 of file include/vdr/recording.h.
Referenced by cSetup::cSetup(), and main().
#define MAXVIDEOFILESIZEPES 2000 |
Definition at line 263 of file include/vdr/recording.h.
Referenced by cCuttingThread::cCuttingThread(), and cFileName::MaxFileSize().
#define MAXVIDEOFILESIZETS 1048570 |
Definition at line 262 of file include/vdr/recording.h.
Referenced by cMenuSetupRecord::cMenuSetupRecord(), main(), and cFileName::MaxFileSize().
#define MINRECORDINGSIZE 25 |
Definition at line 267 of file include/vdr/recording.h.
Referenced by cMenuSetupRecord::cMenuSetupRecord().
#define MINVIDEOFILESIZE 1 |
Definition at line 264 of file include/vdr/recording.h.
Referenced by cMenuSetupRecord::cMenuSetupRecord(), and main().
#define RUC_AFTERRECORDING "after" |
Definition at line 242 of file include/vdr/recording.h.
Referenced by cRecordControl::Stop().
#define RUC_BEFORERECORDING "before" |
Definition at line 241 of file include/vdr/recording.h.
Referenced by cRecordControl::cRecordControl().
#define RUC_DELETERECORDING "deleted" |
Definition at line 244 of file include/vdr/recording.h.
Referenced by cRecording::Delete().
#define RUC_EDITEDRECORDING "edited" |
Definition at line 243 of file include/vdr/recording.h.
Referenced by cCutter::Active().
#define TIMERMACRO_EPISODE "EPISODE" |
Definition at line 23 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), and cMenuTimerItem::Set().
#define TIMERMACRO_TITLE "TITLE" |
Definition at line 22 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), and cMenuTimerItem::Set().
enum eRecordingsSortMode |
Definition at line 354 of file include/vdr/recording.h.
void AssertFreeDiskSpace | ( | int | Priority = 0 , |
bool | Force = false |
||
) |
The special Priority value -1 means that we shall get rid of any deleted recordings faster than normal (because we're cutting).
If Force is true, the check will be done even if the timeout hasn't expired yet.
Definition at line 138 of file recording.c.
Referenced by cCuttingThread::Action(), cRecordControl::Process(), and cRecordControls::Start().
char* ExchangeChars | ( | char * | s, |
bool | ToFileSystem | ||
) |
Definition at line 543 of file recording.c.
Referenced by cRecording::cRecording(), cMenuRecordings::DirectoryName(), cRecording::FileName(), and NewVideoFileName().
bool GenerateIndex | ( | const char * | FileName | ) |
Definition at line 1968 of file recording.c.
Referenced by main().
void GetRecordingsSortMode | ( | const char * | Directory | ) |
Definition at line 2231 of file recording.c.
Referenced by IncRecordingsSortMode(), and cMenuRecordings::Set().
bool HasRecordingsSortMode | ( | const char * | Directory | ) |
Definition at line 2226 of file recording.c.
Referenced by cRecordControl::cRecordControl().
int HMSFToIndex | ( | const char * | HMSF, |
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2190 of file recording.c.
Referenced by cSVDRP::CmdPLAY(), and cMark::Parse().
void IncRecordingsSortMode | ( | const char * | Directory | ) |
Definition at line 2249 of file recording.c.
Referenced by cMenuRecordings::Sort().
cString IndexToHMSF | ( | int | Index, |
bool | WithFrame = false , |
||
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2174 of file recording.c.
Referenced by cDvbPlayer::Action(), cReplayControl::ShowProgress(), and cMark::ToText().
int ReadFrame | ( | cUnbufferedFile * | f, |
uchar * | b, | ||
int | Length, | ||
int | Max | ||
) |
Definition at line 2208 of file recording.c.
Referenced by cCuttingThread::Action(), and cDvbPlayer::Goto().
void RemoveDeletedRecordings | ( | void | ) |
Definition at line 121 of file recording.c.
Referenced by main().
int SecondsToFrames | ( | int | Seconds, |
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2201 of file recording.c.
Referenced by cReplayControl::EditTest(), cReplayControl::MarkJump(), cDvbPlayer::SkipSeconds(), and cReplayControl::TimeSearchProcess().
void SetRecordingsSortMode | ( | const char * | Directory, |
eRecordingsSortMode | SortMode | ||
) |
Definition at line 2241 of file recording.c.
Referenced by cRecordControl::cRecordControl(), and IncRecordingsSortMode().
cRecordings DeletedRecordings |
int InstanceId |
Definition at line 72 of file recording.c.
Referenced by cRecording::cRecording(), and main().
cRecordings Recordings |
Definition at line 1116 of file recording.c.
Referenced by cCuttingThread::Action(), cRecorder::Action(), cCopyingThread::Action(), AssertFreeDiskSpace(), cSVDRP::CmdCPYR(), cSVDRP::CmdDELR(), cSVDRP::CmdMOVR(), cSVDRP::CmdUPDR(), cMenuRecordings::cMenuRecordings(), cMenuTimers::Commands(), cRecordControl::cRecordControl(), cResumeFile::Delete(), cMenuRecordings::Delete(), cReplayControl::GetInfo(), cMenuRecordings::GetRecording(), cReplayControl::GetRecording(), cVideoDiskUsage::HasChanged(), main(), cMenuRecordings::ProcessKey(), cResumeFile::Save(), cMenuRecordings::Set(), SetTrackDescriptions(), cReplayControl::ShowProgress(), cCutter::Start(), cFileTransfer::Stop(), cCutter::Stop(), cReplayControl::Stop(), and cMenuSetupReplay::Store().
eRecordingsSortMode RecordingsSortMode |
Definition at line 2224 of file recording.c.
Referenced by GetRecordingsSortMode(), IncRecordingsSortMode(), and cRecording::SortName().
bool VfatFileSystem |
Definition at line 71 of file recording.c.
Referenced by cTimer::cTimer(), ExchangeChars(), main(), and cTimer::Parse().