PlayerGlobalInfo.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef PLAYERGLOBALINFO_H
  2. #define PLAYERGLOBALINFO_H
  3. // #include <vector>
  4. #include <QByteArray>
  5. #include <QImage>
  6. /**
  7. * @brief 一帧YUV420的图片
  8. *
  9. */
  10. struct Image_YUV420
  11. {
  12. QByteArray yData;
  13. QByteArray uData;
  14. QByteArray vData;
  15. int width; /* 图片的宽 */
  16. int height; /* 图片的高 */
  17. Image_YUV420() : width(0), height(0) {}
  18. ~Image_YUV420() {}
  19. /* 移动构造函数 */
  20. Image_YUV420(Image_YUV420&& other);
  21. /* 拷贝构造函数 */
  22. Image_YUV420(const Image_YUV420& other);
  23. /* 重载= */
  24. Image_YUV420& operator=(const Image_YUV420& other);
  25. Image_YUV420& operator=(Image_YUV420&& other);
  26. };
  27. struct Image_QImage
  28. {
  29. QImage image;
  30. int width;
  31. int height;
  32. Image_QImage();
  33. ~Image_QImage() {}
  34. /* 移动构造函数 */
  35. Image_QImage(Image_QImage&& other);
  36. /* 拷贝构造函数 */
  37. Image_QImage(const Image_QImage& other);
  38. /* 重载= */
  39. Image_QImage& operator=(const Image_QImage& other);
  40. /* 移动幅值函数 */
  41. void moveFrom(Image_QImage& other);
  42. };
  43. #endif /* PLAYERGLOBALINFO_H */