| Updated: October 28, 2024 |
Bayer bit justification
#include <camera/camera_api.h>
typedef enum {
CAMERA_BAYERJUSTIFY_RIGHT_BIT0LSB,
CAMERA_BAYERJUSTIFY_LEFT_BIT0LSB,
CAMERA_BAYERJUSTIFY_RIGHT_BIT0MSB,
CAMERA_BAYERJUSTIFY_LEFT_BIT0MSB
} camera_bayerjustify_t;
le = false bpp = 10 packing = 16 cadence_length = 16 pixels_per_cadence = 1 format = CAMERA_BAYERFORMAT_RGGBCAMERA_BAYERJUSTIFY_RIGHT_BIT0LSB would represent:
Bit: FEDCBA9876543210 FEDCBA9876543210 Scanline n: 000000RRRRRRRRRR 000000GGGGGGGGGG Scanline n+1: 000000GGGGGGGGGG 000000BBBBBBBBBBNote that the 0th bit in the word represents the least significant bit, and the bits are justified to the right of the word.