]> git.sesse.net Git - nageru/blobdiff - futatabi/jpeg_frame.h
Move everything into a separate futatabi/ subdir, for the upcoming merge with Nageru.
[nageru] / futatabi / jpeg_frame.h
diff --git a/futatabi/jpeg_frame.h b/futatabi/jpeg_frame.h
new file mode 100644 (file)
index 0000000..eb73e13
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _JPEG_FRAME_H
+#define _JPEG_FRAME_H 1
+
+#include <memory>
+
+struct Frame {
+       bool is_semiplanar = false;
+       std::unique_ptr<uint8_t[]> y;
+       std::unique_ptr<uint8_t[]> cb, cr; // For planar.
+       std::unique_ptr<uint8_t[]> cbcr;  // For semiplanar.
+       unsigned width, height;
+       unsigned chroma_subsampling_x, chroma_subsampling_y;
+       unsigned pitch_y, pitch_chroma;
+};
+
+#endif   // !defined(_JPEG_FRAME_H)