Sha256: 4285979fae774d092997445611c0919761d5cd03f24b4266002ea02dd70098b1
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 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 '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vcs_ruby-1.1.9 | lib/MPlayer/mplayer_video_stream.rb |