
(libload "libc/constants")

(defconstant "SPEED_100"  0)
(defconstant "SPEED_200"  1)
(defconstant "SPEED_400"  2)
(defconstant "SPEED_MIN"     0)
(defconstant "SPEED_MAX"     2)
(defconstant "NUM_SPEEDS"    3)
(defconstant "FRAMERATE_1_875" 32)
(defconstant "FRAMERATE_3_75"  33)
(defconstant "FRAMERATE_7_5"  34)
(defconstant "FRAMERATE_15"   35)
(defconstant "FRAMERATE_30"   36)
(defconstant "FRAMERATE_60"   37)
(defconstant "FRAMERATE_MIN"     32)
(defconstant "FRAMERATE_MAX"     37)
(defconstant "NUM_FRAMERATES"    6)
(defconstant "MODE_160x120_YUV444" 64)
(defconstant "MODE_320x240_YUV422" 65)
(defconstant "MODE_640x480_YUV411" 66)
(defconstant "MODE_640x480_YUV422" 67 )
(defconstant "MODE_640x480_RGB"   68)
(defconstant "MODE_640x480_MONO"  69)
(defconstant "MODE_640x480_MONO16"  70)
(defconstant "MODE_FORMAT0_MIN" 64)
(defconstant "MODE_FORMAT0_MAX" 70)
(defconstant "NUM_FORMAT0_MODES" 7)
(defconstant "MODE_800x600_YUV422"  96)
(defconstant "MODE_800x600_RGB"   97)
(defconstant "MODE_800x600_MONO"  98)
(defconstant "MODE_1024x768_YUV422"  99)
(defconstant "MODE_1024x768_RGB"  100)
(defconstant "MODE_1024x768_MONO"  101)
(defconstant "MODE_800x600_MONO16"  102)
(defconstant "MODE_1024x768_MONO16"  103)
(defconstant "MODE_FORMAT1_MIN" 96)
(defconstant "MODE_FORMAT1_MAX" 103)
(defconstant "NUM_FORMAT1_MODES" 8)
(defconstant "MODE_1280x960_YUV422" 128)
(defconstant "MODE_1280x960_RGB"    129)
(defconstant "MODE_1280x960_MONO"   130)
(defconstant "MODE_1600x1200_YUV422"  131)
(defconstant "MODE_1600x1200_RGB"    132)
(defconstant "MODE_1600x1200_MONO"   133)
(defconstant "MODE_1280x960_MONO16"   134)
(defconstant "MODE_1600x1200_MONO16"  135)
(defconstant "MODE_FORMAT2_MIN" 128)
(defconstant "MODE_FORMAT2_MAX" 135)
(defconstant "NUM_FORMAT2_MODES" 8)
(defconstant "MODE_EXIF"  256)
(defconstant "MODE_FORMAT6_MIN"  256)
(defconstant "MODE_FORMAT6_MAX"  256)
(defconstant "NUM_FORMAT6_MODES"  1)
(defconstant "MODE_FORMAT7_0" 288)
(defconstant "MODE_FORMAT7_1" 289)
(defconstant "MODE_FORMAT7_2" 290 )
(defconstant "MODE_FORMAT7_3"  291)
(defconstant "MODE_FORMAT7_4"  292)
(defconstant "MODE_FORMAT7_5"  293)
(defconstant "MODE_FORMAT7_6"  294)
(defconstant "MODE_FORMAT7_7"  295)
(defconstant "MODE_FORMAT7_MIN"   288)
(defconstant "MODE_FORMAT7_MAX"   295)
(defconstant "NUM_MODE_FORMAT7"   8)
(defconstant "COLOR_FORMAT7_MONO8"  320)
(defconstant "COLOR_FORMAT7_YUV411"  321)
(defconstant "COLOR_FORMAT7_YUV422"  322)
(defconstant "COLOR_FORMAT7_YUV444" 323)
(defconstant "COLOR_FORMAT7_RGB8"   324)
(defconstant "COLOR_FORMAT7_MONO16"  325)
(defconstant "COLOR_FORMAT7_RGB16"   326)
(defconstant "COLOR_FORMAT7_MIN"  320)
(defconstant "COLOR_FORMAT7_MAX"  326)
(defconstant "NUM_COLOR_FORMAT7"  7)
(defconstant "TRIGGER_MODE_0" 352)
(defconstant "TRIGGER_MODE_1" 353)
(defconstant "TRIGGER_MODE_2" 354 )
(defconstant "TRIGGER_MODE_3" 355 )
(defconstant "TRIGGER_MODE_MIN"   352)
(defconstant "TRIGGER_MODE_MAX"   355)
(defconstant "NUM_TRIGGER_MODE"   4)
(defconstant "FORMAT_VGA_NONCOMPRESSED"  384)
(defconstant "FORMAT_SVGA_NONCOMPRESSED_1"  385)
(defconstant "FORMAT_SVGA_NONCOMPRESSED_2"  386    )
(defconstant "FORMAT_STILL_IMAGE" 390)
(defconstant "FORMAT_SCALABLE_IMAGE_SIZE"  391)
(defconstant "FORMAT_MIN"     384)
(defconstant "FORMAT_MAX"     391)
(defconstant "NUM_FORMATS"    8)
(defconstant "FEATURE_BRIGHTNESS"   416)
(defconstant "FEATURE_EXPOSURE"    417)
(defconstant "FEATURE_SHARPNESS"   418 )
(defconstant "FEATURE_WHITE_BALANCE"  419)
(defconstant "FEATURE_HUE"           420)
(defconstant "FEATURE_SATURATION"   421)
(defconstant "FEATURE_GAMMA"     422)
(defconstant "FEATURE_SHUTTER"   423)
(defconstant "FEATURE_GAIN"     424)
(defconstant "FEATURE_IRIS"    425)
(defconstant "FEATURE_FOCUS"    426)
(defconstant "FEATURE_TEMPERATURE"  427)
(defconstant "FEATURE_TRIGGER"     428    )
(defconstant "FEATURE_ZOOM"   429)
(defconstant "FEATURE_PAN"    430)
(defconstant "FEATURE_TILT"   431)
(defconstant "FEATURE_OPTICAL_FILTER"   432    )
(defconstant "FEATURE_CAPTURE_SIZE"    433)
(defconstant "FEATURE_CAPTURE_QUALITY"  434)
(defconstant "FEATURE_MIN"     416)
(defconstant "FEATURE_MAX"     434)
(defconstant "NUM_FEATURES"    19)
(defconstant "MAX_CHARS"                   32)
(defconstant "DC1394_SUCCESS"               1)
(defconstant "DC1394_FAILURE"              -1)
(defconstant "DC1394_NO_CAMERA"            65535)
(defconstant "QUERY_FROM_CAMERA" -1)
(defconstant "USE_MAX_AVAIL"     -2)
(defconstant "USE_RECOMMENDED"   -3)
(defconstant "DC1394_FALSE" 0)
(defconstant "DC1394_TRUE"  1)

