ffmpeg-filter_graph 0.1.9 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a5c39c0cc22faf45b472abbeee75681b9614f11
4
- data.tar.gz: 676a0ea923866dfeea1bdecf50a3d50eed40b537
3
+ metadata.gz: 2f537cbbb1e852cd21adb6dfff6af4f66f766d03
4
+ data.tar.gz: 95e5f6737e43bfdb3c95fe4bbefcba116ab1e10e
5
5
  SHA512:
6
- metadata.gz: 2684981e1bc3de441746ca716ef25f389acf6e8328bfef01a67b92863e8d78770190d60bf8e87797d2b81b27a87e29eed95124dd702c665a05a4f5ac181ac1c9
7
- data.tar.gz: 34c61c836de845a2bd2c20da54c66402f60f7fe9e2d470bacd6f6a89b3daadd273576ef2466a3ebcbe6ec5c97a9d881ce44a083284e9ed0f1c01783ad5642db7
6
+ metadata.gz: 52e78041e79471f9b443fa7d861842d30a2197343e4ea7fbae0fc173f62b9b3bed0f2e5565f892ef86b788a9832572a2c6878c3f5657c1d3599138440f96e2d2
7
+ data.tar.gz: c6223d74d4c059086f2e9a85651b474f8e52ff4f55f4cf3499a05c608129f1dfcb0d4b69aea1a97458b344195bc503fe5d2103eb9ec1529977e1cc0bb646f180
@@ -1,4 +1,6 @@
1
1
  module FFmpeg
2
+ # A Filtergraph is comprised of a series of {Chain filter chains}, where each
3
+ # chain is comprised of a series of {Filter filters}.
2
4
  module FilterGraph
3
5
  end
4
6
  end
@@ -1,4 +1,7 @@
1
1
  module FFmpeg::FilterGraph
2
+ # A Chain represents a pipeline of {Filter}s, with zero or more inputs and
3
+ # outputs.
4
+ # @see https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1
2
5
  class Chain
3
6
  attr_accessor :inputs, :outputs, :filters
4
7
 
@@ -61,6 +61,8 @@ module FFmpeg::FilterGraph
61
61
  optional: [:inputs]
62
62
  },
63
63
 
64
+ ANull: {},
65
+
64
66
  AMix: {
65
67
  optional: [:inputs, :duration, :dropout_transition]
66
68
  },
@@ -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
@@ -1,5 +1,5 @@
1
1
  module FFmpeg
2
2
  module FilterGraph
3
- VERSION = '0.1.9'
3
+ VERSION = '0.1.10'
4
4
  end
5
5
  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.9
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-24 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler