annotate swig/aim_modules.i @ 237:af02b6addf7a

- Added support for movies!
author tomwalters
date Thu, 21 Oct 2010 01:46:39 +0000
parents 4fb328f81012
children
rev   line source
tomwalters@5 1 // Copyright 2010, Thomas Walters
tomwalters@0 2 //
tomwalters@0 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@0 4 // http://www.acousticscale.org/AIMC
tomwalters@0 5 //
tomwalters@45 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@45 7 // you may not use this file except in compliance with the License.
tomwalters@45 8 // You may obtain a copy of the License at
tomwalters@0 9 //
tomwalters@45 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@0 11 //
tomwalters@45 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@45 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@45 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@45 15 // See the License for the specific language governing permissions and
tomwalters@45 16 // limitations under the License.
tomwalters@0 17
tomwalters@1 18 %module aimc
tomwalters@1 19 %include "std_string.i"
tomwalters@53 20 %include stl.i
tomwalters@166 21 %include "std_vector.i"
tomwalters@166 22
tomwalters@166 23 namespace std {
tomwalters@166 24 %template(FloatVector) vector<float>;
tomwalters@166 25 }
tomwalters@166 26
tomwalters@0 27 %{
tomwalters@0 28 #include "Support/Common.h"
tomwalters@0 29 #include "Support/Module.h"
tomwalters@0 30 #include "Support/Parameters.h"
tomwalters@0 31 #include "Support/SignalBank.h"
tomwalters@13 32 #include "Modules/BMM/ModuleGammatone.h"
tomwalters@13 33 #include "Modules/BMM/ModulePZFC.h"
tomwalters@13 34 #include "Modules/NAP/ModuleHCL.h"
tomwalters@13 35 #include "Modules/Strobes/ModuleParabola.h"
tomwalters@32 36 #include "Modules/Strobes/ModuleLocalMax.h"
tomwalters@13 37 #include "Modules/SAI/ModuleSAI.h"
tomwalters@13 38 #include "Modules/SSI/ModuleSSI.h"
tomwalters@13 39 #include "Modules/Profile/ModuleSlice.h"
tomwalters@20 40 #include "Modules/Profile/ModuleScaler.h"
tomwalters@237 41 #include "Modules/Features/ModuleGaussians.h"
tomwalters@0 42 %}
tomwalters@0 43
tomwalters@13 44 %include "Support/Parameters.h"
tomwalters@166 45 using namespace std;
tomwalters@13 46 %include "Support/SignalBank.h"
tomwalters@53 47
tomwalters@53 48 namespace aimc {
tomwalters@53 49 using std::ostream;
tomwalters@53 50 using std::set;
tomwalters@53 51 using std::string;
tomwalters@53 52 class Module {
tomwalters@53 53 public:
tomwalters@53 54 explicit Module(Parameters *parameters);
tomwalters@53 55 virtual ~Module();
tomwalters@236 56 virtual bool Initialize(const SignalBank &input,
tomwalters@236 57 Parameters *global_parameters);
tomwalters@53 58 bool initialized() const;
tomwalters@53 59 bool AddTarget(Module* target_module);
tomwalters@53 60 bool RemoveTarget(Module* target_module);
tomwalters@53 61 void RemoveAllTargets();
tomwalters@53 62 virtual void Process(const SignalBank &input) = 0;
tomwalters@53 63 void Reset();
tomwalters@53 64 const SignalBank* GetOutputBank() const;
tomwalters@53 65 string version() const;
tomwalters@53 66 string id() const;
tomwalters@53 67 string description() const;
tomwalters@53 68 string type() const;
tomwalters@53 69 };
tomwalters@53 70 }
tomwalters@53 71
tomwalters@13 72 %include "Modules/BMM/ModuleGammatone.h"
tomwalters@13 73 %include "Modules/BMM/ModulePZFC.h"
tomwalters@13 74 %include "Modules/NAP/ModuleHCL.h"
tomwalters@13 75 %include "Modules/Strobes/ModuleParabola.h"
tomwalters@32 76 %include "Modules/Strobes/ModuleLocalMax.h"
tomwalters@13 77 %include "Modules/SAI/ModuleSAI.h"
tomwalters@13 78 %include "Modules/SSI/ModuleSSI.h"
tomwalters@13 79 %include "Modules/Profile/ModuleSlice.h"
tomwalters@20 80 %include "Modules/Profile/ModuleScaler.h"
tomwalters@237 81 %include "Modules/Features/ModuleGaussians.h"