]> git.sesse.net Git - nageru/blob - futatabi/jpeg_frame.h
Make the MIDI play button blinking when something is ready to play, and solid when...
[nageru] / futatabi / jpeg_frame.h
1 #ifndef _JPEG_FRAME_H
2 #define _JPEG_FRAME_H 1
3
4 #include <memory>
5
6 struct Frame {
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;
14 };
15
16 #endif  // !defined(_JPEG_FRAME_H)