hornetseye-v4l2 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c66065fe17f4e5839ec539dfabc003ee3b6f923b
4
- data.tar.gz: e362970dcb7afe142dfa212a685aaccdc6c5844f
3
+ metadata.gz: a32cf796fb7b549235e28377c81b7590eec00fa6
4
+ data.tar.gz: 722721f6c8e62635a7386cd3c429ce6616584567
5
5
  SHA512:
6
- metadata.gz: c967f4854c44acd54af8cc74dd668e66682a50dd863f31bc15273bf9baf1dc96f8feadedb75e655631e04c47dfe1c38bc1d662f4425a1113be12b5454d8522f4
7
- data.tar.gz: 51f731835a23ba6e60a7dd40b05586bbe168d740d097850edcdc39dc02335a3f06bd0bac44e860224d4e0c6954b0827f26d198bec860e2ba5b30d13c024622ef
6
+ metadata.gz: 6d3beb0bf05525e41a6372b1b2557ae7cad5c1ac6dadf931fde05e45e10abc761dd5cd2b312792354507dca253725be820b7e5be7cb55eeac54742f0de6d5b10
7
+ data.tar.gz: a54251f1082e3338d4f6db4809998ad6ea0d99078e046e4fbee755eb13b4e35db46ee07e2c8d18de26821f92754963235ab01dedbf60f552585990066e96bb93
data/config.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rake'
2
2
 
3
3
  PKG_NAME = 'hornetseye-v4l2'
4
- PKG_VERSION = '1.0.5'
4
+ PKG_VERSION = '1.0.6'
5
5
  CFG = RbConfig::CONFIG
6
6
  CXX = ENV[ 'CXX' ] || 'g++'
7
7
  RB_FILES = ['config.rb'] + FileList[ 'lib/**/*.rb' ]
data/ext/v4l2input.cc CHANGED
@@ -128,6 +128,9 @@ V4L2Input::V4L2Input( const std::string &device, int channel,
128
128
  case V4L2_PIX_FMT_GREY:
129
129
  m_typecode = "UBYTE";
130
130
  break;
131
+ case V4L2_PIX_FMT_Y16:
132
+ m_typecode = "USINT";
133
+ break;
131
134
  case V4L2_PIX_FMT_RGB24:
132
135
  m_typecode = "UBYTERGB";
133
136
  break;
@@ -48,6 +48,7 @@ module Hornetseye
48
48
  MODE_YUYV => YUY2,
49
49
  MODE_YUV420 => I420,
50
50
  MODE_GREY => UBYTE,
51
+ MODE_Y16 => USINT,
51
52
  MODE_RGB24 => UBYTERGB,
52
53
  MODE_BGR24 => BGR }
53
54
  modes.each do |mode|
@@ -60,7 +61,7 @@ module Hornetseye
60
61
  if action
61
62
  desired = action.call frame_types
62
63
  else
63
- preference = [I420, UYVY, YUY2, UBYTERGB, BGR, UBYTE]
64
+ preference = [I420, UYVY, YUY2, UBYTERGB, BGR, USINT, UBYTE]
64
65
  desired = frame_types.sort_by do |mode|
65
66
  [-preference.index(mode.first), mode[1] * mode[2]]
66
67
  end.last
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-v4l2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Wedekind
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2016-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: malloc