| 1111 | } |
| 1112 | |
| 1113 | static unsigned char *psl_cmyk_encode (struct PSL_CTRL *PSL, size_t *nbytes, unsigned char *input) { |
| 1114 | /* Recode RGB stream as CMYK stream */ |
| 1115 | |
| 1116 | size_t in, out, nout; |
| 1117 | unsigned char *output = NULL; |
| 1118 | |
| 1119 | nout = *nbytes / 3 * 4; |
| 1120 | output = PSL_memory (PSL, NULL, nout, unsigned char); |
| 1121 | |
| 1122 | for (in = out = 0; in < *nbytes; out += 4, in += 3) psl_rgb_to_cmyk_char (&input[in], &output[out]); |
| 1123 | *nbytes = nout; |
| 1124 | return (output); |
| 1125 | } |
| 1126 | |
| 1127 | static void psl_remove_spaces (char *label[], int n_labels, int m[]) { |
| 1128 | int i, k, j, n_tot = n_labels; |
no test coverage detected