Lines Matching refs:lut16

1412     jas_icclut16_t *lut16 = &attrval->data.lut16;  in jas_icclut16_destroy()  local
1413 if (lut16->clut) in jas_icclut16_destroy()
1414 jas_free(lut16->clut); in jas_icclut16_destroy()
1415 if (lut16->intabs) in jas_icclut16_destroy()
1416 jas_free(lut16->intabs); in jas_icclut16_destroy()
1417 if (lut16->intabsbuf) in jas_icclut16_destroy()
1418 jas_free(lut16->intabsbuf); in jas_icclut16_destroy()
1419 if (lut16->outtabs) in jas_icclut16_destroy()
1420 jas_free(lut16->outtabs); in jas_icclut16_destroy()
1421 if (lut16->outtabsbuf) in jas_icclut16_destroy()
1422 jas_free(lut16->outtabsbuf); in jas_icclut16_destroy()
1442 jas_icclut16_t *lut16 = &attrval->data.lut16; in jas_icclut16_input() local
1443 lut16->clut = 0; in jas_icclut16_input()
1444 lut16->intabs = 0; in jas_icclut16_input()
1445 lut16->intabsbuf = 0; in jas_icclut16_input()
1446 lut16->outtabs = 0; in jas_icclut16_input()
1447 lut16->outtabsbuf = 0; in jas_icclut16_input()
1448 if (jas_iccgetuint8(in, &lut16->numinchans) || in jas_icclut16_input()
1449 jas_iccgetuint8(in, &lut16->numoutchans) || in jas_icclut16_input()
1450 jas_iccgetuint8(in, &lut16->clutlen) || in jas_icclut16_input()
1455 if (jas_iccgetsint32(in, &lut16->e[i][j])) in jas_icclut16_input()
1459 if (jas_iccgetuint16(in, &lut16->numintabents) || in jas_icclut16_input()
1460 jas_iccgetuint16(in, &lut16->numouttabents)) in jas_icclut16_input()
1462 clutsize = jas_iccpowi(lut16->clutlen, lut16->numinchans) * lut16->numoutchans; in jas_icclut16_input()
1463 if (!(lut16->clut = jas_alloc2(clutsize, sizeof(jas_iccuint16_t))) || in jas_icclut16_input()
1464 !(lut16->intabsbuf = jas_alloc3(lut16->numinchans, in jas_icclut16_input()
1465 lut16->numintabents, sizeof(jas_iccuint16_t))) || in jas_icclut16_input()
1466 !(lut16->intabs = jas_alloc2(lut16->numinchans, in jas_icclut16_input()
1469 for (i = 0; i < lut16->numinchans; ++i) in jas_icclut16_input()
1470 lut16->intabs[i] = &lut16->intabsbuf[i * lut16->numintabents]; in jas_icclut16_input()
1471 if (!(lut16->outtabsbuf = jas_alloc3(lut16->numoutchans, in jas_icclut16_input()
1472 lut16->numouttabents, sizeof(jas_iccuint16_t))) || in jas_icclut16_input()
1473 !(lut16->outtabs = jas_alloc2(lut16->numoutchans, in jas_icclut16_input()
1476 for (i = 0; i < lut16->numoutchans; ++i) in jas_icclut16_input()
1477 lut16->outtabs[i] = &lut16->outtabsbuf[i * lut16->numouttabents]; in jas_icclut16_input()
1478 for (i = 0; i < lut16->numinchans; ++i) { in jas_icclut16_input()
1479 for (j = 0; j < JAS_CAST(int, lut16->numintabents); ++j) { in jas_icclut16_input()
1480 if (jas_iccgetuint16(in, &lut16->intabs[i][j])) in jas_icclut16_input()
1484 for (i = 0; i < lut16->numoutchans; ++i) { in jas_icclut16_input()
1485 for (j = 0; j < JAS_CAST(int, lut16->numouttabents); ++j) { in jas_icclut16_input()
1486 if (jas_iccgetuint16(in, &lut16->outtabs[i][j])) in jas_icclut16_input()
1491 if (jas_iccgetuint16(in, &lut16->clut[i])) in jas_icclut16_input()
1494 if (JAS_CAST(int, 44 + 2 * (lut16->numinchans * lut16->numintabents + in jas_icclut16_input()
1495 lut16->numoutchans * lut16->numouttabents + in jas_icclut16_input()
1496 jas_iccpowi(lut16->clutlen, lut16->numinchans) * in jas_icclut16_input()
1497 lut16->numoutchans)) != cnt) in jas_icclut16_input()
1507 jas_icclut16_t *lut16 = &attrval->data.lut16; in jas_icclut16_getsize() local
1508 return 44 + 2 * (lut16->numinchans * lut16->numintabents + in jas_icclut16_getsize()
1509 lut16->numoutchans * lut16->numouttabents + in jas_icclut16_getsize()
1510 jas_iccpowi(lut16->clutlen, lut16->numinchans) * lut16->numoutchans); in jas_icclut16_getsize()
1515 jas_icclut16_t *lut16 = &attrval->data.lut16; in jas_icclut16_output() local
1519 if (jas_stream_putc(out, lut16->numinchans) == EOF || in jas_icclut16_output()
1520 jas_stream_putc(out, lut16->numoutchans) == EOF || in jas_icclut16_output()
1521 jas_stream_putc(out, lut16->clutlen) == EOF || in jas_icclut16_output()
1526 if (jas_iccputsint32(out, lut16->e[i][j])) in jas_icclut16_output()
1530 if (jas_iccputuint16(out, lut16->numintabents) || in jas_icclut16_output()
1531 jas_iccputuint16(out, lut16->numouttabents)) in jas_icclut16_output()
1533 n = lut16->numinchans * lut16->numintabents; in jas_icclut16_output()
1535 if (jas_iccputuint16(out, lut16->intabsbuf[i])) in jas_icclut16_output()
1538 n = lut16->numoutchans * lut16->numouttabents; in jas_icclut16_output()
1540 if (jas_iccputuint16(out, lut16->outtabsbuf[i])) in jas_icclut16_output()
1543 n = jas_iccpowi(lut16->clutlen, lut16->numinchans) * lut16->numoutchans; in jas_icclut16_output()
1545 if (jas_iccputuint16(out, lut16->clut[i])) in jas_icclut16_output()
1555 jas_icclut16_t *lut16 = &attrval->data.lut16; in jas_icclut16_dump() local
1559 lut16->numinchans, lut16->numoutchans, lut16->clutlen); in jas_icclut16_dump()
1562 fprintf(out, "e[%d][%d]=%f ", i, j, lut16->e[i][j] / 65536.0); in jas_icclut16_dump()
1567 (int)lut16->numintabents, (int)lut16->numouttabents); in jas_icclut16_dump()