Skip to content

Commit

Permalink
driver: video: Rearchitect video driver
Browse files Browse the repository at this point in the history
Define two video I/F(struct imgsensor_ops_s and struct imgdata_ops_s),
and support them.
  • Loading branch information
SPRESENSE committed Sep 10, 2021
1 parent f7cfbc1 commit f06b5ef
Show file tree
Hide file tree
Showing 13 changed files with 3,756 additions and 2,800 deletions.
8 changes: 7 additions & 1 deletion boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
Expand Up @@ -382,8 +382,14 @@ int cxd56_bringup(void)
if (devops == NULL)
{
_err("ERROR: Failed to populate ISX012 devops. %d\n", ret);
ret = ERROR;
}

ret = video_register_lhalf(devops);
if (ret < 0)
{
_err("ERROR: Video lower half register failed.\n");
}

#endif /* CONFIG_VIDEO_ISX012 */

#if defined(CONFIG_CXD56_SDIO)
Expand Down
81 changes: 81 additions & 0 deletions drivers/video/Kconfig
Expand Up @@ -52,6 +52,87 @@ config VIDEO_STREAM
---help---
Enable video Stream support

if VIDEO_STREAM

config VIDEO_SCENE_BACKLIGHT
bool "Enable backlight scene"
default y
---help---
Enable backlight scene

config VIDEO_SCENE_BEACHSNOW
bool "Enable beach snow scene"
default y
---help---
Enable beach snow scene

config VIDEO_SCENE_CANDLELIGHT
bool "Enable candle light scene"
default y
---help---
Enable candle light scene

config VIDEO_SCENE_DAWNDUSK
bool "Enable dawn dusk scene"
default y
---help---
Enable dawn dusk scene

config VIDEO_SCENE_FALLCOLORS
bool "Enable fall colors scene"
default y
---help---
Enable fall colors scene

config VIDEO_SCENE_FIREWORKS
bool "Enable fireworks scene"
default y
---help---
Enable fireworks scene

config VIDEO_SCENE_LANDSCAPE
bool "Enable landscape scene"
default y
---help---
Enable landscape scene

config VIDEO_SCENE_NIGHT
bool "Enable night scene"
default y
---help---
Enable night scene

config VIDEO_SCENE_PARTYINDOOR
bool "Enable party and indoor scene"
default y
---help---
Enable party and indoor scene

config VIDEO_SCENE_PORTRAIT
bool "Enable portrait scene"
default y
---help---
Enable portrait scene

config VIDEO_SCENE_SPORTS
bool "Enable sports scene"
default y
---help---
Enable sports scene

config VIDEO_SCENE_SUNSET
bool "Enable sunset scene"
default y
---help---
Enable sunset scene

config VIDEO_SCENE_TEXT
bool "Enable text scene"
default y
---help---
Enable text scene
endif

config VIDEO_MAX7456
bool "Maxim 7456 Monochrome OSD"
default n
Expand Down

0 comments on commit f06b5ef

Please sign in to comment.