]> git.sesse.net Git - nageru/blob - futatabi/jpeg_frame.h
Set CEF autoplay policy to be more lenient.
[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 #include "shared/ref_counted_gl_sync.h"
8 #include "shared/ref_counted_texture.h"
9
10 struct Frame {
11         bool is_semiplanar = false;
12         RefCountedTexture y;
13         RefCountedTexture cb, cr;  // For planar.
14         RefCountedTexture cbcr;  // For semiplanar.
15         unsigned width, height;
16         unsigned chroma_subsampling_x, chroma_subsampling_y;
17         std::string exif_data;
18         RefCountedGLsync uploaded_ui_thread;
19         RefCountedGLsync uploaded_interpolation;
20 };
21
22 #endif  // !defined(_JPEG_FRAME_H)