hornetseye-dc1394 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/dc1394input.cc +10 -5
- metadata +2 -2
data/Rakefile
CHANGED
data/ext/dc1394input.cc
CHANGED
@@ -72,15 +72,20 @@ DC1394Input::DC1394Input( DC1394Ptr dc1394, unsigned int node, dc1394speed_t spe
|
|
72
72
|
<< dc1394_error_get_string( err ) );
|
73
73
|
dc1394color_coding_t coding;
|
74
74
|
dc1394_get_color_coding_from_video_mode( m_camera, videoMode, &coding );
|
75
|
-
|
75
|
+
switch ( coding ) {
|
76
|
+
case DC1394_COLOR_CODING_MONO8:
|
76
77
|
m_typecode = "UBYTE";
|
77
|
-
|
78
|
+
break;
|
79
|
+
case DC1394_COLOR_CODING_YUV422:
|
78
80
|
m_typecode = "UYVY";
|
79
|
-
|
81
|
+
break;
|
82
|
+
case DC1394_COLOR_CODING_RGB8:
|
80
83
|
m_typecode = "UBYTERGB";
|
81
|
-
|
84
|
+
break;
|
85
|
+
case DC1394_COLOR_CODING_MONO16:
|
82
86
|
m_typecode = "USINT";
|
83
|
-
|
87
|
+
break;
|
88
|
+
default:
|
84
89
|
ERRORMACRO( false, Error, , "Conversion for DC1394 colorspace " << coding
|
85
90
|
<< " not implemented yet" );
|
86
91
|
};
|