PlayerGlobalInfo.h 641 B

1234567891011121314151617181920212223242526272829303132
  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. Image_YUV420(const Image_YUV420& other);
  22. /* 重载= */
  23. Image_YUV420& operator=(const Image_YUV420& other);
  24. };
  25. #endif /* PLAYERGLOBALINFO_H */