Kconfig 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. menu "Camera configuration"
  2. config OV7670_SUPPORT
  3. bool "Support OV7670 VGA"
  4. default y
  5. help
  6. Enable this option if you want to use the OV7670.
  7. Disable this option to save memory.
  8. config OV7725_SUPPORT
  9. bool "Support OV7725 VGA"
  10. default y
  11. help
  12. Enable this option if you want to use the OV7725.
  13. Disable this option to save memory.
  14. config NT99141_SUPPORT
  15. bool "Support NT99141 HD"
  16. default y
  17. help
  18. Enable this option if you want to use the NT99141.
  19. Disable this option to save memory.
  20. config OV2640_SUPPORT
  21. bool "Support OV2640 2MP"
  22. default y
  23. help
  24. Enable this option if you want to use the OV2640.
  25. Disable this option to save memory.
  26. config OV3660_SUPPORT
  27. bool "Support OV3660 3MP"
  28. default y
  29. help
  30. Enable this option if you want to use the OV3360.
  31. Disable this option to save memory.
  32. config OV5640_SUPPORT
  33. bool "Support OV5640 5MP"
  34. default y
  35. help
  36. Enable this option if you want to use the OV5640.
  37. Disable this option to save memory.
  38. config GC2145_SUPPORT
  39. bool "Support GC2145 2MP"
  40. default y
  41. help
  42. Enable this option if you want to use the GC2145.
  43. Disable this option to save memory.
  44. config GC032A_SUPPORT
  45. bool "Support GC032A VGA"
  46. default y
  47. help
  48. Enable this option if you want to use the GC032A.
  49. Disable this option to save memory.
  50. config GC0308_SUPPORT
  51. bool "Support GC0308 VGA"
  52. default y
  53. help
  54. Enable this option if you want to use the GC0308.
  55. Disable this option to save memory.
  56. config BF3005_SUPPORT
  57. bool "Support BF3005(BYD3005) VGA"
  58. default y
  59. help
  60. Enable this option if you want to use the BF3005.
  61. Disable this option to save memory.
  62. config BF20A6_SUPPORT
  63. bool "Support BF20A6(BYD20A6) VGA"
  64. default y
  65. help
  66. Enable this option if you want to use the BF20A6.
  67. Disable this option to save memory.
  68. config SC101IOT_SUPPORT
  69. bool "Support SC101IOT HD"
  70. default n
  71. help
  72. Enable this option if you want to use the SC101IOT.
  73. Disable this option to save memory.
  74. choice SC101_REGS_SELECT
  75. prompt "SC101iot default regs"
  76. default SC101IOT_720P_15FPS_ENABLED
  77. depends on SC101IOT_SUPPORT
  78. help
  79. Currently SC010iot has several register sets available.
  80. Select the one that matches your needs.
  81. config SC101IOT_720P_15FPS_ENABLED
  82. bool "xclk20M_720p_15fps"
  83. help
  84. Select this option means that when xclk is 20M, the frame rate is 15fps at 720p resolution.
  85. config SC101IOT_VGA_25FPS_ENABLED
  86. bool "xclk20M_VGA_25fps"
  87. help
  88. Select this option means that when xclk is 20M, the frame rate is 25fps at VGA resolution.
  89. endchoice
  90. config SC030IOT_SUPPORT
  91. bool "Support SC030IOT VGA"
  92. default y
  93. help
  94. Enable this option if you want to use the SC030IOT.
  95. Disable this option to save memory.
  96. config SC031GS_SUPPORT
  97. bool "Support SC031GS VGA"
  98. default n
  99. help
  100. SC031GS is a global shutter CMOS sensor with high frame rate and single-frame HDR.
  101. Enable this option if you want to use the SC031GS.
  102. Disable this option to save memory.
  103. config MEGA_CCM_SUPPORT
  104. bool "Support MEGA CCM 5MP"
  105. default y
  106. help
  107. Enable this option if you want to use the MEGA CCM.
  108. Disable this option to save memory.
  109. choice SCCB_HARDWARE_I2C_PORT
  110. bool "I2C peripheral to use for SCCB"
  111. default SCCB_HARDWARE_I2C_PORT1
  112. config SCCB_HARDWARE_I2C_PORT0
  113. bool "I2C0"
  114. config SCCB_HARDWARE_I2C_PORT1
  115. bool "I2C1"
  116. endchoice
  117. config SCCB_CLK_FREQ
  118. int "SCCB clk frequency"
  119. default 100000
  120. range 100000 400000
  121. help
  122. Increasing this value can reduce the initialization time of the sensor.
  123. Please refer to the relevant instructions of the sensor to adjust the value.
  124. choice GC_SENSOR_WINDOW_MODE
  125. bool "GalaxyCore Sensor Window Mode"
  126. depends on (GC2145_SUPPORT || GC032A_SUPPORT || GC0308_SUPPORT)
  127. default GC_SENSOR_SUBSAMPLE_MODE
  128. help
  129. This option determines how to reduce the output size when the resolution you set is less than the maximum resolution.
  130. SUBSAMPLE_MODE has a bigger perspective and WINDOWING_MODE has a higher frame rate.
  131. config GC_SENSOR_WINDOWING_MODE
  132. bool "Windowing Mode"
  133. config GC_SENSOR_SUBSAMPLE_MODE
  134. bool "Subsample Mode"
  135. endchoice
  136. config CAMERA_TASK_STACK_SIZE
  137. int "CAM task stack size"
  138. default 2048
  139. help
  140. Camera task stack size
  141. choice CAMERA_TASK_PINNED_TO_CORE
  142. bool "Camera task pinned to core"
  143. default CAMERA_CORE0
  144. help
  145. Pin the camera handle task to a certain core(0/1). It can also be done automatically choosing NO_AFFINITY.
  146. config CAMERA_CORE0
  147. bool "CORE0"
  148. config CAMERA_CORE1
  149. bool "CORE1"
  150. config CAMERA_NO_AFFINITY
  151. bool "NO_AFFINITY"
  152. endchoice
  153. config CAMERA_DMA_BUFFER_SIZE_MAX
  154. int "DMA buffer size"
  155. range 8192 32768
  156. default 32768
  157. help
  158. Maximum value of DMA buffer
  159. Larger values may fail to allocate due to insufficient contiguous memory blocks, and smaller value may cause DMA interrupt to be too frequent.
  160. choice CAMERA_JPEG_MODE_FRAME_SIZE_OPTION
  161. prompt "JPEG mode frame size option"
  162. default CAMERA_JPEG_MODE_FRAME_SIZE_AUTO
  163. help
  164. Select whether to use automatic calculation for JPEG mode frame size or specify a custom value.
  165. config CAMERA_JPEG_MODE_FRAME_SIZE_AUTO
  166. bool "Use automatic calculation (width * height / 5)"
  167. help
  168. Use the default calculation for JPEG mode frame size.
  169. Note: In very low resolutions like QQVGA, the default calculation tends to result in insufficient buffer size.
  170. config CAMERA_JPEG_MODE_FRAME_SIZE_CUSTOM
  171. bool "Specify custom frame size"
  172. help
  173. Specify a custom frame size in bytes for JPEG mode.
  174. endchoice
  175. config CAMERA_JPEG_MODE_FRAME_SIZE
  176. int "Custom JPEG mode frame size (bytes)"
  177. default 8192
  178. depends on CAMERA_JPEG_MODE_FRAME_SIZE_CUSTOM
  179. help
  180. This option sets the custom frame size in JPEG mode.
  181. Specify the desired buffer size in bytes.
  182. config CAMERA_CONVERTER_ENABLED
  183. bool "Enable camera RGB/YUV converter"
  184. depends on IDF_TARGET_ESP32S3
  185. default n
  186. help
  187. Enable this option if you want to use RGB565/YUV422/YUV420/YUV411 format conversion.
  188. choice CAMERA_CONV_PROTOCOL
  189. bool "Camera converter protocol"
  190. depends on CAMERA_CONVERTER_ENABLED
  191. default LCD_CAM_CONV_BT601_ENABLED
  192. help
  193. Supports format conversion under both BT601 and BT709 standards.
  194. config LCD_CAM_CONV_BT601_ENABLED
  195. bool "BT601"
  196. config LCD_CAM_CONV_BT709_ENABLED
  197. bool "BT709"
  198. endchoice
  199. config LCD_CAM_CONV_FULL_RANGE_ENABLED
  200. bool "Camera converter full range mode"
  201. depends on CAMERA_CONVERTER_ENABLED
  202. default y
  203. help
  204. Supports format conversion under both full color range mode and limited color range mode.
  205. If full color range mode is selected, the color range of RGB or YUV is 0~255.
  206. If limited color range mode is selected, the color range of RGB is 16~240, and the color range of YUV is Y[16~240], UV[16~235].
  207. Full color range mode has a wider color range, so details in the image show more clearly.
  208. Please confirm the color range mode of the current camera sensor, incorrect color range mode may cause color difference in the final converted image.
  209. Full range mode is used by default. If this option is not selected, the format conversion function will be done using the limited range mode.
  210. config LCD_CAM_ISR_IRAM_SAFE
  211. bool "Execute camera ISR from IRAM"
  212. depends on (IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3)
  213. default n
  214. help
  215. If this option is enabled, camera ISR will execute from IRAM.
  216. endmenu