]>
Commit | Line | Data |
---|---|---|
2ac57409 | 1 | /* { dg-options "-O2" } */ |
7d4fba4a SP |
2 | |
3 | typedef unsigned char byte; | |
4 | typedef struct gx_device_s gx_device; | |
5 | typedef struct gs_devn_params_s gs_devn_params; | |
6 | typedef struct gs_devn_params_s { | |
7 | struct compressed_color_list_s * compressed_color_list; | |
8 | } gs_devn_params_t; | |
9 | int devn_unpack_row(gx_device * dev, int num_comp, | |
10 | gs_devn_params * pdevn_params, int width, byte * in, | |
11 | byte * out) | |
12 | { | |
13 | int i, comp_num, pixel_num; | |
14 | if (pdevn_params->compressed_color_list == ((void *)0)) | |
15 | { | |
16 | for (pixel_num = 0; pixel_num < width; pixel_num++) | |
17 | for (i = 0; i < num_comp; i++) | |
18 | *out++ = *in++; | |
19 | } | |
20 | } |