Changeset - 14d47dd5be04
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 13 years ago 2012-06-16 02:59:00
drewp@bigasterisk.com
new vidref crop dimensions. widgets aren't all the right sizes yet
Ignore-this: 78e5821b29d5a2b5ecc9fb12342c8a87
2 files changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
light9/vidref/main.py
Show inline comments
 
@@ -182,8 +182,9 @@ class Main(object):
 
        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 @@ class Main(object):
 

	
 
        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)
light9/vidref/replay.py
Show inline comments
 
@@ -114,7 +114,7 @@ class ReplayView(object):
 
        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
0 comments (0 inline, 0 general)