Lines Matching refs:vc
41 Vcodex_t* vc = (Vcodex_t*)Version; /* stop compiler warning */
49 if(!meth || !(vc = (Vcodex_t*)calloc(1,sizeof(Vcodex_t))) )
52 if(!(vc->applyf = (flags&VC_ENCODE) ? meth->encodef : meth->decodef) )
53 { free(vc);
57 vc->disc = disc;
58 vc->meth = meth;
59 vc->coder = coder;
60 vc->flags = flags & VC_FLAGS;
62 if(disc && disc->eventf && (*disc->eventf)(vc, VC_OPENING, NIL(Void_t*), disc) < 0)
63 { free(vc);
67 if(meth->eventf && (*meth->eventf)(vc, VC_OPENING, init) < 0)
68 { free(vc);
72 return vc;
102 Vcodex_t *vc = NIL(Vcodex_t*);
149 vc = NIL(Vcodex_t*);
151 { if(!(coder = vcopen(0, mt->vcmt, (Void_t*)mt->args, vc, type|VC_CLOSECODER)) )
152 { vcclose(vc);
153 vc = NIL(Vcodex_t*);
156 else vc = coder;
164 return vc;