2002-06-22 10:11:59 +02:00
|
|
|
/*
|
|
|
|
* cutter.h: The video cutting facilities
|
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2012-02-16 12:20:46 +01:00
|
|
|
* $Id: cutter.h 2.3 2012/02/16 12:05:33 kls Exp $
|
2002-06-22 10:11:59 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CUTTER_H
|
|
|
|
#define __CUTTER_H
|
|
|
|
|
2010-08-29 13:40:37 +02:00
|
|
|
#include "thread.h"
|
2012-02-16 12:20:46 +01:00
|
|
|
#include "tools.h"
|
2010-08-29 13:40:37 +02:00
|
|
|
|
2002-06-22 10:11:59 +02:00
|
|
|
class cCuttingThread;
|
|
|
|
|
|
|
|
class cCutter {
|
|
|
|
private:
|
2010-08-29 13:40:37 +02:00
|
|
|
static cMutex mutex;
|
2012-02-16 12:20:46 +01:00
|
|
|
static cString originalVersionName;
|
|
|
|
static cString editedVersionName;
|
2002-06-22 10:11:59 +02:00
|
|
|
static cCuttingThread *cuttingThread;
|
|
|
|
static bool error;
|
|
|
|
static bool ended;
|
|
|
|
public:
|
|
|
|
static bool Start(const char *FileName);
|
|
|
|
static void Stop(void);
|
2012-02-16 12:20:46 +01:00
|
|
|
static bool Active(const char *FileName = NULL);
|
|
|
|
///< Returns true if the cutter is currently active.
|
|
|
|
///< If a FileName is given, true is only returned if either the
|
|
|
|
///< original or the edited file name is equal to FileName.
|
2002-06-22 10:11:59 +02:00
|
|
|
static bool Error(void);
|
|
|
|
static bool Ended(void);
|
|
|
|
};
|
|
|
|
|
2010-01-02 14:02:48 +01:00
|
|
|
bool CutRecording(const char *FileName);
|
|
|
|
|
2002-06-22 10:11:59 +02:00
|
|
|
#endif //__CUTTER_H
|