Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
libisp_config.h File Reference
+ Include dependency graph for libisp_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ISP_CFA   2
 
#define MT9F002_BAYERSTATS_STATX   64
 
#define MT9F002_BAYERSTATS_STATY   48
 
#define MT9F002_FISHEYE_RADIUS   1920
 
#define MT9F002_FISHEYE_CENTER_X   ((CFG_MT9F002_X_ADDR_MAX + CFG_MT9F002_X_ADDR_MIN)/2)
 
#define MT9F002_FISHEYE_CENTER_Y   ((CFG_MT9F002_Y_ADDR_MAX + CFG_MT9F002_Y_ADDR_MIN)/2)
 
#define MT9F002_SENSOR_HEIGHT   (CFG_MT9F002_Y_ADDR_MAX - CFG_MT9F002_Y_ADDR_MIN)
 
#define MT9F002_SENSOR_WIDTH   (CFG_MT9F002_X_ADDR_MAX - CFG_MT9F002_X_ADDR_MIN)
 
#define COMPLEMENT_2(i, r)   (((i) >= 0) ? (r) : (~(r) + 1) & 0x3fff)
 
#define Q311(i)   (COMPLEMENT_2(i, (unsigned)(((ABS(i)) * (1 << 11)) + 0.5)))
 
#define AVI_CONV_MATRIX(_c00, _c01, _c02, _c10, _c11, _c12, _c20, _c21, _c22)
 
#define AVI_CONV_OFFSETS(_ryin, _ryout, _guin, _guout, _bvin, _bvout)
 
#define AVI_CONV_CLIPS(_rymin, _rymax, _gumin, _gumax, _bvmin, _bvmax)
 

Variables

struct libisp_config isp_config
 

Macro Definition Documentation

◆ AVI_CONV_CLIPS

#define AVI_CONV_CLIPS (   _rymin,
  _rymax,
  _gumin,
  _gumax,
  _bvmin,
  _bvmax 
)
Value:
.clip_ry = {{ .clip_min = _rymin, .clip_max = _rymax }}, \
.clip_gu = {{ .clip_min = _gumin, .clip_max = _gumax }}, \
.clip_bv = {{ .clip_min = _bvmin, .clip_max = _bvmax }}

Definition at line 35 of file libisp_config.h.

◆ AVI_CONV_MATRIX

#define AVI_CONV_MATRIX (   _c00,
  _c01,
  _c02,
  _c10,
  _c11,
  _c12,
  _c20,
  _c21,
  _c22 
)
Value:
.coeff_01_00 = {{ .coeff_00 = Q311(_c00), .coeff_01 = Q311(_c01) }}, \
.coeff_10_02 = {{ .coeff_02 = Q311(_c02), .coeff_10 = Q311(_c10) }}, \
.coeff_12_11 = {{ .coeff_11 = Q311(_c11), .coeff_12 = Q311(_c12) }}, \
.coeff_21_20 = {{ .coeff_20 = Q311(_c20), .coeff_21 = Q311(_c21) }}, \
.coeff_22 = {{ .coeff_22 = Q311(_c22) }}

Definition at line 19 of file libisp_config.h.

◆ AVI_CONV_OFFSETS

#define AVI_CONV_OFFSETS (   _ryin,
  _ryout,
  _guin,
  _guout,
  _bvin,
  _bvout 
)
Value:
.offset_ry = {{ .offset_in = _ryin, .offset_out = _ryout }}, \
.offset_gu = {{ .offset_in = _guin, .offset_out = _guout }}, \
.offset_bv = {{ .offset_in = _bvin, .offset_out = _bvout }}

Definition at line 28 of file libisp_config.h.

◆ COMPLEMENT_2

#define COMPLEMENT_2 (   i,
 
)    (((i) >= 0) ? (r) : (~(r) + 1) & 0x3fff)

Definition at line 17 of file libisp_config.h.

◆ ISP_CFA

#define ISP_CFA   2

Definition at line 4 of file libisp_config.h.

◆ MT9F002_BAYERSTATS_STATX

#define MT9F002_BAYERSTATS_STATX   64

Definition at line 8 of file libisp_config.h.

◆ MT9F002_BAYERSTATS_STATY

#define MT9F002_BAYERSTATS_STATY   48

Definition at line 9 of file libisp_config.h.

◆ MT9F002_FISHEYE_CENTER_X

#define MT9F002_FISHEYE_CENTER_X   ((CFG_MT9F002_X_ADDR_MAX + CFG_MT9F002_X_ADDR_MIN)/2)

Definition at line 12 of file libisp_config.h.

◆ MT9F002_FISHEYE_CENTER_Y

#define MT9F002_FISHEYE_CENTER_Y   ((CFG_MT9F002_Y_ADDR_MAX + CFG_MT9F002_Y_ADDR_MIN)/2)

Definition at line 13 of file libisp_config.h.

◆ MT9F002_FISHEYE_RADIUS

#define MT9F002_FISHEYE_RADIUS   1920

Definition at line 11 of file libisp_config.h.

◆ MT9F002_SENSOR_HEIGHT

#define MT9F002_SENSOR_HEIGHT   (CFG_MT9F002_Y_ADDR_MAX - CFG_MT9F002_Y_ADDR_MIN)

Definition at line 14 of file libisp_config.h.

◆ MT9F002_SENSOR_WIDTH

#define MT9F002_SENSOR_WIDTH   (CFG_MT9F002_X_ADDR_MAX - CFG_MT9F002_X_ADDR_MIN)

Definition at line 15 of file libisp_config.h.

◆ Q311

#define Q311 (   i)    (COMPLEMENT_2(i, (unsigned)(((ABS(i)) * (1 << 11)) + 0.5)))

Definition at line 18 of file libisp_config.h.

Variable Documentation

◆ isp_config

struct libisp_config isp_config
Q311
#define Q311(i)
Definition: libisp_config.h:18