KShare/recording/recordingformats.hpp
ArsenArsen 34624e5762 Redesigned uploaders a bit to support more stuff.
Added a functionality of uploading byte arrays and even files. Created RecordingFormat, which allows me to create states, I guess??, for RecordingContex's. Needed for, eg. gifs, which are horrible and I strongly suggest against, which will actually be stored as files per frame which are QImages encoded with QImage::Format_RGB888 (confirmation needed).
2017-06-04 22:58:29 +02:00

24 lines
502 B
C++

#ifndef RECORDINGFORMATS_HPP
#define RECORDINGFORMATS_HPP
#include <QFile>
#include <QImage>
#include <QString>
#include <functional>
class RecordingFormats {
public:
enum Format { None, GIF };
RecordingFormats(Format f);
std::function<void(QImage)> getConsumer();
std::function<QByteArray()> getFinalizer();
static QString getPrettyName(Format f);
private:
std::function<void(QImage)> consumer;
std::function<QByteArray()> finalizer;
};
#endif // RECORDINGFORMATS_HPP