PlayerGlobalInfo.cpp 711 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "PlayerGlobalInfo.h"
  2. /* 移动构造函数 */
  3. Image_YUV420::Image_YUV420(Image_YUV420&& other)
  4. {
  5. yData = std::move(other.yData);
  6. uData = std::move(other.uData);
  7. vData = std::move(other.vData);
  8. width = other.width;
  9. height = other.height;
  10. }
  11. /* 拷贝构造函数 */
  12. Image_YUV420::Image_YUV420(const Image_YUV420& other)
  13. {
  14. yData = other.yData;
  15. uData = other.uData;
  16. vData = other.vData;
  17. width = other.width;
  18. height = other.height;
  19. }
  20. /* 重载= */
  21. Image_YUV420& Image_YUV420::operator=(const Image_YUV420& other)
  22. {
  23. yData = other.yData;
  24. uData = other.uData;
  25. vData = other.vData;
  26. width = other.width;
  27. height = other.height;
  28. return *this;
  29. }