change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+18 -18
View File
@@ -25,38 +25,38 @@
#include <QFile>
#include <QObject>
namespace olive {
namespace olive
{
using namespace core;
class PlanarFileDevice : public QObject
{
Q_OBJECT
class PlanarFileDevice : public QObject {
Q_OBJECT
public:
PlanarFileDevice(QObject *parent = nullptr);
PlanarFileDevice(QObject *parent = nullptr);
virtual ~PlanarFileDevice() override;
virtual ~PlanarFileDevice() override;
bool isOpen() const
{
return !files_.isEmpty();
}
bool isOpen() const
{
return !files_.isEmpty();
}
bool open(const QVector<QString> &filenames, QIODevice::OpenMode mode);
bool open(const QVector<QString> &filenames, QIODevice::OpenMode mode);
qint64 read(char **data, qint64 bytes_per_channel, qint64 offset = 0);
qint64 read(char **data, qint64 bytes_per_channel, qint64 offset = 0);
qint64 write(const char **data, qint64 bytes_per_channel, qint64 offset = 0);
qint64 write(const char **data, qint64 bytes_per_channel,
qint64 offset = 0);
qint64 size() const;
qint64 size() const;
bool seek(qint64 pos);
bool seek(qint64 pos);
void close();
void close();
private:
QVector<QFile*> files_;
QVector<QFile *> files_;
};
}