Lines Matching refs:curv

973     jas_icccurv_t *curv = &attrval->data.curv;  in jas_icccurv_destroy()  local
974 if (curv->ents) in jas_icccurv_destroy()
975 jas_free(curv->ents); in jas_icccurv_destroy()
993 jas_icccurv_t *curv = &attrval->data.curv; in jas_icccurv_input() local
996 curv->numents = 0; in jas_icccurv_input()
997 curv->ents = 0; in jas_icccurv_input()
999 if (jas_iccgetuint32(in, &curv->numents)) in jas_icccurv_input()
1001 if (!(curv->ents = jas_alloc2(curv->numents, sizeof(jas_iccuint16_t)))) in jas_icccurv_input()
1003 for (i = 0; i < curv->numents; ++i) { in jas_icccurv_input()
1004 if (jas_iccgetuint16(in, &curv->ents[i])) in jas_icccurv_input()
1008 if (JAS_CAST(int, 4 + 2 * curv->numents) != cnt) in jas_icccurv_input()
1019 jas_icccurv_t *curv = &attrval->data.curv; in jas_icccurv_getsize() local
1020 return 4 + 2 * curv->numents; in jas_icccurv_getsize()
1025 jas_icccurv_t *curv = &attrval->data.curv; in jas_icccurv_output() local
1028 if (jas_iccputuint32(out, curv->numents)) in jas_icccurv_output()
1030 for (i = 0; i < curv->numents; ++i) { in jas_icccurv_output()
1031 if (jas_iccputuint16(out, curv->ents[i])) in jas_icccurv_output()
1042 jas_icccurv_t *curv = &attrval->data.curv; in jas_icccurv_dump() local
1043 fprintf(out, "number of entires = %d\n", (int)curv->numents); in jas_icccurv_dump()
1044 if (curv->numents == 1) { in jas_icccurv_dump()
1045 fprintf(out, "gamma = %f\n", curv->ents[0] / 256.0); in jas_icccurv_dump()
1047 for (i = 0; i < JAS_CAST(int, curv->numents); ++i) { in jas_icccurv_dump()
1048 if (i < 3 || i >= JAS_CAST(int, curv->numents) - 3) { in jas_icccurv_dump()
1049 fprintf(out, "entry[%d] = %f\n", i, curv->ents[i] / 65535.0); in jas_icccurv_dump()