sensor_bayerformat_t

Updated: April 19, 2023

Bayer array macro-pixel format

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_BAYERFORMAT_UNSPECIFIED,
    SENSOR_BAYERFORMAT_GRBG,
    SENSOR_BAYERFORMAT_RGGB,
    SENSOR_BAYERFORMAT_BGGR,
    SENSOR_BAYERFORMAT_GBRG
} sensor_bayerformat_t;

Data:

SENSOR_BAYERFORMAT_UNSPECIFIED
Sensor Bayer array macro-pixel format is unknown or unspecified.
SENSOR_BAYERFORMAT_GRBG
Sensor Bayer array macro-pixel format is:
  G R
  B G
SENSOR_BAYERFORMAT_RGGB
Sensor Bayer array macro-pixel format is:
  R G
  G B
SENSOR_BAYERFORMAT_BGGR
Sensor Bayer array macro-pixel format is:
  B G
  G R
SENSOR_BAYERFORMAT_GBRG
Sensor Bayer array macro-pixel format is:
  G B
  R G

Library:

libsensor

Description:

For more information about the Bayer frame format, see sensor_format_video_bayer_t.