Searched refs:dtsz (Results 1 - 17 of 17) sorted by relevance

/ast/src/lib/libvcodex/
H A Dvcextract.c32 ssize_t dtsz; /* length of data */ member in struct:_store_s
43 ssize_t n, k, dtsz; local
55 dtsz = 0; /* get all the encoding strings */
63 dtsz += strlen(ident) + 1;
65 store[n].dtsz = 0;
73 { if((store[n].dtsz = mtcd.size) < 0 )
79 dtsz += vcsizeu(store[n].dtsz) + store[n].dtsz;
82 if(!(data = vcbuffer(vc, NIL(Vcchar_t*), dtsz,
102 vcrestore(Void_t* data, size_t dtsz) argument
[all...]
H A Dvcsfio.c57 ssize_t dtsz; member in struct:_sfdc_s
104 static ssize_t hdrvcdx(Vcchar_t** datap, ssize_t dtsz, Vcchar_t* code, ssize_t cdsz) argument
106 static ssize_t hdrvcdx(datap, dtsz, code, cdsz)
108 ssize_t dtsz;
119 vcioinit(&io, *datap, dtsz);
126 return dtsz; /* must be new header format */
130 return dtsz;
136 return dtsz; /* must be new header format */
144 return dtsz; /* must be new header */
153 return dtsz; /* mus
356 ident(Sfdc_t* sfdc, Void_t* data, size_t dtsz) argument
523 encode(Sfdc_t* sfdc, Vcchar_t* data, size_t dtsz) argument
1135 ssize_t dtsz; /* amount of data */ member in struct:_rsrv_s
[all...]
H A Dvcperiod.c28 ssize_t vcperiod(const Void_t* data, ssize_t dtsz) argument
30 ssize_t vcperiod(data, dtsz)
32 ssize_t dtsz;
41 if(!data || (sz = (Vcsfxint_t)dtsz) <= PEAKBOUND*PEAKBOUND)
132 /**/DEBUG_PRINT(2, "dtsz=%d, ", sz); DEBUG_PRINT(2, "period=%d\n", p);
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwvote.c34 int dtsz; /* size of last data set */ member in struct:_freq_s
69 size_t dtsz; local
79 if((dtsz = (size_t)(r-l)) < size)
83 !(data = sfreserve(fr->srcf->file, dtsz, 0)) )
86 if((dif = vcwngmatch(&mtch, dfreq, size, data, dtsz, 0, NGRAMMATCH)) < fr->bestd)
146 size_t dtsz; local
166 if((dtsz = (size_t)(here - pos)) < size)
171 if(!(data = sfreserve(fr->tarf, dtsz, 0)) )
180 dif = vcwngmatch(&mtch, dfreq, size, data, dtsz, 0, NGRAMMATCH);
193 static Vcwmatch_t* frmatch(Vcwindow_t* vcw, Void_t* data, size_t dtsz, Sfoff_ argument
[all...]
H A Dvcwprefix.c73 ssize_t dtsz; member in struct:_pffile_s
106 static Vchash_t pfhash(Vcchar_t* data, ssize_t dtsz) argument
108 static Vchash_t pfhash(data, dtsz)
110 ssize_t dtsz;
116 for(key = 0, endd = data+dtsz; data < endd; ++data)
267 pf->dtsz = n;
319 sz = seg ? (ssize_t)(seg->ldt - pf->dtpos) : pf->dtsz;
332 pf->dtpos += sz; pf->dtsz -= sz;
333 wm->more = pf->dtsz > 0 ? 1 : 0;
342 else sz = (ssize_t)((pf->dtpos+pf->dtsz)
368 pfmatch(Vcwindow_t* vcw, Void_t* data, size_t dtsz, Sfoff_t here) argument
[all...]
H A Dvcwindow.h70 #define vcwapply(vcw, dt, dtsz, p) \
71 (*(vcw)->meth->applyf)((vcw), (dt), (dtsz), (p))
H A Dvcwngram.c58 Vcchar_t* data, size_t dtsz, size_t pos, double stop)
60 double vcwngmatch(mtch, dfreq, size, data, dtsz, pos, stop)
65 size_t dtsz; /* size of source data */
81 if(dtsz < size) /* worst possible match */
84 if(pos > (dtsz -= size) )
85 pos = dtsz;
104 if(bestd < stop || dtsz == 0)
108 edata = data + dtsz;
57 vcwngmatch(int* mtch, size_t* dfreq, size_t size, Vcchar_t* data, size_t dtsz, size_t pos, double stop) argument
/ast/src/cmd/vczip/tests/
H A Dtvcrdb.c76 ssize_t e, k, r, n, dtsz; local
112 Data[dtsz = k] = 0;
115 if((r = vcrdsepar(sep, sizeof(sep)/sizeof(sep[0]), Data, dtsz, -1)) <= 0)
124 if(!(tbl = vcrdparse(&info, Data, dtsz, 0)) )
159 terror("vcrdextract(): failed to extract data dtsz=%d rv=%d", n, r);
164 if(r != dtsz )
165 terror("vcrdextract(): failed to extract data dtsz=%d rv=%d", dtsz, r);
166 if(memcmp(Data, test, dtsz) != 0)
186 if(r != dtsz)
[all...]
/ast/src/lib/libvcodex/Vchuff/
H A Dvchuffman.c70 static ssize_t vchuff(Vcodex_t* vc, const Void_t* data, size_t dtsz, Void_t** out) argument
72 static ssize_t vchuff(vc, data, dtsz, out)
75 size_t dtsz;
89 if(dtsz == 0) /* no data to compress */
95 ADDFREQ(freq, Vcchar_t*, data, dtsz);
109 s += vcsizeu(dtsz) + 1;
118 vcioputu(&io, dtsz); /* size of raw data */
121 /**/DEBUG_PRINT(2,"Vchuff: inputsz=%d ",dtsz);
122 enddt = (dt = (Vcchar_t*)data) + dtsz;
151 static ssize_t vcunhuff(Vcodex_t* vc, const Void_t* orig, size_t dtsz, Void_ argument
[all...]
H A Dvchuffgroup.c133 static int grpinit(Group_t* grp, Vchobj_t* data, size_t dtsz, ssize_t ptsz) argument
135 static int grpinit(grp, data, dtsz, ptsz)
138 size_t dtsz;
145 if(ptsz >= (ssize_t)dtsz )
146 ptsz = (ssize_t)dtsz;
148 grp->npts = npts = (dtsz+ptsz-1)/ptsz; /* guaranteed >= 1 */
149 grp->cmpsz = (dtsz < VCH_SIZE ? VCH_SIZE : dtsz)*VC_BITSIZE; /* starting cost */
166 if(!(grp->obj = (Obj_t*)calloc(dtsz, sizeof(Obj_t))) )
174 ADDFREQ(freq, Vchobj_t*, data+d, i == npts-1 ? dtsz
412 grpptsz(size_t dtsz) argument
431 grphuff(Vcodex_t* vc, const Void_t* data, size_t dtsz, Void_t** out) argument
547 grpunhuff(Vcodex_t* vc, const Void_t* orig, size_t dtsz, Void_t** out) argument
[all...]
H A Dvchcode.c84 ssize_t vchputcode(ssize_t nsym, ssize_t* clen, ssize_t maxs, Vcchar_t* data, size_t dtsz) argument
86 ssize_t vchputcode(nsym, clen, maxs, data, dtsz)
91 size_t dtsz; /* buffer size (need >= 256) */
113 vcioinit(&io,data,dtsz);
129 ssize_t vchgetcode(ssize_t nsym, ssize_t* clen, ssize_t maxs, Vcchar_t* data, size_t dtsz) argument
131 ssize_t vchgetcode(nsym, clen, maxs, data, dtsz)
136 size_t dtsz; /* size of above data buffer */
157 { vcioinit(&io, data, dtsz);
/ast/src/lib/libvcodex/Vcdelta/
H A Dvcdelta.c121 if(sav->dtsz > 0)
123 vcdflscopy(vcd, sav->addr, sav->dtsz, sav->mode);
125 { if(cz <= 0 || sav->dtsz > siz->add1[md] || cz > siz->copy2[md])
126 vcdflsadd(vcd, sav->addr, sav->dtsz);
128 { cd = idx->addcopy[sav->dtsz][md][cz];
134 vcioputs(vcd->data, data, sav->dtsz);
141 sav->dtsz = cz; /* save current COPY instruction */
164 if(sav->dtsz > 0) /* there is a saved instruction */
168 if(sav->dtsz <= siz->copy1[sav->mode] && az <= siz->add2[sav->mode])
169 { cd = idx->copyadd[sav->mode][sav->dtsz][a
[all...]
H A Dvcdhdr.h71 { ssize_t dtsz; /* size of ADD or COPY */ member in struct:_vcdsave_s
/ast/src/lib/libvcodex/Vcmisc/
H A Dvctranspose.c58 static ssize_t transflip(Vcchar_t* data, ssize_t dtsz, int rsep, Vcchar_t* flip) argument
60 static ssize_t transflip(data, dtsz, rsep, flip)
62 ssize_t dtsz;
71 if(data[dtsz-1] != rsep)
75 for(nrows = 0, z = 0; z < dtsz; ++z)
84 for(p = r = z = 0; z < dtsz; ++z)
115 static ssize_t unflip(Vcchar_t* data, ssize_t dtsz, int rsep, Vcchar_t* flip) argument
117 static ssize_t unflip(data, dtsz, rsep, flip)
119 ssize_t dtsz;
127 if(data[dtsz
[all...]
H A Dvcmtf.c228 static Vcodex_t* mtfrestore(Vcchar_t* data, ssize_t dtsz) argument
230 static Vcodex_t* mtfrestore(data, dtsz)
232 ssize_t dtsz; /* its length */
241 if(dtsz == strlen(ident) && strncmp(ident, (Void_t*)data, dtsz) == 0)
H A Dvcrle.c573 static Vcodex_t* rlerestore(Vcchar_t* data, ssize_t dtsz) argument
575 static Vcodex_t* rlerestore(data, dtsz)
577 ssize_t dtsz;
586 if(dtsz == strlen(ident) && strncmp(ident, (Void_t*)data, dtsz) == 0)
/ast/src/cmd/vczip/
H A Dvczip.c595 ssize_t dtsz, n; local
710 for(dtsz = 1024*1024; dtsz > 0; dtsz /= 2)
711 if((data = (Void_t*)malloc(dtsz)) )
718 n = vcsfread(sfio, data, dtsz);
719 else n = sfread(sfstdin, data, dtsz);
724 { if(donez >= lastz + 64*(dtsz > 1024*1024 ? dtsz : 1024*1024))

Completed in 49 milliseconds