Class: Ffprober::Stream
- Inherits:
-
Object
- Object
- Ffprober::Stream
- Defined in:
- lib/ffprober/stream.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#avg_frame_rate ⇒ Object
Returns the value of attribute avg_frame_rate.
-
#codec_long_name ⇒ Object
Returns the value of attribute codec_long_name.
-
#codec_name ⇒ Object
Returns the value of attribute codec_name.
-
#codec_tag ⇒ Object
Returns the value of attribute codec_tag.
-
#codec_tag_string ⇒ Object
Returns the value of attribute codec_tag_string.
-
#codec_time_base ⇒ Object
Returns the value of attribute codec_time_base.
-
#codec_type ⇒ Object
Returns the value of attribute codec_type.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#nb_frames ⇒ Object
Returns the value of attribute nb_frames.
-
#r_frame_rate ⇒ Object
Returns the value of attribute r_frame_rate.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#time_base ⇒ Object
Returns the value of attribute time_base.
Instance Method Summary collapse
-
#initialize(object_attribute_hash) ⇒ Stream
constructor
A new instance of Stream.
Constructor Details
#initialize(object_attribute_hash) ⇒ Stream
Returns a new instance of Stream.
9 10 11 12 13 14 |
# File 'lib/ffprober/stream.rb', line 9 def initialize(object_attribute_hash) object_attribute_hash.map do |(k, v)| writer_m = "#{k}=" send(writer_m, v) if respond_to?(writer_m) end end |
Instance Attribute Details
#avg_frame_rate ⇒ Object
Returns the value of attribute avg_frame_rate.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def avg_frame_rate @avg_frame_rate end |
#codec_long_name ⇒ Object
Returns the value of attribute codec_long_name.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_long_name @codec_long_name end |
#codec_name ⇒ Object
Returns the value of attribute codec_name.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_name @codec_name end |
#codec_tag ⇒ Object
Returns the value of attribute codec_tag.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_tag @codec_tag end |
#codec_tag_string ⇒ Object
Returns the value of attribute codec_tag_string.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_tag_string @codec_tag_string end |
#codec_time_base ⇒ Object
Returns the value of attribute codec_time_base.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_time_base @codec_time_base end |
#codec_type ⇒ Object
Returns the value of attribute codec_type.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def codec_type @codec_type end |
#duration ⇒ Object
Returns the value of attribute duration.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def duration @duration end |
#nb_frames ⇒ Object
Returns the value of attribute nb_frames.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def nb_frames @nb_frames end |
#r_frame_rate ⇒ Object
Returns the value of attribute r_frame_rate.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def r_frame_rate @r_frame_rate end |
#start_time ⇒ Object
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def start_time @start_time end |
#time_base ⇒ Object
Returns the value of attribute time_base.
3 4 5 |
# File 'lib/ffprober/stream.rb', line 3 def time_base @time_base end |