Class: Frames::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/frames/frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_layoutObject (readonly)

Returns the value of attribute channel_layout.



11
12
13
# File 'lib/frames/frame.rb', line 11

def channel_layout
  @channel_layout
end

#channelsObject (readonly)

Returns the value of attribute channels.



11
12
13
# File 'lib/frames/frame.rb', line 11

def channels
  @channels
end

#coded_picture_numberObject (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_numberObject (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

#heightObject (readonly)

Returns the value of attribute height.



11
12
13
# File 'lib/frames/frame.rb', line 11

def height
  @height
end

#interlaced_frameObject (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_frameObject (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_typeObject (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_samplesObject (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_typeObject (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_dtsObject (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_timeObject (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_durationObject (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_timeObject (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_posObject (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_ptsObject (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_timeObject (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

#referenceObject (readonly)

Returns the value of attribute reference.



11
12
13
# File 'lib/frames/frame.rb', line 11

def reference
  @reference
end

#repeat_pictObject (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_ratioObject (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_fmtObject (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_firstObject (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

#widthObject (readonly)

Returns the value of attribute width.



11
12
13
# File 'lib/frames/frame.rb', line 11

def width
  @width
end