Sha256: f76f916284237148b7431603773a56304ac79e5cb18273adebd742a3659cf168

Contents?: true

Size: 797 Bytes

Versions: 14

Compression:

Stored size: 797 Bytes

Contents

# taken from https://github.com/rdp/open-source-directshow-screen-capture-filter/tree/master/configuration_setup_utility

class SetupDirectshowFilterParams
  
  Settings = ['height', 'width', 'start_x', 'start_y']
 
  def initialize
    require 'win32/registry'
    @screen_reg = Win32::Registry::HKEY_CURRENT_USER.create "Software\\os_screen_capture" # LODO .keys fails?
  end
  
  def set_single_setting name, value
    raise unless Settings.include?(name)
    raise unless value.is_a? Fixnum
#    raise value.to_s if value < 0
    @screen_reg.write(name, Win32::Registry::REG_DWORD, value.to_i)
  end
  
  # can be nil if not set...
  def read_single_setting name
    @screen_reg[name]
  end
  
  def teardown
    @screen_reg.close
    @screen_reg = nil
  end
  
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
content-editing-movie-player-0.38.0 upconvert_from_screen/old/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.35.3 upconvert_from_screen/old/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.34.0 upconvert_from_screen/old/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.28.1 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.28.0 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.27.0 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.26.3 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.26.2 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.26.1 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.26.0 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.25.4 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.25.3 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.25.2 upconvert_netflix/latest2/setup_directshow_filter_params.rb
sensible-cinema-0.25.1 upconvert_netflix/latest2/setup_directshow_filter_params.rb