| Updated: October 28, 2024 |
Bayer bit justification
#include <sensor/sensor_api.h>
typedef enum {
SENSOR_BAYERJUSTIFY_RIGHT_BIT0LSB,
SENSOR_BAYERJUSTIFY_LEFT_BIT0LSB,
SENSOR_BAYERJUSTIFY_RIGHT_BIT0MSB,
SENSOR_BAYERJUSTIFY_LEFT_BIT0MSB
} sensor_bayerjustify_t;
le = false bpp = 10 packing = 16 cadence_length = 16 pixels_per_cadence = 1 format = SENSOR_BAYERFORMAT_RGGBSENSOR_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.