1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/cutter.h

50 lines
1.5 KiB
C
Raw Permalink Normal View History

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.
*
* $Id: cutter.h 3.1 2013/10/05 11:34:55 kls Exp $
2002-06-22 10:11:59 +02:00
*/
#ifndef __CUTTER_H
#define __CUTTER_H
#include "thread.h"
#include "tools.h"
2002-06-22 10:11:59 +02:00
class cCuttingThread;
class cCutter {
private:
cString originalVersionName;
cString editedVersionName;
cCuttingThread *cuttingThread;
bool error;
2002-06-22 10:11:59 +02:00
public:
cCutter(const char *FileName);
///< Sets up a new cutter for the given FileName, which must be the full path
///< name of an existing recording directory.
~cCutter();
static cString EditedFileName(const char *FileName);
///< Returns the full path name of the edited version of the recording with
///< the given FileName. This static function can be used independent of any
///< cCutter object, to determine the file name beforehand.
///< Returns NULL in case of error.
bool Start(void);
///< Starts the actual cutting process.
///< Returns true if successful.
///< If Start() is called while the cutting process is already active, nothing
///< happens and false will be returned.
void Stop(void);
///< Stops an ongoing cutting process.
bool Active(void);
///< Returns true if the cutter is currently active.
bool Error(void);
///< Returns true if an error occurred while cutting the recording.
2002-06-22 10:11:59 +02:00
};
bool CutRecording(const char *FileName);
2002-06-22 10:11:59 +02:00
#endif //__CUTTER_H