ffmpeg-filter_graph 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f537cbbb1e852cd21adb6dfff6af4f66f766d03
|
4
|
+
data.tar.gz: 95e5f6737e43bfdb3c95fe4bbefcba116ab1e10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e78041e79471f9b443fa7d861842d30a2197343e4ea7fbae0fc173f62b9b3bed0f2e5565f892ef86b788a9832572a2c6878c3f5657c1d3599138440f96e2d2
|
7
|
+
data.tar.gz: c6223d74d4c059086f2e9a85651b474f8e52ff4f55f4cf3499a05c608129f1dfcb0d4b69aea1a97458b344195bc503fe5d2103eb9ec1529977e1cc0bb646f180
|
data/lib/ffmpeg/filter_graph.rb
CHANGED
@@ -1,19 +1,25 @@
|
|
1
1
|
module FFmpeg::FilterGraph
|
2
|
+
# The base class for {Pads::Inpad inpads} and {Pads::Outpad outpads}.
|
2
3
|
class Pad
|
4
|
+
# the name to return in the output
|
3
5
|
attr_reader :name
|
4
6
|
|
7
|
+
# A factory method for creating {Pads::Inpad inpads}
|
8
|
+
# @return [Pads::Inpad]
|
5
9
|
def self.in(pad)
|
6
10
|
case pad
|
11
|
+
when Pads::Inpad then pad
|
7
12
|
when Pads::Outpad then fail ArgumentError, 'cannot use Outpad as input'
|
8
|
-
when Pad then pad
|
9
13
|
else Pads::Inpad.new(pad.to_s)
|
10
14
|
end
|
11
15
|
end
|
12
16
|
|
17
|
+
# A factory method for creating {Pads::Outpad outpads}
|
18
|
+
# @return [Pads::Outpad]
|
13
19
|
def self.out(pad)
|
14
20
|
case pad
|
21
|
+
when Pads::Outpad then pad
|
15
22
|
when Pads::Inpad then fail ArgumentError, 'cannot use Inpad as output'
|
16
|
-
when Pad then pad
|
17
23
|
else Pads::Outpad.new(pad.to_s)
|
18
24
|
end
|
19
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffmpeg-filter_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Sangster
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|