A frame descriptor for a YCbCr 4:2:2 packed frame type
#include <camera/camera_api.h>
typedef struct camera_frame_crycby_t { uint32_t height; uint32_t width; uint32_t stride; } camera_frame_crycby_t;
Stride is often called pitch.
Use this frame descriptor when CAMERA_FRAMETYPE_CRYCBY is reported as the camera_frametype_t.
Each set of 2 pixel values in the CrYCbY frame is part of a macro-pixel. Each macro-pixel is made up of four components in the following byte order: a Cr (red-difference chroma) component, a Y (luma) component, a Cb (blue-difference chroma) component and a Y (luma) component. Each macro-pixel is stored contiguously on the same line and each component consumes 8 bits.