Changeset 1944 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Mar 24, 2002, 12:05:22 AM (24 years ago)
Author:
aubourg
Message:

decorrelateur wiener

Location:
trunk/ArchTOIPipe
Files:
11 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toisegment.cc

    r1804 r1944  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toisegment.cc,v 1.25 2001-11-30 21:07:16 aubourg Exp $
     5// $Id: toisegment.cc,v 1.26 2002-03-23 23:05:22 aubourg Exp $
    66
    77#include "toisegment.h"
     
    158158TOISegmented::BufferSegment::~BufferSegment() {
    159159  if (refcount > 0) {
     160    cerr << "TOISegment : delete Buffer with refcount>0" << endl;
    160161    throw(ForbiddenError("TOISegment : delete Buffer with refcount>0"));
    161162  }
     
    183184  }
    184185  if (status == COMMITTED) {
     186    cerr << "TOISegment : putData in committed buffer" << endl;
    185187    throw(ForbiddenError("TOISegment : putData in committed buffer"));
    186188  }
     
    196198  }
    197199  if (status == COMMITTED) {
     200    cerr << "TOISegment : putData in committed buffer" << endl;
    198201    throw(ForbiddenError("TOISegment : putData in committed buffer"));
    199202  }
     
    218221  int nrc = --refcount;
    219222  pthread_mutex_unlock(&refcount_mutex);
    220   if (nrc<0)
     223  if (nrc<0) {
     224    cerr << "TOISegment : buffer refcount < 0" << endl;
    221225    throw(ForbiddenError("TOISegment : buffer refcount < 0"));
     226  }
    222227}
    223228
  • trunk/ArchTOIPipe/Kernel/toisegment.h

    r1787 r1944  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toisegment.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $
     7// $Id: toisegment.h,v 1.18 2002-03-23 23:05:22 aubourg Exp $
    88
    99#ifndef TOISEGMENT_H
     
    8282
    8383    bool isPastEnd(int sn) {
    84       return sn >= sn+bufferSize;
     84      return sn >= sn0+bufferSize;
    8585    }
    8686   
    8787  private:
    8888    void checkCommitted() {
    89       if (status != COMMITTED)
     89      if (status != COMMITTED) {
     90        cerr << "TOISegment: Read on not committed buffer segment" << endl;
    9091        throw(ForbiddenError("TOISegment: Read on not committed buffer segment"));
     92      }
    9193    }
    9294
    9395    void checkInRange(int sn) {
    94       if (sn < sn0 || sn >= sn+bufferSize)
     96      if (sn < sn0 || sn >= sn0+bufferSize) {
     97        cerr << "TOISegment: out of range access in buffer segment " << sn << " not in "
     98             << sn0 << " - " << sn0+bufferSize << endl;
    9599        throw(RangeCheckError("TOISegment: out of range access in buffer segment"));
     100      }
    96101    }
    97102
  • trunk/ArchTOIPipe/ProcWSophya/noisegen.cc

    r1860 r1944  
    3838  int sne = getMaxOut();
    3939
    40   cout << " NoiseGen::run() SNRange=" << snb << " - " << sne << endl;
    41 
    4240  for (int i=snb; i<=sne; i++) {
    4341    putData(0,i,gen->Noise(),0);
  • trunk/ArchTOIPipe/Processors/Makefile.in

    r1793 r1944  
    4747endif
    4848
    49 SRCFILES=toisqfilter.cc nooppr.cc
    50 
     49SRCFILES=toisqfilter.cc nooppr.cc correl.cc nrutil.c dlubksb.c dludcmp.c dtoeplz.c \
     50         wienerdecor.cc
    5151FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o))
    5252
  • trunk/ArchTOIPipe/configure.in

    r1803 r1944  
    123123AC_CHECK_HEADERS(values.h stdint.h)
    124124
    125 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
     125outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile Makefile.h"
    126126if [[ $use_sophya = 1 ]]; then
    127127  outfiles="$outfiles sophya/Makefile"
  • trunk/ArchTOIPipe/files_pipes

    r1860 r1944  
    1717tsttoi2map.cc
    1818tstktoibad.cc
     19tstnoisecancel.h
     20tstnoisecancel.cc
  • trunk/ArchTOIPipe/files_processors

    r1701 r1944  
    33nooppr.h
    44nooppr.cc
     5correl.cc
     6correl.h
     7nrutil.h
     8nrutil.c
     9dlubksb.c 
     10dludcmp.c 
     11dtoeplz.c
     12wienerdecor.cc
     13wienerdecor.h
Note: See TracChangeset for help on using the changeset viewer.