31 #include <Image/ByteImage.h>
32 #include <Image/ImageProcessor.h>
33 #include <Interfaces/VideoCaptureInterface.h>
35 #include <VideoCapture/Linux1394CaptureThreaded2.h>
83 defineOptionalProperty<ImageDimension>(
"VideoMode", ImageDimension(640, 480),
"Image resolution")
84 .setCaseInsensitive(
true)
85 .map(
"320x240", ImageDimension(320, 240))
86 .map(
"640x480", ImageDimension(640, 480))
87 .map(
"800x600", ImageDimension(800, 600))
88 .map(
"768x576", ImageDimension(768, 576))
89 .map(
"1024x768", ImageDimension(1024, 768))
90 .map(
"1280x960", ImageDimension(1280, 960))
91 .map(
"1600x1200", ImageDimension(1600, 1200))
92 .map(
"none", ImageDimension(0, 0));
94 defineOptionalProperty<ColorFormat>(
"ColorMode",
ColorFormat(CVideoCaptureInterface::eRGB24, eRgb),
"Image color mode")
95 .setCaseInsensitive(
true)
96 .map(
"gray-scale",
ColorFormat(CVideoCaptureInterface::eGrayScale, eGrayScale))
97 .map(
"rgb",
ColorFormat(CVideoCaptureInterface::eRGB24, eRgb))
98 .map(
"bayer-pattern",
ColorFormat(CVideoCaptureInterface::eBayerPatternToRGB24, eBayerPattern))
99 .map(
"bayer-pattern-to-rgb",
ColorFormat(CVideoCaptureInterface::eBayerPatternToRGB24, eRgb))
100 .map(
"yuv411-to-rgb",
ColorFormat(CVideoCaptureInterface::eYUV411ToRGB24, eRgb));
102 defineOptionalProperty<BayerPatternType>(
"BayerPatternType", eBayerPatternRg,
"Raw image color pattern")
103 .setCaseInsensitive(
true)
104 .map(
"bayer-pattern-bg", eBayerPatternBg)
105 .map(
"bayer-pattern-gb", eBayerPatternGb)
106 .map(
"bayer-pattern-gr", eBayerPatternGr)
107 .map(
"bayer-pattern-rg", eBayerPatternRg);
109 defineOptionalProperty<bool>(
"Format7Mode",
false,
"Use Format7 mode");
111 defineOptionalProperty<float>(
"FrameRate", 7.5f,
"Frames per second")
112 .setMatchRegex(
"\\d+(.\\d*)?")
117 defineRequiredProperty<std::string>(
"CameraUIDs",
"Camera UIDs seperated by comma, space or tab")
118 .setCaseInsensitive(
true)
119 .setMatchRegex(
"\\s*[a-zA-Z0-9]{16}\\s*((,|\\s)\\s*[a-zA-Z0-9]{16})*");
121 defineOptionalProperty<std::string>(
"ReferenceFrameName",
"EyeLeftCameras",
"Optional reference frame name.");
195 bool capture(
void** ppImageBuffers)
override;
202 return "IEEE1394ImageProvider";