2 #define _JPEG_FRAME_H 1
7 bool is_semiplanar = false;
8 std::unique_ptr<uint8_t[]> y;
9 std::unique_ptr<uint8_t[]> cb, cr; // For planar.
10 std::unique_ptr<uint8_t[]> cbcr; // For semiplanar.
11 unsigned width, height;
12 unsigned chroma_subsampling_x, chroma_subsampling_y;
13 unsigned pitch_y, pitch_chroma;
16 #endif // !defined(_JPEG_FRAME_H)