45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
// moviecapture.h
|
|
//
|
|
// Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
|
|
//
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU General Public License
|
|
// as published by the Free Software Foundation; either version 2
|
|
// of the License, or (at your option) any later version.
|
|
|
|
#ifndef _MOVIECAPTURE_H_
|
|
#define _MOVIECAPTURE_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <celengine/render.h>
|
|
#include <celcompat/filesystem.h>
|
|
|
|
class MovieCapture
|
|
{
|
|
public:
|
|
MovieCapture(const Renderer *r) : renderer(r) {};
|
|
virtual ~MovieCapture() {};
|
|
|
|
virtual bool start(const fs::path& filename,
|
|
int width, int height,
|
|
float fps) = 0;
|
|
virtual bool end() = 0;
|
|
virtual bool captureFrame() = 0;
|
|
|
|
virtual int getFrameCount() const = 0;
|
|
virtual int getWidth() const = 0;
|
|
virtual int getHeight() const = 0;
|
|
virtual float getFrameRate() const = 0;
|
|
|
|
virtual void setAspectRatio(int aspectNumerator, int aspectDenominator) = 0;
|
|
virtual void setQuality(float) = 0;
|
|
virtual void recordingStatus(bool started) = 0; /* to update UI recording status indicator */
|
|
|
|
protected:
|
|
const Renderer *renderer{ nullptr };
|
|
};
|
|
|
|
#endif // _MOVIECAPTURE_H_
|
|
|