Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions drivers/video/isx019.c
Original file line number Diff line number Diff line change
Expand Up @@ -2593,18 +2593,18 @@ static int calc_spot_position_regval(uint16_t val,
static int set_spot_position(FAR isx019_dev_t *priv,
imgsensor_value_t val)
{
uint8_t regval;
uint8_t reg_x;
uint8_t reg_y;
uint16_t w;
uint16_t h;
uint16_t clip_w;
uint16_t clip_h;
uint16_t offset_x;
uint16_t offset_y;
uint8_t regval = 0;
uint8_t reg_x = 0;
uint8_t reg_y = 0;
uint16_t w = 0;
uint16_t h = 0;
uint16_t clip_w = 0;
uint16_t clip_h = 0;
uint16_t offset_x = 0;
uint16_t offset_y = 0;
uint16_t x = (uint16_t)(val.value32 >> 16);
uint16_t y = (uint16_t)(val.value32 & 0xffff);
int split;
int split = 0;

/* Spot position of ISX019 is divided into 9x7 sections.
* - Horizontal direction is divided into 9 sections.
Expand Down Expand Up @@ -3319,18 +3319,18 @@ static uint32_t restore_spot_position(uint16_t regval,
static int get_spot_position(FAR isx019_dev_t *priv,
FAR imgsensor_value_t *val)
{
uint8_t regval;
uint8_t regx;
uint8_t regy;
uint16_t w;
uint16_t h;
uint32_t x;
uint32_t y;
uint16_t clip_w;
uint16_t clip_h;
uint16_t offset_x;
uint16_t offset_y;
int split;
uint8_t regval = 0;
uint8_t regx = 0;
uint8_t regy = 0;
uint16_t w = 0;
uint16_t h = 0;
uint32_t x = 0;
uint32_t y = 0;
uint16_t clip_w = 0;
uint16_t clip_h = 0;
uint16_t offset_x = 0;
uint16_t offset_y = 0;
int split = 0;

isx019_i2c_read(priv, CAT_CATAE, SPOT_FRM_NUM, &regval, 1);

Expand Down
2 changes: 1 addition & 1 deletion include/nuttx/video/imgdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#define IMGDATA_UNINIT(d) \
((d)->ops->uninit ? (d)->ops->uninit(d) : -ENOTTY)
#define IMGDATA_SET_BUF(d, n, f, a, s) \
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : NULL)
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : -ENOTTY)
#define IMGDATA_VALIDATE_FRAME_SETTING(d, n, f, i) \
((d)->ops->validate_frame_setting ? \
(d)->ops->validate_frame_setting(d, n, f, i) : -ENOTTY)
Expand Down
Loading