Class: UEncode::VideoConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/uencode/elements.rb

Overview

The video configs for each VideoStream

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bitrateObject

Returns the value of attribute bitrate.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def bitrate
  @bitrate
end

#codecObject

Returns the value of attribute codec.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def codec
  @codec
end

#deinterlaceObject

Returns the value of attribute deinterlace.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def deinterlace
  @deinterlace
end

#fix_rotationObject

Returns the value of attribute fix_rotation.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def fix_rotation
  @fix_rotation
end

#force_square_pixelsObject

Returns the value of attribute force_square_pixels.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def force_square_pixels
  @force_square_pixels
end

#framerateObject

Returns the value of attribute framerate.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def framerate
  @framerate
end

#passesObject

Returns the value of attribute passes.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def passes
  @passes
end

#profileObject

Returns the value of attribute profile.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def profile
  @profile
end

#qualityObject

Returns the value of attribute quality.



384
385
386
# File 'lib/uencode/elements.rb', line 384

def quality
  @quality
end

Instance Method Details

#max_sizeObject



400
401
402
# File 'lib/uencode/elements.rb', line 400

def max_size
  @max_size
end

#max_size=(_max_size) ⇒ Object



395
396
397
398
# File 'lib/uencode/elements.rb', line 395

def max_size=(_max_size)
  _max_size = MaxSize.new(_max_size) unless _max_size.instance_of?(MaxSize) || _max_size.nil?
  instance_variable_set :@max_size, _max_size
end

#sizeObject



391
392
393
# File 'lib/uencode/elements.rb', line 391

def size
  @size
end

#size=(_size) ⇒ Object



386
387
388
389
# File 'lib/uencode/elements.rb', line 386

def size=(_size)
  _size = Size.new(_size) unless _size.instance_of?(Size) || _size.nil?
  instance_variable_set :@size, _size
end