hornetseye-v4l2 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -2
- data/Rakefile +4 -5
- data/lib/hornetseye-v4l2/docs.rb +89 -89
- data/lib/hornetseye-v4l2/v4l2input.rb +2 -0
- metadata +10 -10
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
hornetseye-v4l2
|
2
|
-
|
2
|
+
===============
|
3
3
|
This Ruby extension provides camera input using Video for Linux version 2.
|
4
4
|
|
5
5
|
**Author**: Jan Wedekind
|
@@ -13,7 +13,8 @@ This Ruby extension provides the class {Hornetseye::V4L2Input} for capturing vid
|
|
13
13
|
|
14
14
|
Installation
|
15
15
|
------------
|
16
|
-
|
16
|
+
|
17
|
+
*hornetseye-v4l2* requires the V4L2 headers. If you are running Debian or (K)ubuntu, you can install them like this:
|
17
18
|
|
18
19
|
$ sudo aptitude install linux-libc-dev
|
19
20
|
|
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.
|
10
|
+
PKG_VERSION = '0.3.0'
|
11
11
|
CFG = RbConfig::CONFIG
|
12
12
|
CXX = ENV[ 'CXX' ] || 'g++'
|
13
13
|
RB_FILES = FileList[ 'lib/**/*.rb' ]
|
@@ -81,8 +81,7 @@ end
|
|
81
81
|
begin
|
82
82
|
require 'yard'
|
83
83
|
YARD::Rake::YardocTask.new :yard do |y|
|
84
|
-
y.
|
85
|
-
y.files << FileList[ 'lib/**/*.rb' ]
|
84
|
+
y.files << RB_FILES
|
86
85
|
end
|
87
86
|
rescue LoadError
|
88
87
|
STDERR.puts 'Please install \'yard\' if you want to generate documentation'
|
@@ -115,7 +114,7 @@ begin
|
|
115
114
|
s.extra_rdoc_files = []
|
116
115
|
s.rdoc_options = %w{--no-private}
|
117
116
|
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
118
|
-
s.add_dependency %<multiarray>, [ '~> 0.
|
117
|
+
s.add_dependency %<multiarray>, [ '~> 0.20' ]
|
119
118
|
s.add_dependency %<hornetseye-frame>, [ '~> 0.5' ]
|
120
119
|
s.add_development_dependency %q{rake}
|
121
120
|
end
|
@@ -138,7 +137,7 @@ begin
|
|
138
137
|
s.extra_rdoc_files = []
|
139
138
|
s.rdoc_options = %w{--no-private}
|
140
139
|
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
141
|
-
s.add_dependency %<multiarray>, [ '~> 0.
|
140
|
+
s.add_dependency %<multiarray>, [ '~> 0.20' ]
|
142
141
|
s.add_dependency %<hornetseye-frame>, [ '~> 0.5' ]
|
143
142
|
end
|
144
143
|
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
|
data/lib/hornetseye-v4l2/docs.rb
CHANGED
@@ -428,110 +428,110 @@ module Hornetseye
|
|
428
428
|
# A feature
|
429
429
|
FEATURE_LASTP1 = nil
|
430
430
|
|
431
|
-
|
432
|
-
#
|
433
|
-
# @return [V4L2Input] Returns +self+.
|
434
|
-
def close
|
435
|
-
end
|
431
|
+
end
|
436
432
|
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
433
|
+
# Close the video device
|
434
|
+
#
|
435
|
+
# @return [V4L2Input] Returns +self+.
|
436
|
+
def close
|
437
|
+
end
|
442
438
|
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
439
|
+
# Read a video frame
|
440
|
+
#
|
441
|
+
# @return [MultiArray,Frame_] The video frame.
|
442
|
+
def read
|
443
|
+
end
|
448
444
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
445
|
+
# Check whether device is not closed
|
446
|
+
#
|
447
|
+
# @return [Boolean] Returns +true+ as long as device is open.
|
448
|
+
def status?
|
449
|
+
end
|
454
450
|
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
451
|
+
# Width of video input
|
452
|
+
#
|
453
|
+
# @return [Integer] Width of video frames.
|
454
|
+
def width
|
455
|
+
end
|
460
456
|
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
def feature_exist?( id )
|
467
|
-
end
|
457
|
+
# Height of video input
|
458
|
+
#
|
459
|
+
# @return [Integer] Width of video frames.
|
460
|
+
def height
|
461
|
+
end
|
468
462
|
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
463
|
+
# Check for existence of feature
|
464
|
+
#
|
465
|
+
# @param [Integer] id Feature identifier.
|
466
|
+
#
|
467
|
+
# @return [Boolean] Returns +true+ if this feature is supported.
|
468
|
+
def feature_exist?( id )
|
469
|
+
end
|
476
470
|
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
471
|
+
# Get value of feature
|
472
|
+
#
|
473
|
+
# @param [Integer] id Feature identifier.
|
474
|
+
#
|
475
|
+
# @return [Integer] Current value of feature.
|
476
|
+
def feature_read( id )
|
477
|
+
end
|
484
478
|
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
479
|
+
# Set value of feature
|
480
|
+
#
|
481
|
+
# @param [Integer] id Feature identifier.
|
482
|
+
#
|
483
|
+
# @return [Integer] Returns +value+.
|
484
|
+
def feature_write( id, value )
|
485
|
+
end
|
492
486
|
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
487
|
+
# Get type of feature
|
488
|
+
#
|
489
|
+
# @param [Integer] id Feature identifier.
|
490
|
+
#
|
491
|
+
# @return [Integer] Type of feature.
|
492
|
+
def feature_type( id )
|
493
|
+
end
|
500
494
|
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
495
|
+
# Get name of feature
|
496
|
+
#
|
497
|
+
# @param [Integer] id Feature identifier.
|
498
|
+
#
|
499
|
+
# @return [String] Name of feature.
|
500
|
+
def feature_name( id )
|
501
|
+
end
|
508
502
|
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
503
|
+
# Get minimum value of feature
|
504
|
+
#
|
505
|
+
# @param [Integer] id Feature identifier.
|
506
|
+
#
|
507
|
+
# @return [Integer] Minimum value.
|
508
|
+
def feature_min( id )
|
509
|
+
end
|
516
510
|
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
511
|
+
# Get maximum value of feature
|
512
|
+
#
|
513
|
+
# @param [Integer] id Feature identifier.
|
514
|
+
#
|
515
|
+
# @return [Integer] Maximum value.
|
516
|
+
def feature_max( id )
|
517
|
+
end
|
524
518
|
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
end
|
532
|
-
|
519
|
+
# Get step size of feature
|
520
|
+
#
|
521
|
+
# @param [Integer] id Feature identifier.
|
522
|
+
#
|
523
|
+
# @return [Integer] Step size.
|
524
|
+
def feature_step( id )
|
533
525
|
end
|
534
526
|
|
527
|
+
# Get default value of feature
|
528
|
+
#
|
529
|
+
# @param [Integer] id Feature identifier.
|
530
|
+
#
|
531
|
+
# @return [Integer] Default value.
|
532
|
+
def feature_default_value( id )
|
533
|
+
end
|
534
|
+
|
535
535
|
end
|
536
536
|
|
537
537
|
end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
- 2
|
8
7
|
- 3
|
9
|
-
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Wedekind
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-26 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +41,8 @@ dependencies:
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
segments:
|
43
43
|
- 0
|
44
|
-
-
|
45
|
-
version: "0.
|
44
|
+
- 20
|
45
|
+
version: "0.20"
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -85,19 +85,19 @@ files:
|
|
85
85
|
- README.md
|
86
86
|
- COPYING
|
87
87
|
- .document
|
88
|
+
- lib/hornetseye_v4l2_ext.rb
|
88
89
|
- lib/hornetseye-v4l2/v4l2input.rb
|
89
90
|
- lib/hornetseye-v4l2/docs.rb
|
90
|
-
- lib/hornetseye_v4l2_ext.rb
|
91
|
-
- ext/v4l2input.cc
|
92
|
-
- ext/v4l2select.cc
|
93
91
|
- ext/init.cc
|
92
|
+
- ext/v4l2select.cc
|
94
93
|
- ext/frame.cc
|
94
|
+
- ext/v4l2input.cc
|
95
95
|
- ext/frame.hh
|
96
|
+
- ext/v4l2input.hh
|
96
97
|
- ext/rubytools.hh
|
97
98
|
- ext/v4l2select.hh
|
98
|
-
- ext/v4l2input.hh
|
99
|
-
- ext/rubyinc.hh
|
100
99
|
- ext/error.hh
|
100
|
+
- ext/rubyinc.hh
|
101
101
|
- ext/rubytools.tcc
|
102
102
|
has_rdoc: yard
|
103
103
|
homepage: http://wedesoft.github.com/hornetseye-v4l2/
|