diff --git a/libuvc_camera/cfg/UVCCamera.cfg b/libuvc_camera/cfg/UVCCamera.cfg index 5f02b0bc9ddc8e4cf58633fe23c61385b40ff768..b9ce9a42e017d642f5b8c87f619a18601a068139 100755 --- a/libuvc_camera/cfg/UVCCamera.cfg +++ b/libuvc_camera/cfg/UVCCamera.cfg @@ -25,13 +25,24 @@ gen.add("serial", str_t, SensorLevels.RECONFIGURE_CLOSE, gen.add("index", int_t, SensorLevels.RECONFIGURE_CLOSE, "Index into the list of cameras that match the above parameters.", - 0) + 0, 0) gen.add("width", int_t, SensorLevels.RECONFIGURE_CLOSE, - "Image width.", 640) + "Image width.", 640, 0) gen.add("height", int_t, SensorLevels.RECONFIGURE_CLOSE, - "Image height.", 480) + "Image height.", 480, 0) + +video_modes = gen.enum([gen.const("uncompressed", str_t, "uncompressed", "Use any uncompressed format"), + gen.const("yuyv", str_t, "yuyv", "YUYV"), + gen.const("uyvy", str_t, "uyvy", "UYVY"), + gen.const("rgb", str_t, "rgb", "RGB"), + gen.const("jpeg", str_t, "jpeg", "JPEG/MJPEG")], + "Video stream format") + +gen.add("video_mode", str_t, SensorLevels.RECONFIGURE_CLOSE, + "Format of video stream from camera.", "uncompressed", + edit_method = video_modes) gen.add("frame_rate", double_t, SensorLevels.RECONFIGURE_CLOSE, "Camera speed, frames per second.", 15.0, 0.1, 1000.0)