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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/ext/dc1394input.cc +10 -5
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-dc1394'
10
- PKG_VERSION = '0.3.0'
10
+ PKG_VERSION = '0.3.1'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
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
- if ( coding == DC1394_COLOR_CODING_MONO8 )
75
+ switch ( coding ) {
76
+ case DC1394_COLOR_CODING_MONO8:
76
77
  m_typecode = "UBYTE";
77
- else if ( coding == DC1394_COLOR_CODING_YUV422 )
78
+ break;
79
+ case DC1394_COLOR_CODING_YUV422:
78
80
  m_typecode = "UYVY";
79
- else if ( coding == DC1394_COLOR_CODING_RGB8 )
81
+ break;
82
+ case DC1394_COLOR_CODING_RGB8:
80
83
  m_typecode = "UBYTERGB";
81
- else if ( coding == DC1394_COLOR_CODING_MONO16 )
84
+ break;
85
+ case DC1394_COLOR_CODING_MONO16:
82
86
  m_typecode = "USINT";
83
- else {
87
+ break;
88
+ default:
84
89
  ERRORMACRO( false, Error, , "Conversion for DC1394 colorspace " << coding
85
90
  << " not implemented yet" );
86
91
  };
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind