62 VideoFrame(
int width,
int height, VideoBufferType type,
63 std::vector<std::uint8_t> data);
78 int width() const noexcept {
return width_; }
79 int height() const noexcept {
return height_; }
80 VideoBufferType type() const noexcept {
return type_; }
82 std::uint8_t *data() noexcept {
return data_.data(); }
83 const std::uint8_t *data() const noexcept {
return data_.data(); }
84 std::size_t dataSize() const noexcept {
return data_.size(); }
125 static VideoFrame fromOwnedInfo(
const proto::OwnedVideoBuffer &owned);
130 VideoBufferType type_;
131 std::vector<std::uint8_t> data_;