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 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
- *hornetseye-v4l2* requires the V4L2 heasers. If you are running Debian or (K)ubuntu, you can install them like this:
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.2.3'
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.options << '--no-private'
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.8' ]
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.8' ]
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"
@@ -428,110 +428,110 @@ module Hornetseye
428
428
  # A feature
429
429
  FEATURE_LASTP1 = nil
430
430
 
431
- # Close the video device
432
- #
433
- # @return [V4L2Input] Returns +self+.
434
- def close
435
- end
431
+ end
436
432
 
437
- # Read a video frame
438
- #
439
- # @return [MultiArray,Frame_] The video frame.
440
- def read
441
- end
433
+ # Close the video device
434
+ #
435
+ # @return [V4L2Input] Returns +self+.
436
+ def close
437
+ end
442
438
 
443
- # Check whether device is not closed
444
- #
445
- # @return [Boolean] Returns +true+ as long as device is open.
446
- def status?
447
- end
439
+ # Read a video frame
440
+ #
441
+ # @return [MultiArray,Frame_] The video frame.
442
+ def read
443
+ end
448
444
 
449
- # Width of video input
450
- #
451
- # @return [Integer] Width of video frames.
452
- def width
453
- end
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
- # Height of video input
456
- #
457
- # @return [Integer] Width of video frames.
458
- def height
459
- end
451
+ # Width of video input
452
+ #
453
+ # @return [Integer] Width of video frames.
454
+ def width
455
+ end
460
456
 
461
- # Check for existence of feature
462
- #
463
- # @param [Integer] id Feature identifier.
464
- #
465
- # @return [Boolean] Returns +true+ if this feature is supported.
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
- # Get value of feature
470
- #
471
- # @param [Integer] id Feature identifier.
472
- #
473
- # @return [Integer] Current value of feature.
474
- def feature_read( id )
475
- end
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
- # Set value of feature
478
- #
479
- # @param [Integer] id Feature identifier.
480
- #
481
- # @return [Integer] Returns +value+.
482
- def feature_write( id, value )
483
- end
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
- # Get type of feature
486
- #
487
- # @param [Integer] id Feature identifier.
488
- #
489
- # @return [Integer] Type of feature.
490
- def feature_type( id )
491
- end
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
- # Get name of feature
494
- #
495
- # @param [Integer] id Feature identifier.
496
- #
497
- # @return [String] Name of feature.
498
- def feature_name( id )
499
- end
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
- # Get minimum value of feature
502
- #
503
- # @param [Integer] id Feature identifier.
504
- #
505
- # @return [Integer] Minimum value.
506
- def feature_min( id )
507
- end
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
- # Get maximum value of feature
510
- #
511
- # @param [Integer] id Feature identifier.
512
- #
513
- # @return [Integer] Maximum value.
514
- def feature_max( id )
515
- end
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
- # Get step size of feature
518
- #
519
- # @param [Integer] id Feature identifier.
520
- #
521
- # @return [Integer] Step size.
522
- def feature_step( id )
523
- end
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
- # Get default value of feature
526
- #
527
- # @param [Integer] id Feature identifier.
528
- #
529
- # @return [Integer] Default value.
530
- def feature_default_value( id )
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
@@ -73,6 +73,8 @@ module Hornetseye
73
73
 
74
74
  end
75
75
 
76
+ include ReaderConversion
77
+
76
78
  end
77
79
 
78
80
  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
- version: 0.2.3
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: 2010-11-21 00:00:00 +00:00
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
- - 8
45
- version: "0.8"
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/