Class: Media::Preset::H264::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/media/preset/h264.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



14
15
16
17
18
19
20
# File 'lib/media/preset/h264.rb', line 14

def initialize(args)
  @width  = args.fetch(:width) {raise 'width required'}
  @height = args.fetch(:height) {raise 'height required'}

  @input  = args.fetch(:input) {raise 'input required'}
  @output = args.fetch(:output) {raise 'output required'}
end

Instance Method Details

#call(&block) ⇒ Object



22
23
24
# File 'lib/media/preset/h264.rb', line 22

def call(&block)
  conversion.call(&block)
end