/[PAMELA software]/rawreader/source/Trunc.cpp
ViewVC logotype

Contents of /rawreader/source/Trunc.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 31 14:06:14 2006 UTC (18 years, 3 months ago) by pam-fi
Branch point for: rawreader, MAIN
Initial revision

1 //Cut file determination///////////////////////////////
2 #include "descript.h"
3
4 int restrict(int buffer3[], long long int numP[], int Rout)
5 {
6 int i;
7 int counter=0;
8 for (i=7;i<1017;i++)
9 {
10 if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[1]+1)||
11 (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[0]+2)||
12 (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1))
13 {counter=i;}
14 }
15 return counter;
16 }

  ViewVC Help
Powered by ViewVC 1.1.23