2020-09-10 21:14:28 +08:00
|
|
|
#pragma once
|
|
|
|
#include "base/CCData.h"
|
|
|
|
|
|
|
|
#include "Macros.h"
|
|
|
|
#include "Types.h"
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BACKEND_BEGIN
|
2020-09-10 21:14:28 +08:00
|
|
|
|
|
|
|
struct PixelBufferDescriptor
|
|
|
|
{
|
2021-12-25 10:04:45 +08:00
|
|
|
PixelBufferDescriptor() = default;
|
2020-09-10 21:14:28 +08:00
|
|
|
PixelBufferDescriptor(const PixelBufferDescriptor&) = default;
|
2021-12-25 10:04:45 +08:00
|
|
|
PixelBufferDescriptor(PixelBufferDescriptor&& rhs)
|
|
|
|
: _data(std::move(rhs._data)), _width(rhs._width), _height(rhs._height)
|
|
|
|
{}
|
|
|
|
|
2020-09-10 21:38:24 +08:00
|
|
|
explicit operator bool() const { return !_data.isNull(); }
|
2021-12-25 10:04:45 +08:00
|
|
|
|
2020-09-10 21:14:28 +08:00
|
|
|
Data _data;
|
2021-12-25 10:04:45 +08:00
|
|
|
int _width = 0;
|
2020-09-11 14:45:45 +08:00
|
|
|
int _height = 0;
|
2020-09-10 21:14:28 +08:00
|
|
|
};
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BACKEND_END
|