PlayerGlobalInfo.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. };
  26. struct Image_QImage
  27. {
  28. QImage image;
  29. int width;
  30. int height;
  31. Image_QImage();
  32. ~Image_QImage() {}
  33. /* 移动构造函数 */
  34. Image_QImage(Image_QImage&& other);
  35. /* 拷贝构造函数 */
  36. Image_QImage(const Image_QImage& other);
  37. /* 重载= */
  38. Image_QImage& operator=(const Image_QImage& other);
  39. /* 移动幅值函数 */
  40. void moveFrom(Image_QImage& other);
  41. };
  42. #endif /* PLAYERGLOBALINFO_H */