MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / psl_cmyk_encode

Function psl_cmyk_encode

src/postscriptlight.c:1113–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113static 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
1127static void psl_remove_spaces (char *label[], int n_labels, int m[]) {
1128 int i, k, j, n_tot = n_labels;

Callers 1

psl_stream_dumpFunction · 0.85

Calls 1

psl_rgb_to_cmyk_charFunction · 0.85

Tested by

no test coverage detected