X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fjpeg_frame.h;h=5e94cbbdc58acf70612d3b4a302cc12b9df12fc5;hb=refs%2Fheads%2Fmaster;hp=eb73e13fec90d564f3695f198d1282c613120edf;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;p=nageru diff --git a/futatabi/jpeg_frame.h b/futatabi/jpeg_frame.h index eb73e13..5e94cbb 100644 --- a/futatabi/jpeg_frame.h +++ b/futatabi/jpeg_frame.h @@ -2,15 +2,21 @@ #define _JPEG_FRAME_H 1 #include +#include + +#include "shared/ref_counted_gl_sync.h" +#include "shared/ref_counted_texture.h" struct Frame { bool is_semiplanar = false; - std::unique_ptr y; - std::unique_ptr cb, cr; // For planar. - std::unique_ptr cbcr; // For semiplanar. + RefCountedTexture y; + RefCountedTexture cb, cr; // For planar. + RefCountedTexture cbcr; // For semiplanar. unsigned width, height; unsigned chroma_subsampling_x, chroma_subsampling_y; - unsigned pitch_y, pitch_chroma; + std::string exif_data; + RefCountedGLsync uploaded_ui_thread; + RefCountedGLsync uploaded_interpolation; }; -#endif // !defined(_JPEG_FRAME_H) +#endif // !defined(_JPEG_FRAME_H)