You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
534 B
20 lines
534 B
5 years ago
|
#ifndef FILE_HELPER_H
|
||
|
#define FILE_HELPER_H
|
||
|
|
||
|
#include <QByteArray>
|
||
|
#include <QStringList>
|
||
|
|
||
|
#include "Utils.h"
|
||
|
|
||
|
class FileHelper
|
||
|
{
|
||
|
public:
|
||
|
FileHelper(){}
|
||
|
static bool ReadInputFile(QByteArray& arr, QString path, quint64* width, quint64* height);
|
||
|
static bool ReadInputFile(myint* arr, QString path, quint64* width, quint64* height);
|
||
|
static bool WriteOutputFile(char* arr, QString path, quint64 width, quint64 height);
|
||
|
static bool WriteOutputFile(myflt* arr, QString path, quint64 width, quint64 height);
|
||
|
};
|
||
|
|
||
|
#endif // FILE_HELPER_H
|