|
| 1 | +menuconfig CAMERA_OV02C10 |
| 2 | + bool "OV02C10" |
| 3 | + default n |
| 4 | + help |
| 5 | + Enabling this option will add the support for OV02C10. |
| 6 | + |
| 7 | +if CAMERA_OV02C10 |
| 8 | + menuconfig CAMERA_OV02C10_AUTO_DETECT |
| 9 | + bool "Auto detect OV02C10" |
| 10 | + default y |
| 11 | + help |
| 12 | + When enabled, it provides the ability in application layer to automatically |
| 13 | + detect camera sensors one by one. |
| 14 | + |
| 15 | + if CAMERA_OV02C10_AUTO_DETECT |
| 16 | + config CAMERA_OV02C10_AUTO_DETECT_MIPI_INTERFACE_SENSOR |
| 17 | + bool "Detect for MIPI interface sensor" |
| 18 | + default y |
| 19 | + help |
| 20 | + When enabled, you don't need to call ov02c10_detect manually, ov02c10 |
| 21 | + will be automatically detected and connected to the MIPI CSI interface |
| 22 | + when the application starts. |
| 23 | + endif |
| 24 | + |
| 25 | + choice CAMERA_OV02C10_MIPI_DEFAULT_FMT |
| 26 | + prompt "Default format select" |
| 27 | + default CAMERA_OV02C10_MIPI_RAW10_1288x728_30FPS |
| 28 | + help |
| 29 | + Select the default format to load when the sensor is detected. |
| 30 | + When the sensor is in stream off state, the format can be changed. |
| 31 | + |
| 32 | + config CAMERA_OV02C10_MIPI_RAW10_1288x728_30FPS |
| 33 | + bool "RAW10 1288x728 30fps, MIPI 1lane 24M input" |
| 34 | + config CAMERA_OV02C10_MIPI_RAW10_1920x1080_30FPS |
| 35 | + bool "RAW10 1920x1080 30fps, MIPI 1lane 24M input" |
| 36 | + config CAMERA_OV02C10_MIPI_RAW10_1920x1080_2LAN_30FPS |
| 37 | + bool "RAW10 1920x1080 30fps, MIPI 2lane 24M input" |
| 38 | + endchoice # CAMERA_OV02C10_MIPI_DEFAULT_FMT |
| 39 | + |
| 40 | + config CAMERA_OV02C10_MIPI_IF_FORMAT_INDEX_DAFAULT |
| 41 | + int |
| 42 | + default 0 if CAMERA_OV02C10_MIPI_RAW10_1288x728_30FPS |
| 43 | + default 1 if CAMERA_OV02C10_MIPI_RAW10_1920x1080_30FPS |
| 44 | + default 2 if CAMERA_OV02C10_MIPI_RAW10_1920x1080_2LAN_30FPS |
| 45 | + help |
| 46 | + Set the configuration loaded by default for the MIPI interface. |
| 47 | + More information can be obtained by calling the query_support_formats(). |
| 48 | + |
| 49 | + config CAMERA_OV02C10_CSI_LINESYNC_ENABLE |
| 50 | + bool "CSI Line sync enable" |
| 51 | + default y |
| 52 | + help |
| 53 | + If enabled, send line short packet for each line. |
| 54 | + |
| 55 | + config CAMERA_OV02C10_ISP_AF_ENABLE |
| 56 | + bool "AF(auto focus) enable" |
| 57 | + default y |
| 58 | + help |
| 59 | + If enabled, the camera module will enable some IO pins to drive the |
| 60 | + VCM motor. |
| 61 | + |
| 62 | + config CAMERA_OV02C10_ABSOLUTE_GAIN_LIMIT |
| 63 | + int "Maximum absolute gain limit" |
| 64 | + default 66016 |
| 65 | + range 4000 126016 |
| 66 | + help |
| 67 | + Use this value to limit the maximum gain that upper level applications can use. |
| 68 | + To avoid using float type, the size of this value is gain x 1000. |
| 69 | + Excessive gain can lead to a worse signal-to-noise ratio and may cause the device to overheat, affecting its functionality. |
| 70 | + |
| 71 | + choice CAMERA_OV02C10_ABS_GAIN_MAP_PRIORITY |
| 72 | + prompt "Gain map select" |
| 73 | + default CAMERA_OV02C10_ANA_GAIN_PRIORITY |
| 74 | + help |
| 75 | + The map of gains affects the size of the noise and the smoothness of the brightness change. |
| 76 | + Compared with digital gain, analog gain has less noise. |
| 77 | + Choose the appropriate gain map to balance the smoothness of the noise and brightness change. |
| 78 | + |
| 79 | + config CAMERA_OV02C10_ANA_GAIN_PRIORITY |
| 80 | + bool "Analog Gain Priority" |
| 81 | + config CAMERA_OV02C10_DIG_GAIN_PRIORITY |
| 82 | + bool "Digital Gain Priority" |
| 83 | + endchoice # CAMERA_OV02C10_ABS_GAIN_MAP_PRIORITY |
| 84 | + |
| 85 | + choice CAMERA_OV02C10_IPA_JSON_CONFIGURATION_FILE |
| 86 | + prompt "IPA JSON Configuration File" |
| 87 | + default CAMERA_OV02C10_DEFAULT_IPA_JSON_CONFIGURATION_FILE |
| 88 | + help |
| 89 | + Select OV02C10 JSON configuration file. |
| 90 | + |
| 91 | + config CAMERA_OV02C10_DEFAULT_IPA_JSON_CONFIGURATION_FILE |
| 92 | + bool "Default" |
| 93 | + help |
| 94 | + Use the "esp_cam_sensor/sensors/ov02c10/cfg/ov02c10_default.json". |
| 95 | + |
| 96 | + config CAMERA_OV02C10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE |
| 97 | + bool "Customized" |
| 98 | + help |
| 99 | + Use a customized OV02C10 JSON configuration file. Users should configure |
| 100 | + the file's path using the option "CAMERA_OV02C10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE_PATH." |
| 101 | + endchoice |
| 102 | + |
| 103 | + config CAMERA_OV02C10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE_PATH |
| 104 | + string "OV02C10 Customized JSON Configuration File Path" |
| 105 | + depends on CAMERA_OV02C10_CUSTOMIZED_IPA_JSON_CONFIGURATION_FILE |
| 106 | + help |
| 107 | + Customized OV02C10 JSON configuration file's path and this path is evaluated |
| 108 | + relative to the project root directory by default. |
| 109 | +endif |
0 commit comments