Package toon :: Module save :: Class ClipSaver
[hide private]
[frames] | no frames]

Class ClipSaver

source code

object --+
         |
        ClipSaver

Saves a clip to images and a movie file if possible.

Instance Methods [hide private]
 
__init__(self, core, dir_path, file_prefix, clip_id)
:param core: The Toonloop application object.
source code
 
save(self)
Does save the clip.
source code
 
_fail(self, msg) source code
 
_succeed(self, msg) source code
 
_write_01_next_image(self)
Saves each image using twisted in order not to freeze the app.
source code
 
_write_02_images_done(self)
Converts the list of images in a motion-JPEG .mov video file.
source code
 
_eb_mencoder(self, reason) source code
 
_write_03_movie_done(self, results)
Called when mencoder conversion is done.
source code
 
_write_04_delete_images(self)
deletes JPG images or moves them to the 'data' folder in the project folder.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, core, dir_path, file_prefix, clip_id)
(Constructor)

source code 

:param core: The Toonloop application object. :param dir_path: Path to the directory where to save the clip. :param file_prefix: The beginning of the name of the files to save. :param clip_id: The id of the clip to save.

Overrides: object.__init__

save(self)

source code 

Does save the clip. Return a deferred.

_write_01_next_image(self)

source code 

Saves each image using twisted in order not to freeze the app. Uses the JPG extension.

_write_03_movie_done(self, results)

source code 

Called when mencoder conversion is done. MOV file.

_write_04_delete_images(self)

source code 

deletes JPG images or moves them to the 'data' folder in the project folder. renames MOV file.