comparison plugin/transform/ModelTransformerFactory.h @ 361:399ea254afd6

* Part of #1877436 transform fails to re-run when file loaded at different rate
author Chris Cannam
date Wed, 23 Jan 2008 18:09:50 +0000
parents d7c41483af8f
children
comparison
equal deleted inserted replaced
360:ac300d385ab2 361:399ea254afd6
52 AudioCallbackPlaySource *source = 0, 52 AudioCallbackPlaySource *source = 0,
53 size_t startFrame = 0, 53 size_t startFrame = 0,
54 size_t duration = 0); 54 size_t duration = 0);
55 55
56 /** 56 /**
57 * Get the default execution context for the given transform
58 * and input model (if known).
59 */
60 /*!!!
61 PluginTransformer::ExecutionContext getDefaultContextForTransformer(TransformId identifier,
62 Model *inputModel = 0);
63 */
64 /**
65 * Return the output model resulting from applying the named 57 * Return the output model resulting from applying the named
66 * transform to the given input model. The transform may still be 58 * transform to the given input model. The transform may still be
67 * working in the background when the model is returned; check the 59 * working in the background when the model is returned; check the
68 * output model's isReady completion status for more details. 60 * output model's isReady completion status for more details.
69 * 61 *
70 * If the transform is unknown or the input model is not an 62 * If the transform is unknown or the input model is not an
71 * appropriate type for the given transform, or if some other 63 * appropriate type for the given transform, or if some other
72 * problem occurs, return 0. 64 * problem occurs, return 0. Set message if there is any error or
65 * warning to report.
73 * 66 *
74 * The returned model is owned by the caller and must be deleted 67 * The returned model is owned by the caller and must be deleted
75 * when no longer needed. 68 * when no longer needed.
76 */ 69 */
77 Model *transform(const Transform &transform, 70 Model *transform(const Transform &transform,
78 const ModelTransformer::Input &input); 71 const ModelTransformer::Input &input,
72 QString &message);
79 73
80 protected slots: 74 protected slots:
81 void transformerFinished(); 75 void transformerFinished();
82 76
83 void modelAboutToBeDeleted(Model *); 77 void modelAboutToBeDeleted(Model *);