00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _VRTESTCOPYSLOW_H_
00019 #define _VRTESTCOPYSLOW_H_
00020
00021 #include <VrSource.h>
00022
00023 template<class iType, class oType>
00024 class VrTestCopySlow : public VrSigProc<iType,oType> {
00025 public:
00026 virtual void work(timestamp ts, unsigned int size, iType *i[], oType *o[]);
00027 virtual void initialize();
00028 };
00029
00030 template<class iType, class oType> void
00031 VrTestCopySlow<iType, oType>::initialize()
00032 {
00033 setOutputSize (1);
00034 }
00035
00036 template<class iType, class oType> void
00037 VrTestCopySlow<iType, oType>::work(timestamp ts, unsigned int size, iType *i[], oType *o[])
00038 {
00039
00040 while(size-- > 0) {
00041
00042 int n=ts;
00043 for(int ii=0; ii<1000;ii++)
00044 n += n % 13;
00045
00046 *o[0]++= (oType) *i[0]++;
00047 }
00048
00049 }
00050
00051 #endif
00052
00053
00054
00055
00056