hornetseye-frame 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/hornetseye-frame/frame.rb +1 -1
- data/test/tc_frame.rb +16 -23
- metadata +4 -22
data/Rakefile
CHANGED
data/test/tc_frame.rb
CHANGED
@@ -46,54 +46,47 @@ class TC_Frame < Test::Unit::TestCase
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def test_frame_inspect
|
49
|
-
assert_equal 'Frame(YV12
|
49
|
+
assert_equal 'Frame(YV12)', F(YV12).inspect
|
50
50
|
end
|
51
51
|
|
52
52
|
def test_frame_to_s
|
53
|
-
assert_equal 'Frame(YV12
|
53
|
+
assert_equal 'Frame(YV12)', F(YV12).to_s
|
54
54
|
end
|
55
55
|
|
56
56
|
def test_frame_typecode
|
57
|
-
assert_equal YV12, F(
|
57
|
+
assert_equal YV12, F(YV12).typecode
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
61
|
-
assert_equal
|
62
|
-
|
63
|
-
|
64
|
-
def test_frame_height
|
65
|
-
assert_equal 240, F( YV12, 320, 240 ).height
|
66
|
-
end
|
67
|
-
|
68
|
-
def test_frame_shape
|
69
|
-
assert_equal [ 320, 240 ], F( YV12, 320, 240 ).shape
|
60
|
+
def test_frame_equal
|
61
|
+
assert_equal F(YV12), F(YV12)
|
62
|
+
assert_not_equal F(YV12), F(I420)
|
70
63
|
end
|
71
64
|
|
72
|
-
def
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
def test_dup
|
66
|
+
f = F.new UYVY, 8, 2
|
67
|
+
f.memory.write 'abcd'
|
68
|
+
f.dup.memory.write 'efgh'
|
69
|
+
assert_equal 'abcd', f.memory.read(4)
|
77
70
|
end
|
78
71
|
|
79
72
|
def test_typecode
|
80
|
-
assert_equal YV12, F.new(
|
73
|
+
assert_equal YV12, F.new(YV12, 320, 240).typecode
|
81
74
|
end
|
82
75
|
|
83
76
|
def test_shape
|
84
|
-
assert_equal [
|
77
|
+
assert_equal [320, 240], F.new(YV12, 320, 240).shape
|
85
78
|
end
|
86
79
|
|
87
80
|
def test_width
|
88
|
-
assert_equal 320, F.new(
|
81
|
+
assert_equal 320, F.new(YV12, 320, 240).width
|
89
82
|
end
|
90
83
|
|
91
84
|
def test_height
|
92
|
-
assert_equal 240, F.new(
|
85
|
+
assert_equal 240, F.new(YV12, 320, 240).height
|
93
86
|
end
|
94
87
|
|
95
88
|
def test_to_type
|
96
|
-
m = M(
|
89
|
+
m = M(Hornetseye::UBYTERGB, 2).new(160, 120).fill! C( 32, 64, 128 )
|
97
90
|
[ UYVY, YUY2, I420, YV12 ].each do |c|
|
98
91
|
result = m.to_type( c ).to_type UBYTERGB
|
99
92
|
assert_equal ( m / 8.0 ).round, ( result / 8.0 ).round
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-frame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 11
|
8
|
-
- 0
|
9
|
-
version: 0.11.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.11.1
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Jan Wedekind
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable:
|
13
|
+
date: 2011-07-10 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: malloc
|
@@ -25,9 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ~>
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 1
|
31
23
|
version: "1.1"
|
32
24
|
type: :runtime
|
33
25
|
version_requirements: *id001
|
@@ -39,9 +31,6 @@ dependencies:
|
|
39
31
|
requirements:
|
40
32
|
- - ~>
|
41
33
|
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
- 23
|
45
34
|
version: "0.23"
|
46
35
|
type: :runtime
|
47
36
|
version_requirements: *id002
|
@@ -53,8 +42,6 @@ dependencies:
|
|
53
42
|
requirements:
|
54
43
|
- - ">="
|
55
44
|
- !ruby/object:Gem::Version
|
56
|
-
segments:
|
57
|
-
- 0
|
58
45
|
version: "0"
|
59
46
|
type: :development
|
60
47
|
version_requirements: *id003
|
@@ -85,7 +72,6 @@ files:
|
|
85
72
|
- ext/rubyinc.hh
|
86
73
|
- test/ts_frame.rb
|
87
74
|
- test/tc_frame.rb
|
88
|
-
has_rdoc: yard
|
89
75
|
homepage: http://wedesoft.github.com/hornetseye-frame/
|
90
76
|
licenses: []
|
91
77
|
|
@@ -100,21 +86,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
segments:
|
104
|
-
- 0
|
105
89
|
version: "0"
|
106
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
91
|
none: false
|
108
92
|
requirements:
|
109
93
|
- - ">="
|
110
94
|
- !ruby/object:Gem::Version
|
111
|
-
segments:
|
112
|
-
- 0
|
113
95
|
version: "0"
|
114
96
|
requirements: []
|
115
97
|
|
116
98
|
rubyforge_project: hornetseye
|
117
|
-
rubygems_version: 1.
|
99
|
+
rubygems_version: 1.8.5
|
118
100
|
signing_key:
|
119
101
|
specification_version: 3
|
120
102
|
summary: Colourspace conversions and compression
|