hornetseye-v4l2 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/ext/v4l2input.cc +2 -3
  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-v4l2'
10
- PKG_VERSION = '0.4.1'
10
+ PKG_VERSION = '0.4.2'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
data/ext/v4l2input.cc CHANGED
@@ -109,11 +109,10 @@ V4L2Input::V4L2Input( const std::string &device, int channel,
109
109
  << "h = " << select->height() << endl;
110
110
  #endif
111
111
  m_format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
112
- m_format.fmt.pix.field = V4L2_FIELD_NONE;
113
112
  m_format.fmt.pix.width = select->width();
114
113
  m_format.fmt.pix.height = select->height();
115
114
  m_format.fmt.pix.pixelformat = coding;
116
- m_format.fmt.pix.field = V4L2_FIELD_SEQ_TB;
115
+ m_format.fmt.pix.field = V4L2_FIELD_ANY; // V4L2_FIELD_SEQ_TB
117
116
  ERRORMACRO( xioctl( VIDIOC_S_FMT, &m_format ) == 0, Error, ,
118
117
  "Error switching device \"" << m_device << "\" to selected format" );
119
118
  switch ( coding ) {
@@ -147,7 +146,7 @@ V4L2Input::V4L2Input( const std::string &device, int channel,
147
146
  #ifndef NDEBUG
148
147
  cerr << "Trying memory mapped I/O." << endl;
149
148
  #endif
150
- // m_format.fmt.pix.sizeimage;
149
+ // m_format.fmt.pix.sizeimage?
151
150
  memset( &m_req, 0, sizeof(m_req) );
152
151
  m_req.count = 2;
153
152
  m_req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hornetseye-v4l2
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Wedekind
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-16 00:00:00 Z
13
+ date: 2011-08-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: malloc