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 +4 -4
- data/config.rb +1 -1
- data/ext/v4l2input.cc +3 -0
- data/lib/hornetseye-v4l2/v4l2input.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a32cf796fb7b549235e28377c81b7590eec00fa6
|
4
|
+
data.tar.gz: 722721f6c8e62635a7386cd3c429ce6616584567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d3beb0bf05525e41a6372b1b2557ae7cad5c1ac6dadf931fde05e45e10abc761dd5cd2b312792354507dca253725be820b7e5be7cb55eeac54742f0de6d5b10
|
7
|
+
data.tar.gz: a54251f1082e3338d4f6db4809998ad6ea0d99078e046e4fbee755eb13b4e35db46ee07e2c8d18de26821f92754963235ab01dedbf60f552585990066e96bb93
|
data/config.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: malloc
|