Lines Matching refs:vc

358 static ssize_t vcrle(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out)
360 static ssize_t vcrle(vc, data, size, out)
361 Vcodex_t* vc;
370 Rle_t *rle = vcgetmtdata(vc, Rle_t*);
397 if(!(output = space = vcbuffer(vc, NIL(Vcchar_t*), outsz+128, hd)) )
409 if(vc->coder) /* run continuator on the two parts */
410 { if(vcrecode(vc, &rle->obuf, &rle->osiz, 0, 0) < 0)
412 if(vcrecode(vc, &rle->abuf, &rle->asiz, 0, 0) < 0)
418 output = vcbuffer(vc, NIL(Vcchar_t*), sz, hd);
441 if(vcrecode(vc, &output, &sz, hd, 0) < 0 )
446 vcbuffer(vc, space, -1, -1);
457 if(!(output = vcbuffer(vc, output, sz, -1)) ) /* truncate buffer to size */
465 static ssize_t vcunrle(Vcodex_t* vc, const Void_t* data, size_t size, Void_t** out)
467 static ssize_t vcunrle(vc, data, size, out)
468 Vcodex_t* vc;
477 Rle_t *rle = vcgetmtdata(vc, Rle_t*);
496 if(!(output = vcbuffer(vc, (Vcchar_t*)0, sz, 0)) )
516 if(vcrecode(vc, &rle->ibuf, &rle->isiz, 0, 0) < 0)
518 if(vcrecode(vc, &rle->abuf, &rle->asiz, 0, 0) < 0)
525 if(vcrecode(vc, &rle->ibuf, &rle->isiz, 0, 0) < 0)
534 vcbuffer(vc, rle->ibuf, -1, -1);
536 vcbuffer(vc, rle->abuf, -1, -1);
544 static ssize_t rleextract(Vcodex_t* vc, Vcchar_t** datap)
546 static ssize_t rleextract(vc, datap)
547 Vcodex_t* vc;
554 Rle_t *rle = vcgetmtdata(vc, Rle_t*);
563 if(!(ident = (char*)vcbuffer(vc, NIL(Vcchar_t*), sizeof(int)*n+1, 0)) )
593 static int rleevent(Vcodex_t* vc, int type, Void_t* params)
595 static int rleevent(vc, type, params)
596 Vcodex_t* vc;
621 vcsetmtdata(vc, rle);
625 { if((rle = vcgetmtdata(vc, Rle_t*)) )
632 if((mtcd->size = rleextract(vc, &mtcd->data)) < 0 )