#include <FrameInterpolator.hxx>
Public Member Functions | |
FrameInterpolator () | |
FrameInterpolator (const FrameInterpConfig &c) | |
~FrameInterpolator () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports). | |
bool | Do (const Frame &in1, const Frame &in2, Frame &out) |
void | AttachSpectralShape (Spectrum &spec) |
Public Attributes | |
FrameInterpolatorCtl | mFrameInterpolationFactorCtl |
Input control for interpolation factor. | |
FrameInterpolatorCtl | mMagInterpolationFactorCtl |
FrameInterpolatorCtl | mFreqInterpolationFactorCtl |
FrameInterpolatorCtl | mPitchInterpolationFactorCtl |
FrameInterpolatorCtl | mResidualInterpolationFactorCtl |
FrameInterpolatorCtl | mPitch1Ctl |
Input controls for input pitch needed for harmonic interpolation. | |
FrameInterpolatorCtl | mPitch2Ctl |
FrameInterpolatorCtl | mIsHarmonicCtl |
Input control for whether harmonic interpolation has to be performed. | |
InPort< Frame > | mIn1 |
Ports. | |
InPort< Frame > | mIn2 |
OutPort< Frame > | mOut |
Spectrum * | mpSpectralShape |
Note that only spectral peak array for the sinusoidal component and residual spectrum are interpolated.
Definition at line 60 of file FrameInterpolator.hxx.
CLAM::FrameInterpolator::FrameInterpolator | ( | ) |
CLAM::FrameInterpolator::FrameInterpolator | ( | const FrameInterpConfig & | c | ) |
CLAM::FrameInterpolator::~FrameInterpolator | ( | ) | [inline] |
Definition at line 82 of file FrameInterpolator.hxx.
void CLAM::FrameInterpolator::AttachSpectralShape | ( | Spectrum & | spec | ) | [inline] |
Definition at line 112 of file FrameInterpolator.hxx.
References mpSpectralShape.
Referenced by CLAM::SegmentSMSMorph::ConcreteConfigure().
Definition at line 127 of file FrameInterpolator.cxx.
References CLAM_DEBUG_ASSERT, CLAM::SpectrumInterpolator::Do(), CLAM::SpectralPeakArrayInterpolator::Do(), CLAM::InControlTmpl< ProcObj >::DoControl(), CLAM::Frame::GetFundamentalFreq(), CLAM::InControl::GetLastValue(), CLAM::Processing::IsRunning(), mIsHarmonicCtl, mPitch1Ctl, mPitch2Ctl, mPitchInterpolationFactorCtl, and mpSpectralShape.
bool CLAM::FrameInterpolator::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::ProcessingComposite.
Definition at line 162 of file FrameInterpolator.cxx.
References CLAM_ASSERT.
Referenced by CLAM::SegmentSMSTimeStretch::Do(), CLAM::SegmentSMSMorph::Do(), and CLAM::SegmentSMSMorph::FindInterpolatedFrameFromSegment2Morph().
const ProcessingConfig& CLAM::FrameInterpolator::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Implements CLAM::ProcessingComposite.
Definition at line 84 of file FrameInterpolator.hxx.
Input control for interpolation factor.
Definition at line 92 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSTimeStretch::Do(), and CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
Definition at line 95 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
Definition at line 109 of file FrameInterpolator.hxx.
Input control for whether harmonic interpolation has to be performed.
Definition at line 105 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 94 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
Definition at line 110 of file FrameInterpolator.hxx.
Input controls for input pitch needed for harmonic interpolation.
Definition at line 101 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 96 of file FrameInterpolator.hxx.
Referenced by Do(), and CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
Definition at line 114 of file FrameInterpolator.hxx.
Referenced by AttachSpectralShape(), and Do().
Definition at line 97 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().