Lines Matching refs:SPR

1214 	hdr->SPR  = 0;  in constructHDR()
1334 hc->SPR = 1; // one sample per block in constructHDR()
1337 nbits = GDFTYP_BITS[hc->GDFTYP]*hc->SPR; in constructHDR()
1519 hc->SPR = 1; in init_channel()
2561 double fDur = hdr->SPR/hdr->SampleRate; in struct2gdfbin()
2656 leu32a(hdr->CHANNEL[k].SPR, Header2 + 4*k2 + 216*NS); in struct2gdfbin()
2997 hc->SPR = leu32p(Header2+ 4*k + 216*hdr->NS); in gdfbin2struct()
3002 size_t nbits = (GDFTYP_BITS[hc->GDFTYP]*(size_t)hc->SPR); in gdfbin2struct()
3072 for (k=0, hdr->SPR=1; k<hdr->NS;k++) { in gdfbin2struct()
3076 if (hdr->CHANNEL[k].SPR) in gdfbin2struct()
3077 hdr->SPR = lcm(hdr->SPR,hdr->CHANNEL[k].SPR); in gdfbin2struct()
3084 hdr->SampleRate = ((double)(hdr->SPR))/Dur; in gdfbin2struct()
3481 NEWCHANNEL[i].SPR = hdr->CHANNEL[r].SPR; in RerefCHANNEL()
3499 if (NEWCHANNEL[i].SPR != hdr->CHANNEL[r].SPR) in RerefCHANNEL()
3500 NEWCHANNEL[i].SPR = lcm(NEWCHANNEL[i].SPR, hdr->CHANNEL[r].SPR); in RerefCHANNEL()
4181 for (k=0, hdr->SPR = 1; k<hdr->NS; k++) { in sopen_extended()
4224 hc->SPR = atol(strncpy(tmp, Header2 + 8*k + 216*hdr->NS, 8)); in sopen_extended()
4230 size_t nbits = GDFTYP_BITS[hc->GDFTYP]*(size_t)hc->SPR; in sopen_extended()
4236 …printf(stdout,"[EDF 216] #%i/%i/%i/%i/%i/%i\n",(int)k,hdr->NS,nbytes,hdr->AS.bpb,hc->SPR,hdr->SPR); in sopen_extended()
4283 hdr->SPR = lcm(hdr->SPR, hc->SPR); in sopen_extended()
4286 if (VERBOSE_LEVEL>7) fprintf(stdout,"[EDF 219] #%i/%i/%i\n",(int)k,hdr->NS,hdr->SPR); in sopen_extended()
4291 if (Dur==0.0 && FLAG_BUGGY_NEUROLOGGER_EDF) Dur = hdr->SPR/496.0; in sopen_extended()
4292 hdr->SampleRate = hdr->SPR/Dur; in sopen_extended()
4294 …BOSE_LEVEL>8) fprintf(stdout,"[EDF 220] #=%i SPR=%i Dur=%g\n",(int)iftell(hdr),(int)hdr->SPR, Dur); in sopen_extended()
4385 hdr->EVENT.POS[hdr->EVENT.N] = k3 * hdr->SPR; in sopen_extended()
4392 … hdr->EVENT.POS[hdr->EVENT.N] = k3 * hdr->SPR + round((t-timeKeeping) * hdr->EVENT.SampleRate); in sopen_extended()
4418 size_t len = hc->SPR * hdr->NRec * sz; in sopen_extended()
4420 size_t skip = hdr->AS.bpb - hc->SPR * sz; in sopen_extended()
4424 ifread(Marker+k3*hc->SPR * sz, 1, hc->SPR * sz, hdr); in sopen_extended()
4543 hdr->SPR = 1; in sopen_extended()
4625 hc->SPR = 1; in sopen_extended()
4627 hc->SPR = leu16p(Header2+250); // used here as Divider in sopen_extended()
4629 …intf(stdout,"%s (line %i) %s: %i:%i\n", __FILE__, __LINE__, __func__, (int)hdr->SPR, (int)hc->SPR); in sopen_extended()
4631 if (hc->SPR > 1) in sopen_extended()
4632 hdr->SPR = lcm(hdr->SPR, hc->SPR); in sopen_extended()
4634 hc->SPR = 1; in sopen_extended()
4638 size_t tmp64 = leu32p(Header2+88) * hc->SPR; in sopen_extended()
4661 if ((hdr->VERSION>=38.0) && (hc->SPR > 1)) in sopen_extended()
4662 hc->SPR = hdr->SPR/hc->SPR; // convert DIVIDER into SPR in sopen_extended()
4687 hdr->AS.bpb += (GDFTYP_BITS[hc->GDFTYP]*hc->SPR)>>3; in sopen_extended()
4778 hdr->SPR = 1; in sopen_extended()
4799 hc->SPR = 1; in sopen_extended()
4849 hdr->SPR = 3; in sopen_extended()
4864 hc->SPR = hdr->SPR; in sopen_extended()
4889 hc->SPR = 1; in sopen_extended()
4897 hc->SPR = 1; in sopen_extended()
4905 hc->SPR = 1; in sopen_extended()
4913 hc->SPR = 1; in sopen_extended()
5005 hdr->SPR = 1; in sopen_extended()
5178 cp->SPR = atol(val); in sopen_extended()
5179 if (cp->SPR>0) hdr->SPR = lcm(hdr->SPR,cp->SPR); in sopen_extended()
5186 size_t bufsiz = (size_t)cp->SPR*GDFTYP_BITS[cp->GDFTYP]>>3; in sopen_extended()
5194 else if (cp->SPR > 0) { in sopen_extended()
5195 cp->SPR = 0; in sopen_extended()
5213 const size_t bufsiz = cp->SPR * sz; in sopen_extended()
5218 for (k = 0; k < cp->SPR; k++) { in sopen_extended()
5225 else if (cp->SPR > 0) { in sopen_extended()
5226 cp->SPR = 0; in sopen_extended()
5257 …if ((((size_t)cp->SPR*GDFTYP_BITS[cp->GDFTYP] >> 3) != (hdr->AS.bpb-cp->bi)) && (hdr->TYPE==BIN)) { in sopen_extended()
5258 …AS.bpb-hdr->CHANNEL[k].bi, (GDFTYP_BITS[hdr->CHANNEL[k].GDFTYP]*(size_t)hdr->CHANNEL[k].SPR) >> 3); in sopen_extended()
5261 hdr->SampleRate = hdr->SPR/duration; in sopen_extended()
5317 …7fff) && (hdr->EVENT.CHN[hdr->EVENT.N]>0) && (!hdr->CHANNEL[hdr->EVENT.CHN[hdr->EVENT.N]-1].SPR)) { in sopen_extended()
5390 hdr->SPR = 1; in sopen_extended()
5406 hc->SPR = 1; in sopen_extended()
5409 hdr->AS.bpb += (GDFTYP_BITS[hc->GDFTYP] * (size_t)hc->SPR)>>3; in sopen_extended()
5619 hdr->SPR = leu32p(hdr->AS.Header+10); in sopen_extended()
5620 hdr->NRec *= hdr->SPR; in sopen_extended()
5621 hdr->SPR = 1; in sopen_extended()
5632 hc->SPR = 1; // *(int32_t*)(Header1+56); in sopen_extended()
5660 hdr->SPR = 1; in sopen_extended()
5676 hc->SPR = hdr->SPR; // *(int32_t*)(Header1+56); in sopen_extended()
5717 hc->bi = k*hc->SPR*(GDFTYP_BITS[2]>>3); in sopen_extended()
5719 hdr->AS.bpb = hdr->NS*hdr->SPR*(GDFTYP_BITS[2]>>3); in sopen_extended()
5778 hc->SPR = 1; // in sopen_extended()
5981 hdr->SPR = npts; in sopen_extended()
5983 hdr->AS.bpb*= hdr->SPR; in sopen_extended()
5985 hdr->SPR = 1; in sopen_extended()
5995 hc->SPR = hdr->SPR; // *(int32_t*)(Header1+56); in sopen_extended()
6009 size_t bi8 = k*(size_t)hdr->SPR*GDFTYP_BITS[gdftyp]; in sopen_extended()
6169 size_t bufsiz = hdr->NS*hdr->SPR*hdr->NRec*16; in sopen_extended()
6219 hdr->SPR = 1; in sopen_extended()
6251 hc->SPR = 1; // *(int32_t*)(Header1+56); in sopen_extended()
6327 hdr->SPR = leu16p(hdr->AS.Header+368); in sopen_extended()
6328 hdr->AS.bpb = 2*hdr->NS*hdr->SPR+1+2+2+4+2+2; in sopen_extended()
6329 size_t bpb4 = 4*hdr->NS*hdr->SPR+1+2+2+4+2+2; in sopen_extended()
6357 …(CNT/EEG): %i %i %i %i %i %i \n", __func__,__LINE__, (int)hdr->NRec, hdr->SPR, hdr->NS, (int)even… in sopen_extended()
6373 hdr->SPR = 1; in sopen_extended()
6386 …ne %d) (CNT): %i %i %i %i %i \n", __func__,__LINE__, (int)hdr->NRec, hdr->SPR, hdr->NS, (int)even… in sopen_extended()
6401 hc->SPR = hdr->SPR; // *(int32_t*)(Header1+56); in sopen_extended()
6431 bi += (size_t)hdr->SPR * (GDFTYP_BITS[hc->GDFTYP]>>3); in sopen_extended()
6514 hdr->SPR = bei32p(hdr->AS.Header+1288); in sopen_extended()
6559 hc->SPR = hdr->SPR; in sopen_extended()
6572 hdr->AS.bpb += hdr->SPR*(GDFTYP_BITS[hc->GDFTYP]>>3); in sopen_extended()
6615 hdr->EVENT.POS[N] = (uint32_t)(u1*hdr->SPR+u2*hdr->SampleRate); in sopen_extended()
6648 hdr->SPR = 1; in sopen_extended()
6676 hc->SPR = 1; in sopen_extended()
6715 hdr->SPR = beu64p(hdr->AS.Header+16); in sopen_extended()
6882 hdr->SPR = 1; in sopen_extended()
6887 hdr->SPR = spr; in sopen_extended()
6892 hdr->SPR = 1; in sopen_extended()
6897 hdr->SPR = spr; in sopen_extended()
6912 hc->SPR = hdr->SPR; // int16 in sopen_extended()
6929 hdr->AS.bpb = hdr->SPR*hdr->NS*2; in sopen_extended()
7073 hdr->SPR = 1; in sopen_extended()
7151 hc->SPR = 1; in sopen_extended()
7324 hdr->SPR = beu32p(hdr->AS.Header+POS+2); in sopen_extended()
7332 hdr->SPR = 1; in sopen_extended()
7364 hc->SPR = hdr->SPR; in sopen_extended()
7365 hc->bi = k*hdr->SPR*(GDFTYP_BITS[gdftyp]>>3); in sopen_extended()
7385 hdr->AS.bpb = (hdr->NS*hdr->SPR + NEC) * (GDFTYP_BITS[gdftyp]>>3); in sopen_extended()
7402 for (k=0; (k < hdr->NRec*hdr->SPR) && !ifeof(hdr); k++) { in sopen_extended()
7528 hdr->SPR = len/2; in sopen_extended()
7584 hc->SPR = hdr->SPR; in sopen_extended()
7596 hc->bi = k*hdr->SPR*2; in sopen_extended()
7630 hdr->SPR = fs; in sopen_extended()
7632 hdr->SPR = fs/10; in sopen_extended()
7634 hdr->AS.bpb = 2*hdr->NS*hdr->SPR; in sopen_extended()
7702 hc->SPR = hdr->SPR; in sopen_extended()
7714 hc->bi = k*hdr->SPR*2; in sopen_extended()
8151 hc->SPR = 1; in sopen_extended()
8174 hdr->SPR = 1; in sopen_extended()
8398 hdr->SPR = 1; in sopen_extended()
8472 hc->SPR = 1; in sopen_extended()
8606 hdr->SPR = *(int64_t*) mfer_swap8b(buf, len, SWAP); in sopen_extended()
8607 if (VERBOSE_LEVEL>7) fprintf(stdout,"MFER: TLV %i %i %i \n",tag,len,(int)hdr->SPR); in sopen_extended()
8619 hc->SPR = 0; in sopen_extended()
8828 int64_t SPR = *(int64_t*) mfer_swap8b(buf, len2, SWAP); in sopen_extended() local
8829 hdr->SPR = (chan==0) ? SPR : lcm(SPR, hdr->SPR); in sopen_extended()
8830 hdr->CHANNEL[chan].SPR = SPR; in sopen_extended()
8832 … %i %i %i\n",tag,len, chan, tag2,len2, buf[0], buf[1], (int)hdr->SPR, (int)hdr->CHANNEL[chan].SPR); in sopen_extended()
8874 hdr->CHANNEL[chan].SPR = lround(hdr->SPR * fval / hdr->SampleRate); in sopen_extended()
8876 … %i %i %g %i %g\n",tag,len, chan, tag2,len2, buf[0], buf[1], fval, (int)hdr->SPR, hdr->SampleRate); in sopen_extended()
9110 if (!hc->SPR) hc->SPR = hdr->SPR; in sopen_extended()
9128 hdr->AS.bpb += hdr->SPR*(GDFTYP_BITS[gdftyp]>>3); in sopen_extended()
9151 hdr->SPR = 1; in sopen_extended()
9249 hdr->CHANNEL[k].SPR *= DIV; in sopen_extended()
9252 hdr->CHANNEL[k].SPR = DIV; in sopen_extended()
9369 hdr->AS.bpb8 += (hdr->SPR*NUM<<3)/DEN; in sopen_extended()
9376 hdr->SPR *= MUL; in sopen_extended()
9651 hdr->SPR = 1; in sopen_extended()
9664 hdr->CHANNEL[0].SPR = hdr->SPR; in sopen_extended()
9877 hc->SPR = 0; in sopen_extended()
9922 hdr->SPR = 1; in sopen_extended()
9969 hc->SPR = leu64p(hdr->AS.Header + 64+8*5+48 + H1LEN + k*H2LEN); in sopen_extended()
9978 hc->SPR = leu32p(hdr->AS.Header + 64+8*4+4*8 + H1LEN + k*H2LEN); in sopen_extended()
10114 hdr->SPR=0; in sopen_extended()
10169 case 0: hdr->SPR =dim; break; in sopen_extended()
10188 hc->SPR = hdr->SPR; in sopen_extended()
10215 hdr->SPR = 1; in sopen_extended()
10272 hc->SPR = hdr->SPR; in sopen_extended()
10473 …f(stdout,"SOPEN (Persyst) [283] %d<%s> %d/%d\n",(int)len,datfile,(int)hdr->SPR,(int)hdr->NRec); in sopen_extended()
10502 hdr->SPR = hdr->NRec; in sopen_extended()
10509 hc->SPR = hdr->SPR; in sopen_extended()
10510 size_t bi8 = ch * (size_t)hdr->SPR * GDFTYP_BITS[gdftyp]; in sopen_extended()
10687 hdr->SPR = 1; in sopen_extended()
10697 …MA NS=%i/0x%x, Fs=%f, SPR=%i, NRec=%i\n",hdr->NS,hdr->NS, hdr->SampleRate,hdr->SPR,(int)hdr->NRec); in sopen_extended()
10717 hc->SPR = 1; in sopen_extended()
10783 hdr->SPR = (typeof(hdr->SPR))round(hdr->SampleRate/minFs); in sopen_extended()
10785 hdr->CHANNEL[k].SPR = (typeof(hdr->SPR))round(fs[k]/minFs); in sopen_extended()
10787 hdr->AS.bpb += hdr->CHANNEL[k].SPR*2; in sopen_extended()
10822 hdr->SPR = 1; in sopen_extended()
10831 hc->SPR = 1; in sopen_extended()
10876 hdr->SPR = leu16p(hdr->AS.Header+147); in sopen_extended()
10918 hc->SPR = hdr->SPR; in sopen_extended()
10924 hdr->AS.bpb += hc->SPR * (GDFTYP_BITS[hc->GDFTYP]>>3); in sopen_extended()
10946 hdr->SPR = 1; in sopen_extended()
11006 hdr->CHANNEL[ch].SPR = 1; in sopen_extended()
11028 hdr->SampleRate = hdr->SPR*hdr->NRec/duration; in sopen_extended()
11029 hdr->NRec *= hdr->SPR; in sopen_extended()
11030 hdr->SPR = 1; in sopen_extended()
11063 size_t sz = (size_t)hdr->NS*hdr->SPR*hdr->NRec*(GDFTYP_BITS[gdftyp]>>3); in sopen_extended()
11065 c = fread(hdr->AS.rawdata, hdr->NRec, hdr->SPR*hdr->NS*GDFTYP_BITS[gdftyp]>>3, fid); in sopen_extended()
11102 size_t sz = (size_t)hdr->NS * hdr->SPR * hdr->NRec * GDFTYP_BITS[gdftyp]>>3; in sopen_extended()
11104 for (k=0; k < (size_t)hdr->SPR*hdr->NRec; k++) in sopen_extended()
11152 hc->SPR = 1; // one sample per block in sopen_extended()
11233 hdr->SPR = tagsize/hdr->AS.bpb; in sopen_extended()
11248 hdr->SPR = 1; in sopen_extended()
11435 hdr->SPR = 1; in sopen_extended()
11449 hc->SPR = 1; in sopen_extended()
11601 fprintf(fid,"Duration \t= %f\t# in seconds\n",hdr->SPR*hdr->NRec/hdr->SampleRate); in sopen_extended()
11683 fprintf(fid,"SamplingRate\t= %f\n",hdr->CHANNEL[k].SPR*hdr->SampleRate/hdr->SPR); in sopen_extended()
11684 …amples\t= %i\t# 0 indicates a channel with sparse samples\n",(int)(hdr->CHANNEL[k].SPR*hdr->NRec)); in sopen_extended()
11701 hdr->CHANNEL[k].SPR *= hdr->NRec; in sopen_extended()
11703 hdr->SPR *= hdr->NRec; in sopen_extended()
11749 …hdr->HeadLen += fprintf(hdr->FILE.FID, "ATF\t1.0\n%"PRIu64"u\t%u", max(0,hdr->NRec * hdr->SPR), NS… in sopen_extended()
11786 hdr->NRec *= hdr->SPR; in sopen_extended()
11787 hdr->SPR = 1; in sopen_extended()
11811 hdr->AS.bpb = (size_t)hdr->NS * hdr->SPR * GDFTYP_BITS[gdftyp] >> 3; in sopen_extended()
11822 hdr->CHANNEL[k].SPR = hdr->SPR; in sopen_extended()
11916 hdr->NRec *= hdr->SPR; hdr->SPR = 1; in sopen_extended()
11936 hdr->CHANNEL[k].SPR = 1; in sopen_extended()
11977 bpb8 += (GDFTYP_BITS[hc->GDFTYP] * hc->SPR); in sopen_extended()
12048 len = sprintf(tmp,"%f",hdr->SPR/hdr->SampleRate); in sopen_extended()
12101 len = sprintf(tmp,"%i",hdr->CHANNEL[k].SPR); in sopen_extended()
12195 beu32a(hdr->SPR, hdr->AS.Header+curPos); in sopen_extended()
12356 …fprintf(fid,"Format=Float32\n\rLength=%f\n\rSignals=%04i\n\r",hdr->NRec*hdr->SPR/hdr->SampleRate,h… in sopen_extended()
12385 for (k1=0; k1<hdr->SPR*hdr->NRec; k1++) { in sopen_extended()
12439 for (k=0, hdr->SPR = 1; k < hdr->NS; k++) { in sopen_extended()
12443 bpb8 += (GDFTYP_BITS[hdr->CHANNEL[k].GDFTYP] * hdr->CHANNEL[k].SPR); in sopen_extended()
12444 if (hdr->CHANNEL[k].SPR > 0) // ignore sparse channels in sopen_extended()
12445 hdr->SPR = lcm(hdr->SPR, hdr->CHANNEL[k].SPR); in sopen_extended()
12502 if (CHptr->OnOff) bpb8 += (size_t)CHptr->SPR*GDFTYP_BITS[CHptr->GDFTYP]; in bpb8_collapsed_rawdata()
12547 SZ += (size_t)CHptr->SPR * GDFTYP_BITS[CHptr->GDFTYP]; in collapse_rawdata()
12555 SZ += (size_t)CHptr->SPR * GDFTYP_BITS[CHptr->GDFTYP]; in collapse_rawdata()
12822 (int)count,(int)start,(int)length,(int)POS,(int)hdr->FILE.POS,(int)hdr->SPR, (int)count, \ in sread()
12823 (int)NS, (int)sizeof(biosig_data_type), (int)(hdr->SPR * count * NS * sizeof(biosig_data_type))); in sread()
12827 …if (log2(hdr->SPR) + log2(count) + log2(NS) + log2(sizeof(biosig_data_type)) + 1 >= sizeof(size_t)… in sread()
12836 size_t sz = hdr->SPR * count * NS * sizeof(biosig_data_type); in sread()
12867 …pha12bit=%i SWAP=%i spr=%i %p\n",__func__,__LINE__, ALPHA12BIT, SWAP, hdr->SPR, hdr->AS.rawdata); in sread()
12873 …=%i bpb=%i \n",__func__,__LINE__, (int)k1, (int)k2, ALPHA12BIT, SWAP, hdr->SPR, hdr->AS.rawdata,(i… in sread()
12876 if (CHptr->SPR > 0) { in sread()
12877 size_t DIV = hdr->SPR/CHptr->SPR; in sread()
12898 for (k5 = 0; k5 < CHptr->SPR; k5++) in sread()
13095 data1[k2 + (k4*hdr->SPR + k5*DIV + k3)*NS] = sample_value; // row-based channels in sread()
13099 data1[k2*count*hdr->SPR + k4*hdr->SPR + k5*DIV + k3] = sample_value; // column-based channels in sread()
13111 hdr->data.size[1] = hdr->SPR*count; // columns in sread()
13113 hdr->data.size[0] = hdr->SPR*count; // rows in sread()
13124 if (CHptr->SPR==0) { in sread()
13127 for (k5 = 0; k5 < hdr->SPR*count; k5++) in sread()
13130 for (k5 = 0; k5 < hdr->SPR*count; k5++) in sread()
13131 data1[k2*count*hdr->SPR + k5] = CHptr->DigMin; // column-based channels in sread()
13138 double c = hdr->SPR / hdr->SampleRate * hdr->EVENT.SampleRate; in sread()
13207 k5 = (hdr->EVENT.POS[k1]/c - POS)*hdr->SPR; in sread()
13215 data1[k2 * count * hdr->SPR + k5 + k3] = sample_value; in sread()
13227 if (hdr->FILE.POS*hdr->SPR > spr) in sread()
13229 for (k5 = spr - POS*hdr->SPR; k5 < hdr->SPR*count; k5++) { in sread()
13233 data1[k2*count*hdr->SPR + k5] = NAN; // column-based channels in sread()
13377 assert(nr == hdr->NRec * hdr->SPR); in swrite()
13454 if (CHptr->SPR) { in swrite()
13456 DIV = hdr->SPR/CHptr->SPR; in swrite()
13467 …__func__,__LINE__,(int)k1,GDFTYP,(int)bi8,(int)SZ,(int)CHptr->SPR,CHptr->Cal,CHptr->Off,iCal,iOff,… in swrite()
13472 …)k1,(int)hdr->data.size[0],(int)hdr->data.size[1],(int)k4,(int)0,(int)hdr->SPR,(int)DIV,(int)nelem… in swrite()
13474 for (k5 = 0; k5 < CHptr->SPR; k5++) { in swrite()
13478 …k1,(int)hdr->data.size[0],(int)hdr->data.size[1],(int)k4,(int)k5,(int)hdr->SPR,(int)DIV,(int)nelem… in swrite()
13484 (int)hdr->data.size[0],(int)hdr->data.size[1],(int)hdr->SPR,(int)nelem,(int)hdr->NRec); in swrite()
13488 sample_value += data[col + (k4*hdr->SPR + k5*DIV + k3)*hdr->data.size[0]]; in swrite()
13492 sample_value += data[col*nelem*hdr->SPR + k4*hdr->SPR + k5*DIV + k3]; in swrite()
13641 bi8 += SZ*CHptr->SPR; in swrite()
13702 typeof(hdr->SPR) SPR; in swrite()
13703 if (CHptr->SPR>0) { in swrite()
13704 DIV = hdr->SPR/CHptr->SPR; in swrite()
13705 SPR = CHptr->SPR; in swrite()
13709 SPR = hdr->SPR; in swrite()
13712 for (k2=0; k2 < SPR*(size_t)hdr->NRec; k2++) { in swrite()
13722 i += hdr->data.block[hdr->SPR*hdr->NRec*k1+k2*DIV+k3]; in swrite()
13744 size_t nbytes = ((size_t)hdr->CHANNEL[k1].SPR * GDFTYP_BITS[hdr->CHANNEL[k1].GDFTYP])>>3; in swrite()
14093 size_t NumberOfSweeps = (hdr->SPR*hdr->NRec > 0); in asprintf_hdr2json()
14109 c += sprintf(STR, "\t\"SamplesPerRecords\"\t: %i,\n",(int)hdr->SPR); in asprintf_hdr2json()
14110 c += sprintf(STR, "\t\"NumberOfSamples\"\t: %i,\n",(int)(hdr->NRec*hdr->SPR)); in asprintf_hdr2json()
14180 double fs = hdr->SampleRate * hc->SPR/hdr->SPR; in asprintf_hdr2json()
14291 size_t NumberOfSweeps = (hdr->SPR*hdr->NRec > 0); in fprintf_hdr2json()
14307 fprintf(fid,"\t\"SamplesPerRecords\"\t: %i,\n",(int)hdr->SPR); in fprintf_hdr2json()
14308 fprintf(fid,"\t\"NumberOfSamples\"\t: %i,\n",(int)(hdr->NRec*hdr->SPR)); in fprintf_hdr2json()
14368 double fs = hdr->SampleRate * hc->SPR/hdr->SPR; in fprintf_hdr2json()
14555 …fprintf(fid,"NoChannels:\t%i\nSPR:\t\t%i\nNRec:\t\t%li\nFs:\t\t%f\n",hdr->NS,hdr->SPR,(long)hdr->N…
14580 …s\t%5f %5i", (int)k+1, cp->LeadIdCode, cp->bi8, tmpstr, cp->SPR*hdr->SampleRate/hdr->SPR, cp->SPR);