summaryrefslogtreecommitdiff
path: root/include/ast_video_types.hpp
blob: f9801460e6b02426b631d358faa31428943c86d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <cstdint>
#include <vector>
namespace ast_video {
enum class YuvMode { YUV444 = 0, YUV420 = 1 };

class RawVideoBuffer {
 public:
  RawVideoBuffer() : buffer(1024 * 1024 * 10, 0){};
  unsigned long height{};
  unsigned long width{};
  int ySelector{};
  int uvSelector{};
  YuvMode mode;
  // TODO(ed) determine a more appropriate buffer size
  std::vector<uint32_t> buffer;
};
}  // namespace ast_video