Sha256: 0e845ef57a8b695eba1b69c23a6d092bd668712803bb237017212a92205357cc
Contents?: true
Size: 689 Bytes
Versions: 7
Compression:
Stored size: 689 Bytes
Contents
# # Implementes VideoStream Interface for MPlayer # # VideoStream = Struct.new(:width, :height, :codec, :color_space, :bit_rate, :frame_rate, :aspect_ratio, :raw) module VCSRuby class MPlayerVideoStream attr_reader :raw def initialize video_stream @raw = video_stream end def width @raw['ID_VIDEO_WIDTH'].to_i end def height @raw['ID_VIDEO_HEIGHT'].to_i end def codec short = false @raw['ID_VIDEO_FORMAT'] end def color_space '' end def bit_rate @raw['ID_VIDEO_BITRATE'].to_i end def frame_rate @raw['ID_VIDEO_FPS'].to_f end def aspect_ratio nil end end end
Version data entries
7 entries across 7 versions & 1 rubygems