/[escript]/trunk/pyvisi/py_src/movie.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/movie.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1198 by jongui, Mon Jun 18 02:08:34 2007 UTC revision 1199 by jongui, Wed Jun 20 05:01:30 2007 UTC
# Line 26  class Movie: Line 26  class Movie:
26      Class that creates a file called 'make_movie' by default (if a parameter      Class that creates a file called 'make_movie' by default (if a parameter
27      file name is not speficied) which contains a list of parameters required      file name is not speficied) which contains a list of parameters required
28      by the 'ppmtompeg' command to generate a movie from a series of images.      by the 'ppmtompeg' command to generate a movie from a series of images.
29    
30        @attention: A movie cannot be generated from postscript (.ps) images.
31      """      """
32            
33      def __init__(self, parameter_file = "make_movie"):        def __init__(self, parameter_file = "make_movie"):  
34          """          """
35          Initialise the generation of the movie.          Initialise the generation of the movie. If a parameter file name
36            is supplied, the file will not be deleted once the movie has been
37            generated. Otherwise, the temporary parameter file created will
38            automatically be removed at the end.
39    
40          @type parameter_file: String          @type parameter_file: String
41          @param parameter_file: Name of the file containing the list of          @param parameter_file: Name of the file containing the list of
# Line 73  class Movie: Line 78  class Movie:
78          @param input_directory: Directory in which the series of images can          @param input_directory: Directory in which the series of images can
79                  be found                  be found
80          @type image_list: List          @type image_list: List
81          @type image_list: List of images name          @type image_list: List of images name (including the extension)
82          """          """
83    
84          self.__image_range_used = False          self.__image_range_used = False
# Line 89  class Movie: Line 94  class Movie:
94    
95      def makeMovie(self, movie):      def makeMovie(self, movie):
96          """          """
97          Coordinate the generation of the movie.          Generate the movie.
98    
99          @type movie : String          @type movie : String
100          @param movie: Movie name (including the extension)          @param movie: Movie name (including the .mpg extension)
101          """          """
102    
103          self.__movie = movie          self.__movie = movie
# Line 171  class Movie: Line 176  class Movie:
176          elif(self.__image_format.endswith(ImageFormat.TIF)):          elif(self.__image_format.endswith(ImageFormat.TIF)):
177              self.__command = 'tiff'              self.__command = 'tiff'
178          else:          else:
179              raise IOError("ERROR: Invalid image format.")              raise IOError("ERROR: '" + self.__image_format + \
180                        "' is an invalid image format.")
181    
182    
183      def __generateParameterFile(self):      def __generateParameterFile(self):

Legend:
Removed from v.1198  
changed lines
  Added in v.1199

  ViewVC Help
Powered by ViewVC 1.1.26