#ifndef PLAYERGLOBALINFO_H #define PLAYERGLOBALINFO_H // #include #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); /* 拷贝构造函数 */ Image_YUV420(const Image_YUV420& other); /* 重载= */ Image_YUV420& operator=(const Image_YUV420& other); Image_YUV420& operator=(Image_YUV420&& other); }; struct Image_QImage { QImage image; int width; int height; Image_QImage(); ~Image_QImage() {} /* 移动构造函数 */ Image_QImage(Image_QImage&& other); /* 拷贝构造函数 */ Image_QImage(const Image_QImage& other); /* 重载= */ Image_QImage& operator=(const Image_QImage& other); /* 移动幅值函数 */ void moveFrom(Image_QImage& other); }; #endif /* PLAYERGLOBALINFO_H */