#ifndef PLAYERGLOBALINFO_H #define PLAYERGLOBALINFO_H // #include #include /** * @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 */