]> git.sesse.net Git - nageru/blob - futatabi/jpeg_frame.h
Log a warning when we kill a client that is not keeping up.
[nageru] / futatabi / jpeg_frame.h
1 #ifndef _JPEG_FRAME_H
2 #define _JPEG_FRAME_H 1
3
4 #include <memory>
5 #include <string>
6
7 struct Frame {
8         bool is_semiplanar = false;
9         std::unique_ptr<uint8_t[]> y;
10         std::unique_ptr<uint8_t[]> cb, cr;  // For planar.
11         std::unique_ptr<uint8_t[]> cbcr;  // For semiplanar.
12         unsigned width, height;
13         unsigned chroma_subsampling_x, chroma_subsampling_y;
14         unsigned pitch_y, pitch_chroma;
15         std::string exif_data;
16 };
17
18 #endif  // !defined(_JPEG_FRAME_H)