Lines Matching refs:txtdesc

1061     jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc;  in jas_icctxtdesc_destroy()  local
1062 if (txtdesc->ascdata) in jas_icctxtdesc_destroy()
1063 jas_free(txtdesc->ascdata); in jas_icctxtdesc_destroy()
1064 if (txtdesc->ucdata) in jas_icctxtdesc_destroy()
1065 jas_free(txtdesc->ucdata); in jas_icctxtdesc_destroy()
1071 jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc; in jas_icctxtdesc_copy() local
1076 txtdesc = 0; in jas_icctxtdesc_copy()
1088 jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc; in jas_icctxtdesc_input() local
1089 txtdesc->ascdata = 0; in jas_icctxtdesc_input()
1090 txtdesc->ucdata = 0; in jas_icctxtdesc_input()
1091 if (jas_iccgetuint32(in, &txtdesc->asclen)) in jas_icctxtdesc_input()
1093 if (!(txtdesc->ascdata = jas_malloc(txtdesc->asclen))) in jas_icctxtdesc_input()
1095 if (jas_stream_read(in, txtdesc->ascdata, txtdesc->asclen) != in jas_icctxtdesc_input()
1096 JAS_CAST(int, txtdesc->asclen)) in jas_icctxtdesc_input()
1098 txtdesc->ascdata[txtdesc->asclen - 1] = '\0'; in jas_icctxtdesc_input()
1099 if (jas_iccgetuint32(in, &txtdesc->uclangcode) || in jas_icctxtdesc_input()
1100 jas_iccgetuint32(in, &txtdesc->uclen)) in jas_icctxtdesc_input()
1102 if (!(txtdesc->ucdata = jas_alloc2(txtdesc->uclen, 2))) in jas_icctxtdesc_input()
1104 if (jas_stream_read(in, txtdesc->ucdata, txtdesc->uclen * 2) != in jas_icctxtdesc_input()
1105 JAS_CAST(int, txtdesc->uclen * 2)) in jas_icctxtdesc_input()
1107 if (jas_iccgetuint16(in, &txtdesc->sccode)) in jas_icctxtdesc_input()
1111 txtdesc->maclen = c; in jas_icctxtdesc_input()
1112 if (jas_stream_read(in, txtdesc->macdata, 67) != 67) in jas_icctxtdesc_input()
1114 txtdesc->asclen = strlen(txtdesc->ascdata) + 1; in jas_icctxtdesc_input()
1117 n = txtdesc->asclen + txtdesc->uclen * 2 + 15 + 67; in jas_icctxtdesc_input()
1126 if (txtdesc->asclen + txtdesc->uclen * 2 + 15 + 67 != cnt) in jas_icctxtdesc_input()
1137 jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc; in jas_icctxtdesc_getsize() local
1138 return strlen(txtdesc->ascdata) + 1 + txtdesc->uclen * 2 + 15 + 67; in jas_icctxtdesc_getsize()
1143 jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc; in jas_icctxtdesc_output() local
1144 if (jas_iccputuint32(out, txtdesc->asclen) || in jas_icctxtdesc_output()
1145 jas_stream_puts(out, txtdesc->ascdata) || in jas_icctxtdesc_output()
1147 jas_iccputuint32(out, txtdesc->uclangcode) || in jas_icctxtdesc_output()
1148 jas_iccputuint32(out, txtdesc->uclen) || in jas_icctxtdesc_output()
1149 … jas_stream_write(out, txtdesc->ucdata, txtdesc->uclen * 2) != JAS_CAST(int, txtdesc->uclen * 2) || in jas_icctxtdesc_output()
1150 jas_iccputuint16(out, txtdesc->sccode) || in jas_icctxtdesc_output()
1151 jas_stream_putc(out, txtdesc->maclen) == EOF) in jas_icctxtdesc_output()
1153 if (txtdesc->maclen > 0) { in jas_icctxtdesc_output()
1154 if (jas_stream_write(out, txtdesc->macdata, 67) != 67) in jas_icctxtdesc_output()
1167 jas_icctxtdesc_t *txtdesc = &attrval->data.txtdesc; in jas_icctxtdesc_dump() local
1168 fprintf(out, "ascii = \"%s\"\n", txtdesc->ascdata); in jas_icctxtdesc_dump()
1169 fprintf(out, "uclangcode = %d; uclen = %d\n", (int)txtdesc->uclangcode, in jas_icctxtdesc_dump()
1170 (int)txtdesc->uclen); in jas_icctxtdesc_dump()
1171 fprintf(out, "sccode = %d\n", (int)txtdesc->sccode); in jas_icctxtdesc_dump()
1172 fprintf(out, "maclen = %d\n", txtdesc->maclen); in jas_icctxtdesc_dump()