[Jahshaka-cvs] openlibraries/test/openmedialib/python common.py, 1.16, 1.17
Status: Beta
Brought to you by:
jahshaka
From: Charles Y. <lil...@us...> - 2006-12-16 18:50:56
|
Update of /cvsroot/openlibraries/openlibraries/test/openmedialib/python In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13617/test/openmedialib/python Modified Files: common.py Log Message: + Rough implementation of store oriented common.play and a correction to the frame position Index: common.py =================================================================== RCS file: /cvsroot/openlibraries/openlibraries/test/openmedialib/python/common.py,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- common.py 11 Dec 2006 16:16:10 -0000 1.16 +++ common.py 16 Dec 2006 18:50:52 -0000 1.17 @@ -105,7 +105,12 @@ try: frame = input.fetch( ) if frame is not None: - output = preview( frame ) + if store is None: + output = preview( frame ) + else: + output = openmedialib.create_store( store, frame ) + assign_props( output.properties( ), properties ) + output.init( ) i = 0 while i < input.get_frames( ): if not output.push( frame ): break @@ -226,7 +231,7 @@ frame = self.frame_store[ input_requested ] frame.set_audio( self.reseat.retrieve( samples_required, False ) ) frame.set_fps( self.fps_num.value_as_int( ), self.fps_den.value_as_int( ) ) - frame.set_position( self.in_point.value_as_int( ) + self.map_dest_to_source( self.position ) ) + frame.set_position( input_requested ) self.resample( frame ) return frame |