Sha256: 9eb64b4b1d5e730ad5260555dd4cfe0ef0e9e71d96bea34b91bf7d82b604fd92

Contents?: true

Size: 1022 Bytes

Versions: 14

Compression:

Stored size: 1022 Bytes

Contents

require 'rubygems'
gem 'ffi'
require 'ffi'
begin
  require 'sane'
rescue LoadError
  require 'rubygems'
  require 'sane' # LODO
end
require_relative '../../lib/screen_tracker.rb'
require_relative './setup_directshow_filter_params'

player_description = "..\\..\\zamples\\players\\youtube\\normal_in_youtube.com.chrome.txt" # right path...
screen_tracker = ScreenTracker.new_from_yaml File.binread(player_description), nil
p screen_tracker.get_hwnd_loop_forever
p screen_tracker.get_coords_of_window_on_display
x,y,x2,y2 = screen_tracker.get_coords_of_window_on_display

# numbers are all right, except, for youtube "within a user window", when the y2 is too high, and includes the red at the bottom 
y2 -= 50
setter = SetupDirectshowFilterParams.new
setter.set_single_setting 'height', y2 - y
setter.set_single_setting 'width', x2 - x
setter.set_single_setting 'start_x', x
setter.set_single_setting 'start_y', y
p 'set it to', x, y, x2, y2, 'width', x2-x, 'height', y2-y
screen_tracker.dump_bmps

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_capture_coords.rb
sensible-cinema-0.35.3 upconvert_from_screen/old/latest2/setup_capture_coords.rb
sensible-cinema-0.34.0 upconvert_from_screen/old/latest2/setup_capture_coords.rb
sensible-cinema-0.28.1 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.28.0 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.27.0 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.26.3 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.26.2 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.26.1 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.26.0 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.25.4 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.25.3 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.25.2 upconvert_netflix/latest2/setup_capture_coords.rb
sensible-cinema-0.25.1 upconvert_netflix/latest2/setup_capture_coords.rb