camera_frame_cbycry_10bit_t
A frame descriptor for a YCbCr 4:2:2 packed frame type
Synopsis:
#include <camera/camera_api.h>typedef struct camera_frame_cbycry_10bit_t {
uint32_t height;
uint32_t width;
uint32_t stride;
} camera_frame_cbycry_10bit_t;Data:
- uint32_t height
- The height of the image, in pixels.
- uint32_t width
- The width of the image, in pixels.
- uint32_t stride
- The number of bytes between the first pixel of the first row in memory and the first pixel of the second row in memory.
Stride is often called pitch.
Library:
libcamapiDescription:
Use this frame descriptor when CAMERA_FRAMETYPE_CBYCRY_10BIT is reported as the camera_frametype_t.
Each set of 2 pixel values in the CbYCrY frame is part of a macro-pixel. Each macro-pixel is made up of four components in the following order: a Cb (blue-difference chroma) component, a Y (luma) component, a Cr (red-difference chroma) component, and a Y (luma) component. Each macro-pixel is stored contiguously on the same line and each component is 10 bits zero-padded to 16 bits.
A macro-pixel is stored as follows:
Bit: 0 1 2 3 4 5 6 7 8 9.....15 0123456789....15 0 1 2 3 4 5 6 7 8 9.....15 0123456789....15
Scanline n: CbCbCbCbCbCbCbCbCbCb000000 YYYYYYYYYY000000 CrCrCrCrCrCrCrCrCrCr000000 YYYYYYYYYY000000 = 64 bits
Page updated:
