Lines Matching full:comps
473 if (siz->comps) {
474 jas_free(siz->comps);
504 if (!(siz->comps = jas_alloc2(siz->numcomps, sizeof(jpc_sizcomp_t)))) {
509 jpc_getuint8(in, &siz->comps[i].hsamp) ||
510 jpc_getuint8(in, &siz->comps[i].vsamp)) {
511 jas_free(siz->comps);
514 siz->comps[i].sgnd = (tmp >> 7) & 1;
515 siz->comps[i].prec = (tmp & 0x7f) + 1;
518 jas_free(siz->comps);
547 if (jpc_putuint8(out, ((siz->comps[i].sgnd & 1) << 7) |
548 ((siz->comps[i].prec - 1) & 0x7f)) ||
549 jpc_putuint8(out, siz->comps[i].hsamp) ||
550 jpc_putuint8(out, siz->comps[i].vsamp)) {
569 "vsamp[%d] = %d\n", i, siz->comps[i].prec, i,
570 siz->comps[i].sgnd, i, siz->comps[i].hsamp, i,
571 siz->comps[i].vsamp);
1326 if (crg->comps) {
1327 jas_free(crg->comps);
1337 if (!(crg->comps = jas_alloc2(cstate->numcomps, sizeof(jpc_crgcomp_t)))) {
1340 for (compno = 0, comp = crg->comps; compno < cstate->numcomps;
1360 for (compno = 0, comp = crg->comps; compno < crg->numcomps; ++compno,
1375 for (compno = 0, comp = crg->comps; compno < crg->numcomps; ++compno,