svcore
1.9
|
#include <RealTimeEffectModelTransformer.h>
Public Types | |
typedef std::vector< ModelId > | Models |
enum | Type { RTThread, NonRTThread } |
Public Slots | |
void | start () |
Public Member Functions | |
RealTimeEffectModelTransformer (Input input, const Transform &transform) | |
virtual | ~RealTimeEffectModelTransformer () |
void | abandon () |
Hint to the processing thread that it should give up, for example because the process is going to exit or the model/document context is being replaced. More... | |
bool | isAbandoned () const |
Return true if the processing thread is being or has been abandoned, i.e. More... | |
ModelId | getInputModel () |
Return the input model for the transform. More... | |
int | getInputChannel () |
Return the input channel spec for the transform. More... | |
Models | getOutputModels () |
Return the set of output model IDs created by the transform or transforms. More... | |
virtual Models | getAdditionalOutputModels () |
Return any additional models that were created during processing. More... | |
virtual bool | willHaveAdditionalOutputModels () |
Return true if the current transform is one that may produce additional models (to be retrieved through getAdditionalOutputModels above). More... | |
QString | getMessage () const |
Return a warning or error message. More... | |
Protected Member Functions | |
void | run () override |
void | awaitOutputModels () override |
Protected Attributes | |
QString | m_units |
std::shared_ptr< RealTimePluginInstance > | m_plugin |
int | m_outputNo |
Transforms | m_transforms |
Input | m_input |
Models | m_outputs |
bool | m_abandoned |
QString | m_message |
Detailed Description
Definition at line 24 of file RealTimeEffectModelTransformer.h.
Member Typedef Documentation
|
inherited |
Definition at line 42 of file ModelTransformer.h.
Member Enumeration Documentation
|
inherited |
Constructor & Destructor Documentation
RealTimeEffectModelTransformer::RealTimeEffectModelTransformer | ( | Input | input, |
const Transform & | transform | ||
) |
Definition at line 32 of file RealTimeEffectModelTransformer.cpp.
References TypedById< Item, Id >::add(), Transform::getBlockSize(), Transform::getIdentifier(), ModelTransformer::getInputModel(), TransformFactory::getInstance(), Transform::getOutput(), Transform::getPluginIdentifier(), TransformFactory::getTransformUnits(), RealTimePluginFactory::instanceFor(), RealTimePluginFactory::instantiatePlugin(), m_outputNo, ModelTransformer::m_outputs, m_plugin, ModelTransformer::m_transforms, m_units, Transform::setBlockSize(), TransformFactory::setPluginParameters(), SVCERR, and SVDEBUG.
|
virtual |
Definition at line 109 of file RealTimeEffectModelTransformer.cpp.
Member Function Documentation
|
overrideprotectedvirtual |
Implements Thread.
Definition at line 114 of file RealTimeEffectModelTransformer.cpp.
References ModelTransformer::abandon(), RealTime::frame2RealTime(), ModelTransformer::Input::getChannel(), Transform::getDuration(), ModelTransformer::getInputModel(), Transform::getStartTime(), ModelTransformer::m_abandoned, ModelTransformer::m_input, m_outputNo, ModelTransformer::m_outputs, m_plugin, ModelTransformer::m_transforms, RealTime::realTime2Frame(), and SVDEBUG.
|
inlineoverrideprotectedvirtual |
Implements ModelTransformer.
Definition at line 34 of file RealTimeEffectModelTransformer.h.
|
inlineinherited |
Hint to the processing thread that it should give up, for example because the process is going to exit or the model/document context is being replaced.
Caller should still wait() to be sure that processing has ended.
Definition at line 66 of file ModelTransformer.h.
References ModelTransformer::m_abandoned.
Referenced by FeatureExtractionModelTransformer::addFeature(), run(), and FeatureExtractionModelTransformer::run().
|
inlineinherited |
Return true if the processing thread is being or has been abandoned, i.e.
if abandon() has been called.
Definition at line 72 of file ModelTransformer.h.
References ModelTransformer::m_abandoned.
Referenced by ModelTransformerFactory::transformerFinished().
|
inlineinherited |
Return the input model for the transform.
Definition at line 77 of file ModelTransformer.h.
References ModelTransformer::Input::getModel(), and ModelTransformer::m_input.
Referenced by FeatureExtractionModelTransformer::addFeature(), FeatureExtractionModelTransformer::createOutputModels(), FeatureExtractionModelTransformer::getFrames(), FeatureExtractionModelTransformer::initialise(), RealTimeEffectModelTransformer(), run(), and FeatureExtractionModelTransformer::run().
|
inlineinherited |
Return the input channel spec for the transform.
Definition at line 82 of file ModelTransformer.h.
References ModelTransformer::Input::getChannel(), and ModelTransformer::m_input.
|
inlineinherited |
Return the set of output model IDs created by the transform or transforms.
Returns an empty list if any transform could not be initialised; an error message may be available via getMessage() in this situation. The returned models have been added to ModelById.
Definition at line 91 of file ModelTransformer.h.
References ModelTransformer::awaitOutputModels(), and ModelTransformer::m_outputs.
Referenced by ModelTransformerFactory::transformMultiple().
|
inlinevirtualinherited |
Return any additional models that were created during processing.
This might happen if, for example, a transform was configured to split a multi-bin output into separate single-bin models as it processed. These should not be queried until after the transform has completed.
Reimplemented in FeatureExtractionModelTransformer.
Definition at line 103 of file ModelTransformer.h.
Referenced by ModelTransformerFactory::transformerFinished().
|
inlinevirtualinherited |
Return true if the current transform is one that may produce additional models (to be retrieved through getAdditionalOutputModels above).
Reimplemented in FeatureExtractionModelTransformer.
Definition at line 110 of file ModelTransformer.h.
Referenced by ModelTransformerFactory::transformerFinished().
|
inlineinherited |
Return a warning or error message.
If getOutputModel returned a null pointer, this should contain a fatal error message for the transformer; otherwise it may contain a warning to show to the user about e.g. suboptimal block size or whatever.
Definition at line 118 of file ModelTransformer.h.
References ModelTransformer::awaitOutputModels(), ModelTransformer::m_message, and ModelTransformer::ModelTransformer().
Referenced by ModelTransformerFactory::transformerFinished(), and ModelTransformerFactory::transformMultiple().
|
slotinherited |
Definition at line 34 of file Thread.cpp.
References Thread::m_type, and Thread::RTThread.
Referenced by BQAFileReader::BQAFileReader(), DecodingWavFileReader::DecodingWavFileReader(), ReadOnlyWaveFileModel::fillCache(), MP3FileReader::MP3FileReader(), DSSIPluginInstance::requestNonRTThread(), and ModelTransformerFactory::transformMultiple().
Member Data Documentation
|
protected |
Definition at line 36 of file RealTimeEffectModelTransformer.h.
Referenced by RealTimeEffectModelTransformer().
|
protected |
Definition at line 37 of file RealTimeEffectModelTransformer.h.
Referenced by RealTimeEffectModelTransformer(), and run().
|
protected |
Definition at line 38 of file RealTimeEffectModelTransformer.h.
Referenced by RealTimeEffectModelTransformer(), and run().
|
protectedinherited |
Definition at line 126 of file ModelTransformer.h.
Referenced by FeatureExtractionModelTransformer::createOutputModels(), FeatureExtractionModelTransformer::FeatureExtractionModelTransformer(), FeatureExtractionModelTransformer::initialise(), ModelTransformer::ModelTransformer(), RealTimeEffectModelTransformer(), run(), and FeatureExtractionModelTransformer::run().
|
protectedinherited |
Definition at line 127 of file ModelTransformer.h.
Referenced by FeatureExtractionModelTransformer::getFrames(), ModelTransformer::getInputChannel(), ModelTransformer::getInputModel(), run(), and FeatureExtractionModelTransformer::run().
|
protectedinherited |
Definition at line 128 of file ModelTransformer.h.
Referenced by FeatureExtractionModelTransformer::addFeature(), FeatureExtractionModelTransformer::createOutputModels(), FeatureExtractionModelTransformer::getAdditionalModel(), ModelTransformer::getOutputModels(), FeatureExtractionModelTransformer::isOutputType(), RealTimeEffectModelTransformer(), run(), FeatureExtractionModelTransformer::run(), and FeatureExtractionModelTransformer::setOutputCompletion().
|
protectedinherited |
Definition at line 129 of file ModelTransformer.h.
Referenced by ModelTransformer::abandon(), FeatureExtractionModelTransformer::awaitOutputModels(), ModelTransformer::isAbandoned(), run(), FeatureExtractionModelTransformer::run(), and ModelTransformer::~ModelTransformer().
|
protectedinherited |
Definition at line 130 of file ModelTransformer.h.
Referenced by FeatureExtractionModelTransformer::deinitialise(), ModelTransformer::getMessage(), FeatureExtractionModelTransformer::initialise(), and FeatureExtractionModelTransformer::run().
The documentation for this class was generated from the following files:
Generated by 1.8.11