Class: Frames::Frame
- Inherits:
-
Object
- Object
- Frames::Frame
- Defined in:
- lib/frames/frame.rb
Instance Attribute Summary collapse
-
#channel_layout ⇒ Object
readonly
Returns the value of attribute channel_layout.
-
#channels ⇒ Object
readonly
Returns the value of attribute channels.
-
#coded_picture_number ⇒ Object
readonly
Returns the value of attribute coded_picture_number.
-
#display_picture_number ⇒ Object
readonly
Returns the value of attribute display_picture_number.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#interlaced_frame ⇒ Object
readonly
Returns the value of attribute interlaced_frame.
-
#key_frame ⇒ Object
readonly
Returns the value of attribute key_frame.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
-
#nb_samples ⇒ Object
readonly
Returns the value of attribute nb_samples.
-
#pict_type ⇒ Object
readonly
Returns the value of attribute pict_type.
-
#pkt_dts ⇒ Object
readonly
Returns the value of attribute pkt_dts.
-
#pkt_dts_time ⇒ Object
readonly
Returns the value of attribute pkt_dts_time.
-
#pkt_duration ⇒ Object
readonly
Returns the value of attribute pkt_duration.
-
#pkt_duration_time ⇒ Object
readonly
Returns the value of attribute pkt_duration_time.
-
#pkt_pos ⇒ Object
readonly
Returns the value of attribute pkt_pos.
-
#pkt_pts ⇒ Object
readonly
Returns the value of attribute pkt_pts.
-
#pkt_pts_time ⇒ Object
readonly
Returns the value of attribute pkt_pts_time.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#repeat_pict ⇒ Object
readonly
Returns the value of attribute repeat_pict.
-
#sample_aspect_ratio ⇒ Object
readonly
Returns the value of attribute sample_aspect_ratio.
-
#sample_fmt ⇒ Object
readonly
Returns the value of attribute sample_fmt.
-
#top_field_first ⇒ Object
readonly
Returns the value of attribute top_field_first.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(attrs = {}) ⇒ Frame
Returns a new instance of Frame.
5 6 7 8 9 |
# File 'lib/frames/frame.rb', line 5 def initialize(attrs = {}) attrs.each do |k,v| self.instance_variable_set(:"@#{k}", v) end end |
Instance Attribute Details
#channel_layout ⇒ Object (readonly)
Returns the value of attribute channel_layout.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def channel_layout @channel_layout end |
#channels ⇒ Object (readonly)
Returns the value of attribute channels.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def channels @channels end |
#coded_picture_number ⇒ Object (readonly)
Returns the value of attribute coded_picture_number.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def coded_picture_number @coded_picture_number end |
#display_picture_number ⇒ Object (readonly)
Returns the value of attribute display_picture_number.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def display_picture_number @display_picture_number end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def height @height end |
#interlaced_frame ⇒ Object (readonly)
Returns the value of attribute interlaced_frame.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def interlaced_frame @interlaced_frame end |
#key_frame ⇒ Object (readonly)
Returns the value of attribute key_frame.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def key_frame @key_frame end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def media_type @media_type end |
#nb_samples ⇒ Object (readonly)
Returns the value of attribute nb_samples.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def nb_samples @nb_samples end |
#pict_type ⇒ Object (readonly)
Returns the value of attribute pict_type.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pict_type @pict_type end |
#pkt_dts ⇒ Object (readonly)
Returns the value of attribute pkt_dts.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_dts @pkt_dts end |
#pkt_dts_time ⇒ Object (readonly)
Returns the value of attribute pkt_dts_time.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_dts_time @pkt_dts_time end |
#pkt_duration ⇒ Object (readonly)
Returns the value of attribute pkt_duration.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_duration @pkt_duration end |
#pkt_duration_time ⇒ Object (readonly)
Returns the value of attribute pkt_duration_time.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_duration_time @pkt_duration_time end |
#pkt_pos ⇒ Object (readonly)
Returns the value of attribute pkt_pos.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_pos @pkt_pos end |
#pkt_pts ⇒ Object (readonly)
Returns the value of attribute pkt_pts.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_pts @pkt_pts end |
#pkt_pts_time ⇒ Object (readonly)
Returns the value of attribute pkt_pts_time.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def pkt_pts_time @pkt_pts_time end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def reference @reference end |
#repeat_pict ⇒ Object (readonly)
Returns the value of attribute repeat_pict.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def repeat_pict @repeat_pict end |
#sample_aspect_ratio ⇒ Object (readonly)
Returns the value of attribute sample_aspect_ratio.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def sample_aspect_ratio @sample_aspect_ratio end |
#sample_fmt ⇒ Object (readonly)
Returns the value of attribute sample_fmt.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def sample_fmt @sample_fmt end |
#top_field_first ⇒ Object (readonly)
Returns the value of attribute top_field_first.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def top_field_first @top_field_first end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
11 12 13 |
# File 'lib/frames/frame.rb', line 11 def width @width end |