X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fjpeg_frame.h;fp=futatabi%2Fjpeg_frame.h;h=eb73e13fec90d564f3695f198d1282c613120edf;hb=6e116a6bbeb2c047a3bfb084395ec601ce211e6c;hp=0000000000000000000000000000000000000000;hpb=ce2e0615420b706e1ff2405fffcedfba37a9adac;p=nageru diff --git a/futatabi/jpeg_frame.h b/futatabi/jpeg_frame.h new file mode 100644 index 0000000..eb73e13 --- /dev/null +++ b/futatabi/jpeg_frame.h @@ -0,0 +1,16 @@ +#ifndef _JPEG_FRAME_H +#define _JPEG_FRAME_H 1 + +#include + +struct Frame { + bool is_semiplanar = false; + std::unique_ptr y; + std::unique_ptr cb, cr; // For planar. + std::unique_ptr cbcr; // For semiplanar. + unsigned width, height; + unsigned chroma_subsampling_x, chroma_subsampling_y; + unsigned pitch_y, pitch_chroma; +}; + +#endif // !defined(_JPEG_FRAME_H)