1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef PLAYERGLOBALINFO_H
- #define PLAYERGLOBALINFO_H
- // #include <vector>
- #include <QByteArray>
- /**
- * @brief 一帧YUV420的图片
- *
- */
- struct Image_YUV420
- {
- QByteArray yData;
- QByteArray uData;
- QByteArray vData;
- int width; /* 图片的宽 */
- int height; /* 图片的高 */
- Image_YUV420() : width(0), height(0) {}
- ~Image_YUV420() {}
- /* 移动构造函数 */
- Image_YUV420(Image_YUV420&& other)
- {
- yData = std::move(other.yData);
- uData = std::move(other.uData);
- vData = std::move(other.vData);
- width = other.width;
- height = other.height;
- }
- /* 拷贝构造函数 */
- Image_YUV420(const Image_YUV420& other)
- {
- yData = other.yData;
- uData = other.uData;
- vData = other.vData;
- width = other.width;
- height = other.height;
- }
- };
- #endif /* PLAYERGLOBALINFO_H */
|