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