34 void SegmentDescriptors::DefaultInit() {
42 void SegmentDescriptors::CopyInit(
const SegmentDescriptors & copied) {
43 mpSegment=copied.mpSegment;
54 CLAM_ASSERT(mSegmentStats,
"SegmentDescriptors::SetpSegment: Frame Prototype must be set before, please call SetFramePrototype");
56 if(mpSegment->HasAudio())
62 mSegmentStats->
SetArray(&GetFramesD());
64 if(mpSegment->HasAudio())
65 GetAudioD().SetpAudio(&mpSegment->GetAudio());
68 for (i=0;i<nFrames;i++){
69 GetFramesD()[i].SetpFrame(&(mpSegment->
GetFrame(i)));}
75 GetFramesD().Resize(nFrames);
76 GetFramesD().SetSize(nFrames);
77 for (i=0;i<nFrames;i++){
78 GetFramesD()[i].SetPrototype(proto);}
81 GetMeanD().SetPrototype(proto);
83 GetMaxD().SetPrototype(proto);
85 GetMinD().SetPrototype(proto);
87 GetVarianceD().SetPrototype(proto);
103 for (
int i=0;i<nFrames;i++)
104 GetFramesD()[i].Compute();
106 SetMeanD(mSegmentStats->
GetMean());
108 SetMaxD(mSegmentStats->
GetMax());
110 SetMinD(mSegmentStats->
GetMin());
114 GetAudioD().Compute();