Searched refs:nsym (Results 1 - 4 of 4) sorted by relevance

/ast/src/lib/libvcodex/Vchuff/
H A Dvchbits.c44 ssize_t vchbits(ssize_t nsym, ssize_t* size, Vcbit_t* bits) argument
46 ssize_t vchbits(nsym, size, bits)
47 ssize_t nsym; /* alphabet size or #symbols */
56 if(!(sort = (ssize_t**)malloc(nsym*sizeof(ssize_t*))) )
59 for(notz = 0, i = 0; i < nsym; ++i)
H A Dvchcode.c28 static ssize_t rlcode(ssize_t nsym, ssize_t* clen, ssize_t cmax, Vcchar_t* rle, ssize_t rlsz, int encode) argument
30 static ssize_t rlcode(nsym, clen, cmax, rle, rlsz, encode)
31 ssize_t nsym; /* alphabet size */
45 { for(k = 0; k < nsym; k = n)
47 for(n = k+1; n < nsym; ++n)
61 { for(k = 0; k < nsym && rl < endr; )
66 for(d = *rl++; k < nsym && r > 0; --r)
76 if(k != nsym || rl != endr)
84 ssize_t vchputcode(ssize_t nsym, ssize_t* clen, ssize_t maxs, Vcchar_t* data, size_t dtsz) argument
86 ssize_t vchputcode(nsym, cle
129 vchgetcode(ssize_t nsym, ssize_t* clen, ssize_t maxs, Vcchar_t* data, size_t dtsz) argument
[all...]
H A Dvchsize.c60 ssize_t vchsize(ssize_t nsym, ssize_t* freq, ssize_t* size, int* runb) argument
62 ssize_t vchsize(nsym, freq, size, runb)
63 ssize_t nsym; /* alphabet size */
73 if(!(tree = (Vchtree_t*)malloc(nsym*sizeof(Vchtree_t))) ||
74 !(sort = (Vchtree_t**)malloc(nsym*sizeof(Vchtree_t*))) )
80 for(k = 0, f = tree; k < nsym; ++k, ++f, ++c)
H A Dvchtrie.c150 Vchtrie_t* vchbldtrie(ssize_t nsym, ssize_t* size, Vcbit_t* bits) argument
152 Vchtrie_t* vchbldtrie(nsym, size, bits)
153 ssize_t nsym; /* alphabet size or #symbols */
163 if(!(sort = (Vcbit_t**)malloc(nsym*sizeof(Vcbit_t*))) )
176 for(ns = 0, k = 0; k < nsym; ++k)

Completed in 9 milliseconds