hornetseye-frame 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -2
- data/Rakefile +2 -3
- data/lib/hornetseye-frame/frame.rb +3 -3
- metadata +7 -7
data/README.md
CHANGED
@@ -1,4 +1,27 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
hornetseye-frame
|
2
|
+
================
|
3
|
+
|
4
|
+
**Author**: Jan Wedekind
|
5
|
+
**Copyright**: 2010
|
6
|
+
**License**: GPL
|
7
|
+
|
8
|
+
Synopsis
|
9
|
+
--------
|
10
|
+
|
3
11
|
This Ruby extension provides conversion for compressed colourspaces.
|
4
12
|
|
13
|
+
Installation
|
14
|
+
------------
|
15
|
+
*hornetseye-alsa* requires the software scaling library. If you are running Debian or (K)ubuntu, you can install it like this:
|
16
|
+
|
17
|
+
$ sudo aptitude install libswscale-dev
|
18
|
+
|
19
|
+
To install this Ruby extension, use the following command:
|
20
|
+
|
21
|
+
$ sudo gem install hornetseye-frame
|
22
|
+
|
23
|
+
Alternatively you can build and install the Ruby extension from source as follows:
|
24
|
+
|
25
|
+
$ rake
|
26
|
+
$ sudo rake install
|
27
|
+
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ require 'rbconfig'
|
|
8
8
|
require 'tempfile'
|
9
9
|
|
10
10
|
PKG_NAME = 'hornetseye-frame'
|
11
|
-
PKG_VERSION = '0.9.
|
11
|
+
PKG_VERSION = '0.9.2'
|
12
12
|
CFG = RbConfig::CONFIG
|
13
13
|
CXX = ENV[ 'CXX' ] || 'g++'
|
14
14
|
RB_FILES = FileList[ 'lib/**/*.rb' ]
|
@@ -121,8 +121,7 @@ end
|
|
121
121
|
begin
|
122
122
|
require 'yard'
|
123
123
|
YARD::Rake::YardocTask.new :yard do |y|
|
124
|
-
y.
|
125
|
-
y.files << FileList[ 'lib/**/*.rb' ]
|
124
|
+
y.files << RB_FILES
|
126
125
|
end
|
127
126
|
rescue LoadError
|
128
127
|
STDERR.puts 'Please install \'yard\' if you want to generate documentation'
|
@@ -48,13 +48,13 @@ module Hornetseye
|
|
48
48
|
widtha = ( width + 3 ) & ~0x3
|
49
49
|
widtha * height * 2
|
50
50
|
when YV12
|
51
|
-
width2 = ( width + 1 )
|
52
|
-
height2 = ( height + 1 )
|
51
|
+
width2 = ( width + 1 ).div 2
|
52
|
+
height2 = ( height + 1 ).div 2
|
53
53
|
widtha = ( width + 7 ) & ~0x7
|
54
54
|
width2a = ( width2 + 7 ) & ~0x7
|
55
55
|
widtha * height + 2 * width2a * height2
|
56
56
|
when I420
|
57
|
-
width * height * 3
|
57
|
+
( width * height * 3 ).div 2
|
58
58
|
when MJPG
|
59
59
|
width * height * 2
|
60
60
|
else
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 2
|
9
|
+
version: 0.9.2
|
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-03-12 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -71,18 +71,18 @@ files:
|
|
71
71
|
- README.md
|
72
72
|
- COPYING
|
73
73
|
- .document
|
74
|
+
- lib/hornetseye-frame/node.rb
|
74
75
|
- lib/hornetseye-frame/shortcuts.rb
|
75
|
-
- lib/hornetseye-frame/fourcc.rb
|
76
76
|
- lib/hornetseye-frame/frame.rb
|
77
|
-
- lib/hornetseye-frame/
|
77
|
+
- lib/hornetseye-frame/fourcc.rb
|
78
78
|
- lib/hornetseye_frame_ext.rb
|
79
|
+
- ext/colourspace.cc
|
79
80
|
- ext/init.cc
|
80
81
|
- ext/frame.cc
|
81
|
-
- ext/colourspace.cc
|
82
82
|
- ext/frame.hh
|
83
83
|
- ext/colourspace.hh
|
84
|
-
- ext/rubyinc.hh
|
85
84
|
- ext/error.hh
|
85
|
+
- ext/rubyinc.hh
|
86
86
|
- test/ts_frame.rb
|
87
87
|
- test/tc_frame.rb
|
88
88
|
has_rdoc: yard
|