use qvector instead of raw array

This commit is contained in:
itsmattkc
2019-08-09 07:49:17 +10:00
parent 7a858aeca3
commit dfd33310a2
2 changed files with 7 additions and 62 deletions
+2 -16
View File
@@ -22,6 +22,7 @@
#define FRAME_H
#include <memory>
#include <QVector>
#include "common/rational.h"
#include "render/pixelformat.h"
@@ -39,21 +40,6 @@ public:
/// Normal constructor
Frame();
/// Copy constructor
Frame(const Frame& f);
/// Move constructor
Frame(Frame&& f);
/// Copy assignment operator
Frame& operator=(const Frame& f);
/// Move assignment operator
Frame& operator=(Frame&& f);
/// Destructor
~Frame();
/**
* @brief Get frame's width in pixels
*/
@@ -115,7 +101,7 @@ private:
int format_;
uint8_t* data_;
QVector<uint8_t> data_;
rational timestamp_;