Mercurial > code > home > repos > light9
changeset 767:14d47dd5be04
new vidref crop dimensions. widgets aren't all the right sizes yet
Ignore-this: 78e5821b29d5a2b5ecc9fb12342c8a87
author | drewp@bigasterisk.com |
---|---|
date | Sat, 16 Jun 2012 02:59:00 +0000 |
parents | 08962051d516 |
children | 60d343b197d7 |
files | light9/vidref/main.py light9/vidref/replay.py |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/vidref/main.py Sat Jun 16 02:58:44 2012 +0000 +++ b/light9/vidref/main.py Sat Jun 16 02:59:00 2012 +0000 @@ -182,8 +182,9 @@ mainwin.show_all() vid3 = wtree.get_object("vid3") self.liveVideoXid = vid3.window.xid - vid3.props.height_request = 240-70-50 - wtree.get_object("frame1").props.height_request = 277-70-50 + vid3.props.width_request = 360 + vid3.props.height_request = 220 + wtree.get_object("frame1").props.height_request = 220 self.setInput('dv') # auto seems to not search for dv @@ -222,8 +223,8 @@ cam = (sourcePipe + " ! " "videorate ! video/x-raw-yuv,framerate=%s/1 ! " - "videoscale ! video/x-raw-yuv,width=320,height=240;video/x-raw-rgb,width=320,height=240 ! " - "videocrop top=70 bottom=50 ! " + "videoscale ! video/x-raw-yuv,width=640,height=480;video/x-raw-rgb,width=320,height=240 ! " + "videocrop left=160 top=180 right=120 bottom=80 ! " "queue name=vid" % framerate) self.pipeline = gst.parse_launch(cam)
--- a/light9/vidref/replay.py Sat Jun 16 02:58:44 2012 +0000 +++ b/light9/vidref/replay.py Sat Jun 16 02:59:00 2012 +0000 @@ -114,7 +114,7 @@ if True: af = gtk.AspectFrame() af.set_visible(True) - w,h = (320), (240-70-50) + w,h = (640-140-110), (480-130-70) af.set_size_request(w, h) af.set_shadow_type(gtk.SHADOW_OUT) af.props.obey_child = True