PlayerGlobalInfo.h 916 B

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