Videoio.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.VideoioModule
  8. {
  9. // C++: class Videoio
  10. //javadoc: Videoio
  11. public class Videoio
  12. {
  13. // C++: enum VideoWriterProperties
  14. public const int VIDEOWRITER_PROP_QUALITY = 1;
  15. public const int VIDEOWRITER_PROP_FRAMEBYTES = 2;
  16. public const int VIDEOWRITER_PROP_NSTRIPES = 3;
  17. // C++: enum VideoCaptureAPIs
  18. public const int CAP_ANY = 0;
  19. public const int CAP_VFW = 200;
  20. public const int CAP_V4L = 200;
  21. public const int CAP_V4L2 = CAP_V4L;
  22. public const int CAP_FIREWIRE = 300;
  23. public const int CAP_FIREWARE = CAP_FIREWIRE;
  24. public const int CAP_IEEE1394 = CAP_FIREWIRE;
  25. public const int CAP_DC1394 = CAP_FIREWIRE;
  26. public const int CAP_CMU1394 = CAP_FIREWIRE;
  27. public const int CAP_QT = 500;
  28. public const int CAP_UNICAP = 600;
  29. public const int CAP_DSHOW = 700;
  30. public const int CAP_PVAPI = 800;
  31. public const int CAP_OPENNI = 900;
  32. public const int CAP_OPENNI_ASUS = 910;
  33. public const int CAP_ANDROID = 1000;
  34. public const int CAP_XIAPI = 1100;
  35. public const int CAP_AVFOUNDATION = 1200;
  36. public const int CAP_GIGANETIX = 1300;
  37. public const int CAP_MSMF = 1400;
  38. public const int CAP_WINRT = 1410;
  39. public const int CAP_INTELPERC = 1500;
  40. public const int CAP_OPENNI2 = 1600;
  41. public const int CAP_OPENNI2_ASUS = 1610;
  42. public const int CAP_GPHOTO2 = 1700;
  43. public const int CAP_GSTREAMER = 1800;
  44. public const int CAP_FFMPEG = 1900;
  45. public const int CAP_IMAGES = 2000;
  46. public const int CAP_ARAVIS = 2100;
  47. public const int CAP_OPENCV_MJPEG = 2200;
  48. public const int CAP_INTEL_MFX = 2300;
  49. public const int CAP_XINE = 2400;
  50. // C++: enum <unnamed>
  51. public const int CAP_PROP_DC1394_OFF = -4;
  52. public const int CAP_PROP_DC1394_MODE_MANUAL = -3;
  53. public const int CAP_PROP_DC1394_MODE_AUTO = -2;
  54. public const int CAP_PROP_DC1394_MODE_ONE_PUSH_AUTO = -1;
  55. public const int CAP_PROP_DC1394_MAX = 31;
  56. public const int CAP_OPENNI_DEPTH_GENERATOR = 1 << 31;
  57. public const int CAP_OPENNI_IMAGE_GENERATOR = 1 << 30;
  58. public const int CAP_OPENNI_IR_GENERATOR = 1 << 29;
  59. public const int CAP_OPENNI_GENERATORS_MASK = CAP_OPENNI_DEPTH_GENERATOR + CAP_OPENNI_IMAGE_GENERATOR + CAP_OPENNI_IR_GENERATOR;
  60. public const int CAP_PROP_OPENNI_OUTPUT_MODE = 100;
  61. public const int CAP_PROP_OPENNI_FRAME_MAX_DEPTH = 101;
  62. public const int CAP_PROP_OPENNI_BASELINE = 102;
  63. public const int CAP_PROP_OPENNI_FOCAL_LENGTH = 103;
  64. public const int CAP_PROP_OPENNI_REGISTRATION = 104;
  65. public const int CAP_PROP_OPENNI_REGISTRATION_ON = CAP_PROP_OPENNI_REGISTRATION;
  66. public const int CAP_PROP_OPENNI_APPROX_FRAME_SYNC = 105;
  67. public const int CAP_PROP_OPENNI_MAX_BUFFER_SIZE = 106;
  68. public const int CAP_PROP_OPENNI_CIRCLE_BUFFER = 107;
  69. public const int CAP_PROP_OPENNI_MAX_TIME_DURATION = 108;
  70. public const int CAP_PROP_OPENNI_GENERATOR_PRESENT = 109;
  71. public const int CAP_PROP_OPENNI2_SYNC = 110;
  72. public const int CAP_PROP_OPENNI2_MIRROR = 111;
  73. public const int CAP_OPENNI_IMAGE_GENERATOR_PRESENT = CAP_OPENNI_IMAGE_GENERATOR + CAP_PROP_OPENNI_GENERATOR_PRESENT;
  74. public const int CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE = CAP_OPENNI_IMAGE_GENERATOR + CAP_PROP_OPENNI_OUTPUT_MODE;
  75. public const int CAP_OPENNI_DEPTH_GENERATOR_PRESENT = CAP_OPENNI_DEPTH_GENERATOR + CAP_PROP_OPENNI_GENERATOR_PRESENT;
  76. public const int CAP_OPENNI_DEPTH_GENERATOR_BASELINE = CAP_OPENNI_DEPTH_GENERATOR + CAP_PROP_OPENNI_BASELINE;
  77. public const int CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH = CAP_OPENNI_DEPTH_GENERATOR + CAP_PROP_OPENNI_FOCAL_LENGTH;
  78. public const int CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION = CAP_OPENNI_DEPTH_GENERATOR + CAP_PROP_OPENNI_REGISTRATION;
  79. public const int CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION_ON = CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION;
  80. public const int CAP_OPENNI_IR_GENERATOR_PRESENT = CAP_OPENNI_IR_GENERATOR + CAP_PROP_OPENNI_GENERATOR_PRESENT;
  81. public const int CAP_OPENNI_DEPTH_MAP = 0;
  82. public const int CAP_OPENNI_POINT_CLOUD_MAP = 1;
  83. public const int CAP_OPENNI_DISPARITY_MAP = 2;
  84. public const int CAP_OPENNI_DISPARITY_MAP_32F = 3;
  85. public const int CAP_OPENNI_VALID_DEPTH_MASK = 4;
  86. public const int CAP_OPENNI_BGR_IMAGE = 5;
  87. public const int CAP_OPENNI_GRAY_IMAGE = 6;
  88. public const int CAP_OPENNI_IR_IMAGE = 7;
  89. public const int CAP_OPENNI_VGA_30HZ = 0;
  90. public const int CAP_OPENNI_SXGA_15HZ = 1;
  91. public const int CAP_OPENNI_SXGA_30HZ = 2;
  92. public const int CAP_OPENNI_QVGA_30HZ = 3;
  93. public const int CAP_OPENNI_QVGA_60HZ = 4;
  94. public const int CAP_PROP_GSTREAMER_QUEUE_LENGTH = 200;
  95. public const int CAP_PROP_PVAPI_MULTICASTIP = 300;
  96. public const int CAP_PROP_PVAPI_FRAMESTARTTRIGGERMODE = 301;
  97. public const int CAP_PROP_PVAPI_DECIMATIONHORIZONTAL = 302;
  98. public const int CAP_PROP_PVAPI_DECIMATIONVERTICAL = 303;
  99. public const int CAP_PROP_PVAPI_BINNINGX = 304;
  100. public const int CAP_PROP_PVAPI_BINNINGY = 305;
  101. public const int CAP_PROP_PVAPI_PIXELFORMAT = 306;
  102. public const int CAP_PVAPI_FSTRIGMODE_FREERUN = 0;
  103. public const int CAP_PVAPI_FSTRIGMODE_SYNCIN1 = 1;
  104. public const int CAP_PVAPI_FSTRIGMODE_SYNCIN2 = 2;
  105. public const int CAP_PVAPI_FSTRIGMODE_FIXEDRATE = 3;
  106. public const int CAP_PVAPI_FSTRIGMODE_SOFTWARE = 4;
  107. public const int CAP_PVAPI_DECIMATION_OFF = 1;
  108. public const int CAP_PVAPI_DECIMATION_2OUTOF4 = 2;
  109. public const int CAP_PVAPI_DECIMATION_2OUTOF8 = 4;
  110. public const int CAP_PVAPI_DECIMATION_2OUTOF16 = 8;
  111. public const int CAP_PVAPI_PIXELFORMAT_MONO8 = 1;
  112. public const int CAP_PVAPI_PIXELFORMAT_MONO16 = 2;
  113. public const int CAP_PVAPI_PIXELFORMAT_BAYER8 = 3;
  114. public const int CAP_PVAPI_PIXELFORMAT_BAYER16 = 4;
  115. public const int CAP_PVAPI_PIXELFORMAT_RGB24 = 5;
  116. public const int CAP_PVAPI_PIXELFORMAT_BGR24 = 6;
  117. public const int CAP_PVAPI_PIXELFORMAT_RGBA32 = 7;
  118. public const int CAP_PVAPI_PIXELFORMAT_BGRA32 = 8;
  119. public const int CAP_PROP_XI_DOWNSAMPLING = 400;
  120. public const int CAP_PROP_XI_DATA_FORMAT = 401;
  121. public const int CAP_PROP_XI_OFFSET_X = 402;
  122. public const int CAP_PROP_XI_OFFSET_Y = 403;
  123. public const int CAP_PROP_XI_TRG_SOURCE = 404;
  124. public const int CAP_PROP_XI_TRG_SOFTWARE = 405;
  125. public const int CAP_PROP_XI_GPI_SELECTOR = 406;
  126. public const int CAP_PROP_XI_GPI_MODE = 407;
  127. public const int CAP_PROP_XI_GPI_LEVEL = 408;
  128. public const int CAP_PROP_XI_GPO_SELECTOR = 409;
  129. public const int CAP_PROP_XI_GPO_MODE = 410;
  130. public const int CAP_PROP_XI_LED_SELECTOR = 411;
  131. public const int CAP_PROP_XI_LED_MODE = 412;
  132. public const int CAP_PROP_XI_MANUAL_WB = 413;
  133. public const int CAP_PROP_XI_AUTO_WB = 414;
  134. public const int CAP_PROP_XI_AEAG = 415;
  135. public const int CAP_PROP_XI_EXP_PRIORITY = 416;
  136. public const int CAP_PROP_XI_AE_MAX_LIMIT = 417;
  137. public const int CAP_PROP_XI_AG_MAX_LIMIT = 418;
  138. public const int CAP_PROP_XI_AEAG_LEVEL = 419;
  139. public const int CAP_PROP_XI_TIMEOUT = 420;
  140. public const int CAP_PROP_XI_EXPOSURE = 421;
  141. public const int CAP_PROP_XI_EXPOSURE_BURST_COUNT = 422;
  142. public const int CAP_PROP_XI_GAIN_SELECTOR = 423;
  143. public const int CAP_PROP_XI_GAIN = 424;
  144. public const int CAP_PROP_XI_DOWNSAMPLING_TYPE = 426;
  145. public const int CAP_PROP_XI_BINNING_SELECTOR = 427;
  146. public const int CAP_PROP_XI_BINNING_VERTICAL = 428;
  147. public const int CAP_PROP_XI_BINNING_HORIZONTAL = 429;
  148. public const int CAP_PROP_XI_BINNING_PATTERN = 430;
  149. public const int CAP_PROP_XI_DECIMATION_SELECTOR = 431;
  150. public const int CAP_PROP_XI_DECIMATION_VERTICAL = 432;
  151. public const int CAP_PROP_XI_DECIMATION_HORIZONTAL = 433;
  152. public const int CAP_PROP_XI_DECIMATION_PATTERN = 434;
  153. public const int CAP_PROP_XI_TEST_PATTERN_GENERATOR_SELECTOR = 587;
  154. public const int CAP_PROP_XI_TEST_PATTERN = 588;
  155. public const int CAP_PROP_XI_IMAGE_DATA_FORMAT = 435;
  156. public const int CAP_PROP_XI_SHUTTER_TYPE = 436;
  157. public const int CAP_PROP_XI_SENSOR_TAPS = 437;
  158. public const int CAP_PROP_XI_AEAG_ROI_OFFSET_X = 439;
  159. public const int CAP_PROP_XI_AEAG_ROI_OFFSET_Y = 440;
  160. public const int CAP_PROP_XI_AEAG_ROI_WIDTH = 441;
  161. public const int CAP_PROP_XI_AEAG_ROI_HEIGHT = 442;
  162. public const int CAP_PROP_XI_BPC = 445;
  163. public const int CAP_PROP_XI_WB_KR = 448;
  164. public const int CAP_PROP_XI_WB_KG = 449;
  165. public const int CAP_PROP_XI_WB_KB = 450;
  166. public const int CAP_PROP_XI_WIDTH = 451;
  167. public const int CAP_PROP_XI_HEIGHT = 452;
  168. public const int CAP_PROP_XI_REGION_SELECTOR = 589;
  169. public const int CAP_PROP_XI_REGION_MODE = 595;
  170. public const int CAP_PROP_XI_LIMIT_BANDWIDTH = 459;
  171. public const int CAP_PROP_XI_SENSOR_DATA_BIT_DEPTH = 460;
  172. public const int CAP_PROP_XI_OUTPUT_DATA_BIT_DEPTH = 461;
  173. public const int CAP_PROP_XI_IMAGE_DATA_BIT_DEPTH = 462;
  174. public const int CAP_PROP_XI_OUTPUT_DATA_PACKING = 463;
  175. public const int CAP_PROP_XI_OUTPUT_DATA_PACKING_TYPE = 464;
  176. public const int CAP_PROP_XI_IS_COOLED = 465;
  177. public const int CAP_PROP_XI_COOLING = 466;
  178. public const int CAP_PROP_XI_TARGET_TEMP = 467;
  179. public const int CAP_PROP_XI_CHIP_TEMP = 468;
  180. public const int CAP_PROP_XI_HOUS_TEMP = 469;
  181. public const int CAP_PROP_XI_HOUS_BACK_SIDE_TEMP = 590;
  182. public const int CAP_PROP_XI_SENSOR_BOARD_TEMP = 596;
  183. public const int CAP_PROP_XI_CMS = 470;
  184. public const int CAP_PROP_XI_APPLY_CMS = 471;
  185. public const int CAP_PROP_XI_IMAGE_IS_COLOR = 474;
  186. public const int CAP_PROP_XI_COLOR_FILTER_ARRAY = 475;
  187. public const int CAP_PROP_XI_GAMMAY = 476;
  188. public const int CAP_PROP_XI_GAMMAC = 477;
  189. public const int CAP_PROP_XI_SHARPNESS = 478;
  190. public const int CAP_PROP_XI_CC_MATRIX_00 = 479;
  191. public const int CAP_PROP_XI_CC_MATRIX_01 = 480;
  192. public const int CAP_PROP_XI_CC_MATRIX_02 = 481;
  193. public const int CAP_PROP_XI_CC_MATRIX_03 = 482;
  194. public const int CAP_PROP_XI_CC_MATRIX_10 = 483;
  195. public const int CAP_PROP_XI_CC_MATRIX_11 = 484;
  196. public const int CAP_PROP_XI_CC_MATRIX_12 = 485;
  197. public const int CAP_PROP_XI_CC_MATRIX_13 = 486;
  198. public const int CAP_PROP_XI_CC_MATRIX_20 = 487;
  199. public const int CAP_PROP_XI_CC_MATRIX_21 = 488;
  200. public const int CAP_PROP_XI_CC_MATRIX_22 = 489;
  201. public const int CAP_PROP_XI_CC_MATRIX_23 = 490;
  202. public const int CAP_PROP_XI_CC_MATRIX_30 = 491;
  203. public const int CAP_PROP_XI_CC_MATRIX_31 = 492;
  204. public const int CAP_PROP_XI_CC_MATRIX_32 = 493;
  205. public const int CAP_PROP_XI_CC_MATRIX_33 = 494;
  206. public const int CAP_PROP_XI_DEFAULT_CC_MATRIX = 495;
  207. public const int CAP_PROP_XI_TRG_SELECTOR = 498;
  208. public const int CAP_PROP_XI_ACQ_FRAME_BURST_COUNT = 499;
  209. public const int CAP_PROP_XI_DEBOUNCE_EN = 507;
  210. public const int CAP_PROP_XI_DEBOUNCE_T0 = 508;
  211. public const int CAP_PROP_XI_DEBOUNCE_T1 = 509;
  212. public const int CAP_PROP_XI_DEBOUNCE_POL = 510;
  213. public const int CAP_PROP_XI_LENS_MODE = 511;
  214. public const int CAP_PROP_XI_LENS_APERTURE_VALUE = 512;
  215. public const int CAP_PROP_XI_LENS_FOCUS_MOVEMENT_VALUE = 513;
  216. public const int CAP_PROP_XI_LENS_FOCUS_MOVE = 514;
  217. public const int CAP_PROP_XI_LENS_FOCUS_DISTANCE = 515;
  218. public const int CAP_PROP_XI_LENS_FOCAL_LENGTH = 516;
  219. public const int CAP_PROP_XI_LENS_FEATURE_SELECTOR = 517;
  220. public const int CAP_PROP_XI_LENS_FEATURE = 518;
  221. public const int CAP_PROP_XI_DEVICE_MODEL_ID = 521;
  222. public const int CAP_PROP_XI_DEVICE_SN = 522;
  223. public const int CAP_PROP_XI_IMAGE_DATA_FORMAT_RGB32_ALPHA = 529;
  224. public const int CAP_PROP_XI_IMAGE_PAYLOAD_SIZE = 530;
  225. public const int CAP_PROP_XI_TRANSPORT_PIXEL_FORMAT = 531;
  226. public const int CAP_PROP_XI_SENSOR_CLOCK_FREQ_HZ = 532;
  227. public const int CAP_PROP_XI_SENSOR_CLOCK_FREQ_INDEX = 533;
  228. public const int CAP_PROP_XI_SENSOR_OUTPUT_CHANNEL_COUNT = 534;
  229. public const int CAP_PROP_XI_FRAMERATE = 535;
  230. public const int CAP_PROP_XI_COUNTER_SELECTOR = 536;
  231. public const int CAP_PROP_XI_COUNTER_VALUE = 537;
  232. public const int CAP_PROP_XI_ACQ_TIMING_MODE = 538;
  233. public const int CAP_PROP_XI_AVAILABLE_BANDWIDTH = 539;
  234. public const int CAP_PROP_XI_BUFFER_POLICY = 540;
  235. public const int CAP_PROP_XI_LUT_EN = 541;
  236. public const int CAP_PROP_XI_LUT_INDEX = 542;
  237. public const int CAP_PROP_XI_LUT_VALUE = 543;
  238. public const int CAP_PROP_XI_TRG_DELAY = 544;
  239. public const int CAP_PROP_XI_TS_RST_MODE = 545;
  240. public const int CAP_PROP_XI_TS_RST_SOURCE = 546;
  241. public const int CAP_PROP_XI_IS_DEVICE_EXIST = 547;
  242. public const int CAP_PROP_XI_ACQ_BUFFER_SIZE = 548;
  243. public const int CAP_PROP_XI_ACQ_BUFFER_SIZE_UNIT = 549;
  244. public const int CAP_PROP_XI_ACQ_TRANSPORT_BUFFER_SIZE = 550;
  245. public const int CAP_PROP_XI_BUFFERS_QUEUE_SIZE = 551;
  246. public const int CAP_PROP_XI_ACQ_TRANSPORT_BUFFER_COMMIT = 552;
  247. public const int CAP_PROP_XI_RECENT_FRAME = 553;
  248. public const int CAP_PROP_XI_DEVICE_RESET = 554;
  249. public const int CAP_PROP_XI_COLUMN_FPN_CORRECTION = 555;
  250. public const int CAP_PROP_XI_ROW_FPN_CORRECTION = 591;
  251. public const int CAP_PROP_XI_SENSOR_MODE = 558;
  252. public const int CAP_PROP_XI_HDR = 559;
  253. public const int CAP_PROP_XI_HDR_KNEEPOINT_COUNT = 560;
  254. public const int CAP_PROP_XI_HDR_T1 = 561;
  255. public const int CAP_PROP_XI_HDR_T2 = 562;
  256. public const int CAP_PROP_XI_KNEEPOINT1 = 563;
  257. public const int CAP_PROP_XI_KNEEPOINT2 = 564;
  258. public const int CAP_PROP_XI_IMAGE_BLACK_LEVEL = 565;
  259. public const int CAP_PROP_XI_HW_REVISION = 571;
  260. public const int CAP_PROP_XI_DEBUG_LEVEL = 572;
  261. public const int CAP_PROP_XI_AUTO_BANDWIDTH_CALCULATION = 573;
  262. public const int CAP_PROP_XI_FFS_FILE_ID = 594;
  263. public const int CAP_PROP_XI_FFS_FILE_SIZE = 580;
  264. public const int CAP_PROP_XI_FREE_FFS_SIZE = 581;
  265. public const int CAP_PROP_XI_USED_FFS_SIZE = 582;
  266. public const int CAP_PROP_XI_FFS_ACCESS_KEY = 583;
  267. public const int CAP_PROP_XI_SENSOR_FEATURE_SELECTOR = 585;
  268. public const int CAP_PROP_XI_SENSOR_FEATURE_VALUE = 586;
  269. public const int CAP_PROP_IOS_DEVICE_FOCUS = 9001;
  270. public const int CAP_PROP_IOS_DEVICE_EXPOSURE = 9002;
  271. public const int CAP_PROP_IOS_DEVICE_FLASH = 9003;
  272. public const int CAP_PROP_IOS_DEVICE_WHITEBALANCE = 9004;
  273. public const int CAP_PROP_IOS_DEVICE_TORCH = 9005;
  274. public const int CAP_PROP_GIGA_FRAME_OFFSET_X = 10001;
  275. public const int CAP_PROP_GIGA_FRAME_OFFSET_Y = 10002;
  276. public const int CAP_PROP_GIGA_FRAME_WIDTH_MAX = 10003;
  277. public const int CAP_PROP_GIGA_FRAME_HEIGH_MAX = 10004;
  278. public const int CAP_PROP_GIGA_FRAME_SENS_WIDTH = 10005;
  279. public const int CAP_PROP_GIGA_FRAME_SENS_HEIGH = 10006;
  280. public const int CAP_PROP_INTELPERC_PROFILE_COUNT = 11001;
  281. public const int CAP_PROP_INTELPERC_PROFILE_IDX = 11002;
  282. public const int CAP_PROP_INTELPERC_DEPTH_LOW_CONFIDENCE_VALUE = 11003;
  283. public const int CAP_PROP_INTELPERC_DEPTH_SATURATION_VALUE = 11004;
  284. public const int CAP_PROP_INTELPERC_DEPTH_CONFIDENCE_THRESHOLD = 11005;
  285. public const int CAP_PROP_INTELPERC_DEPTH_FOCAL_LENGTH_HORZ = 11006;
  286. public const int CAP_PROP_INTELPERC_DEPTH_FOCAL_LENGTH_VERT = 11007;
  287. public const int CAP_INTELPERC_DEPTH_GENERATOR = 1 << 29;
  288. public const int CAP_INTELPERC_IMAGE_GENERATOR = 1 << 28;
  289. public const int CAP_INTELPERC_GENERATORS_MASK = CAP_INTELPERC_DEPTH_GENERATOR + CAP_INTELPERC_IMAGE_GENERATOR;
  290. public const int CAP_INTELPERC_DEPTH_MAP = 0;
  291. public const int CAP_INTELPERC_UVDEPTH_MAP = 1;
  292. public const int CAP_INTELPERC_IR_MAP = 2;
  293. public const int CAP_INTELPERC_IMAGE = 3;
  294. public const int CAP_PROP_GPHOTO2_PREVIEW = 17001;
  295. public const int CAP_PROP_GPHOTO2_WIDGET_ENUMERATE = 17002;
  296. public const int CAP_PROP_GPHOTO2_RELOAD_CONFIG = 17003;
  297. public const int CAP_PROP_GPHOTO2_RELOAD_ON_CHANGE = 17004;
  298. public const int CAP_PROP_GPHOTO2_COLLECT_MSGS = 17005;
  299. public const int CAP_PROP_GPHOTO2_FLUSH_MSGS = 17006;
  300. public const int CAP_PROP_SPEED = 17007;
  301. public const int CAP_PROP_APERTURE = 17008;
  302. public const int CAP_PROP_EXPOSUREPROGRAM = 17009;
  303. public const int CAP_PROP_VIEWFINDER = 17010;
  304. public const int CAP_PROP_IMAGES_BASE = 18000;
  305. public const int CAP_PROP_IMAGES_LAST = 19000;
  306. // C++: enum VideoCaptureProperties
  307. public const int CAP_PROP_POS_MSEC = 0;
  308. public const int CAP_PROP_POS_FRAMES = 1;
  309. public const int CAP_PROP_POS_AVI_RATIO = 2;
  310. public const int CAP_PROP_FRAME_WIDTH = 3;
  311. public const int CAP_PROP_FRAME_HEIGHT = 4;
  312. public const int CAP_PROP_FPS = 5;
  313. public const int CAP_PROP_FOURCC = 6;
  314. public const int CAP_PROP_FRAME_COUNT = 7;
  315. public const int CAP_PROP_FORMAT = 8;
  316. public const int CAP_PROP_MODE = 9;
  317. public const int CAP_PROP_BRIGHTNESS = 10;
  318. public const int CAP_PROP_CONTRAST = 11;
  319. public const int CAP_PROP_SATURATION = 12;
  320. public const int CAP_PROP_HUE = 13;
  321. public const int CAP_PROP_GAIN = 14;
  322. public const int CAP_PROP_EXPOSURE = 15;
  323. public const int CAP_PROP_CONVERT_RGB = 16;
  324. public const int CAP_PROP_WHITE_BALANCE_BLUE_U = 17;
  325. public const int CAP_PROP_RECTIFICATION = 18;
  326. public const int CAP_PROP_MONOCHROME = 19;
  327. public const int CAP_PROP_SHARPNESS = 20;
  328. public const int CAP_PROP_AUTO_EXPOSURE = 21;
  329. public const int CAP_PROP_GAMMA = 22;
  330. public const int CAP_PROP_TEMPERATURE = 23;
  331. public const int CAP_PROP_TRIGGER = 24;
  332. public const int CAP_PROP_TRIGGER_DELAY = 25;
  333. public const int CAP_PROP_WHITE_BALANCE_RED_V = 26;
  334. public const int CAP_PROP_ZOOM = 27;
  335. public const int CAP_PROP_FOCUS = 28;
  336. public const int CAP_PROP_GUID = 29;
  337. public const int CAP_PROP_ISO_SPEED = 30;
  338. public const int CAP_PROP_BACKLIGHT = 32;
  339. public const int CAP_PROP_PAN = 33;
  340. public const int CAP_PROP_TILT = 34;
  341. public const int CAP_PROP_ROLL = 35;
  342. public const int CAP_PROP_IRIS = 36;
  343. public const int CAP_PROP_SETTINGS = 37;
  344. public const int CAP_PROP_BUFFERSIZE = 38;
  345. public const int CAP_PROP_AUTOFOCUS = 39;
  346. public const int CAP_PROP_SAR_NUM = 40;
  347. public const int CAP_PROP_SAR_DEN = 41;
  348. public const int CAP_PROP_BACKEND = 42;
  349. public const int CAP_PROP_CHANNEL = 43;
  350. public const int CAP_PROP_AUTO_WB = 44;
  351. public const int CAP_PROP_WB_TEMPERATURE = 45;
  352. //
  353. // C++: String cv::videoio_registry::getBackendName(VideoCaptureAPIs api)
  354. //
  355. //javadoc: getBackendName(api)
  356. public static string getBackendName (int api)
  357. {
  358. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  359. string retVal = Marshal.PtrToStringAnsi (videoio_Videoio_getBackendName_10(api));
  360. return retVal;
  361. #else
  362. return null;
  363. #endif
  364. }
  365. //
  366. // C++: vector_VideoCaptureAPIs cv::videoio_registry::getBackends()
  367. //
  368. // Return type 'vector_VideoCaptureAPIs' is not supported, skipping the function
  369. //
  370. // C++: vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends()
  371. //
  372. // Return type 'vector_VideoCaptureAPIs' is not supported, skipping the function
  373. //
  374. // C++: vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends()
  375. //
  376. // Return type 'vector_VideoCaptureAPIs' is not supported, skipping the function
  377. //
  378. // C++: vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends()
  379. //
  380. // Return type 'vector_VideoCaptureAPIs' is not supported, skipping the function
  381. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  382. const string LIBNAME = "__Internal";
  383. #else
  384. const string LIBNAME = "opencvforunity";
  385. #endif
  386. // C++: String cv::videoio_registry::getBackendName(VideoCaptureAPIs api)
  387. [DllImport (LIBNAME)]
  388. private static extern IntPtr videoio_Videoio_getBackendName_10 (int api);
  389. }
  390. }