mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-22 22:43:05 +02:00
2017-08-18 Fred Gleason <fredg@paravelsystems.com>
* Added rdrender(1) in 'utils/rdrender/'.
This commit is contained in:
69
utils/rdrender/rdrender.h
Normal file
69
utils/rdrender/rdrender.h
Normal file
@@ -0,0 +1,69 @@
|
||||
// rdrender.h
|
||||
//
|
||||
// Render a Rivendell log.
|
||||
//
|
||||
// (C) Copyright 2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public
|
||||
// License along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef RDRENDER_H
|
||||
#define RDRENDER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <qdatetime.h>
|
||||
#include <qobject.h>
|
||||
|
||||
#include <rdconfig.h>
|
||||
#include <rddb.h>
|
||||
#include <rdripc.h>
|
||||
#include <rdstation.h>
|
||||
#include <rdsystem.h>
|
||||
#include <rduser.h>
|
||||
|
||||
#define RDRENDER_DEFAULT_CHANNELS 2
|
||||
#define RDRENDER_USAGE "[options] <logname> <output-file>\n"
|
||||
|
||||
class MainObject : public QObject
|
||||
{
|
||||
Q_OBJECT;
|
||||
public:
|
||||
MainObject(QObject *parent=0);
|
||||
|
||||
private slots:
|
||||
void userData();
|
||||
|
||||
private:
|
||||
int MainLoop();
|
||||
uint64_t FramesFromMsec(uint64_t msec);
|
||||
void Verbose(const QString &msg);
|
||||
bool GetCutFile(const QString &cutname,int start_pt,int end_pt,
|
||||
QString *dest_filename) const;
|
||||
void DeleteCutFile(const QString &dest_filename) const;
|
||||
bool render_verbose;
|
||||
QString render_logname;
|
||||
QString render_output_filename;
|
||||
unsigned render_channels;
|
||||
QDate render_start_date;
|
||||
QTime render_start_time;
|
||||
RDRipc *render_ripc;
|
||||
RDStation *render_station;
|
||||
RDSystem *render_system;
|
||||
RDUser *render_user;
|
||||
RDConfig *render_config;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDRENDER_H
|
Reference in New Issue
Block a user