12345678910111213141516171819202122232425262728293031323334 |
- #include "PlayerGlobalInfo.h"
- /* 移动构造函数 */
- Image_YUV420::Image_YUV420(Image_YUV420&& other)
- {
- yData = std::move(other.yData);
- uData = std::move(other.uData);
- vData = std::move(other.vData);
- width = other.width;
- height = other.height;
- }
- /* 拷贝构造函数 */
- Image_YUV420::Image_YUV420(const Image_YUV420& other)
- {
- yData = other.yData;
- uData = other.uData;
- vData = other.vData;
- width = other.width;
- height = other.height;
- }
- /* 重载= */
- Image_YUV420& Image_YUV420::operator=(const Image_YUV420& other)
- {
- yData = other.yData;
- uData = other.uData;
- vData = other.vData;
- width = other.width;
- height = other.height;
- return *this;
- }
|