/src/libjpeg-turbo.main/src/jdcolext.c
Line | Count | Source |
1 | | /* |
2 | | * jdcolext.c |
3 | | * |
4 | | * This file was part of the Independent JPEG Group's software: |
5 | | * Copyright (C) 1991-1997, Thomas G. Lane. |
6 | | * libjpeg-turbo Modifications: |
7 | | * Copyright (C) 2009, 2011, 2015, 2022-2023, D. R. Commander. |
8 | | * For conditions of distribution and use, see the accompanying README.ijg |
9 | | * file. |
10 | | * |
11 | | * This file contains output colorspace conversion routines. |
12 | | */ |
13 | | |
14 | | |
15 | | /* This file is included by jdcolor.c */ |
16 | | |
17 | | |
18 | | /* |
19 | | * Convert some rows of samples to the output colorspace. |
20 | | * |
21 | | * Note that we change from noninterleaved, one-plane-per-component format |
22 | | * to interleaved-pixel format. The output buffer is therefore three times |
23 | | * as wide as the input buffer. |
24 | | * A starting row offset is provided only for the input buffer. The caller |
25 | | * can easily adjust the passed output_buf value to accommodate any row |
26 | | * offset required on that side. |
27 | | */ |
28 | | |
29 | | INLINE |
30 | | LOCAL(void) |
31 | | ycc_rgb_convert_internal(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
32 | | JDIMENSION input_row, _JSAMPARRAY output_buf, |
33 | | int num_rows) |
34 | 706k | { |
35 | | #if BITS_IN_JSAMPLE != 16 |
36 | | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; |
37 | | register int y, cb, cr; |
38 | | register _JSAMPROW outptr; |
39 | | register _JSAMPROW inptr0, inptr1, inptr2; |
40 | | register JDIMENSION col; |
41 | | JDIMENSION num_cols = cinfo->output_width; |
42 | | /* copy these pointers into registers if possible */ |
43 | | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; |
44 | | register int *Crrtab = cconvert->Cr_r_tab; |
45 | | register int *Cbbtab = cconvert->Cb_b_tab; |
46 | | register JLONG *Crgtab = cconvert->Cr_g_tab; |
47 | | register JLONG *Cbgtab = cconvert->Cb_g_tab; |
48 | | SHIFT_TEMPS |
49 | | |
50 | 2.14M | while (--num_rows >= 0) { |
51 | 1.44M | inptr0 = input_buf[0][input_row]; |
52 | 1.44M | inptr1 = input_buf[1][input_row]; |
53 | 1.44M | inptr2 = input_buf[2][input_row]; |
54 | 1.44M | input_row++; |
55 | 1.44M | outptr = *output_buf++; |
56 | 42.9M | for (col = 0; col < num_cols; col++) { |
57 | 41.4M | y = inptr0[col]; |
58 | 41.4M | cb = inptr1[col]; |
59 | 41.4M | cr = inptr2[col]; |
60 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ |
61 | 41.4M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; |
62 | 41.4M | outptr[RGB_GREEN] = range_limit[y + |
63 | 41.4M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], |
64 | 41.4M | SCALEBITS))]; |
65 | 41.4M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; |
66 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
67 | | /* opaque alpha channel value */ |
68 | | #ifdef RGB_ALPHA |
69 | 5.16M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
70 | | #endif |
71 | 41.4M | outptr += RGB_PIXELSIZE; |
72 | 41.4M | } |
73 | 1.44M | } |
74 | | #else |
75 | 0 | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); |
76 | | #endif |
77 | 706k | } Unexecuted instantiation: jdcolor-8.c:ycc_extrgb_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_extrgbx_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_extbgr_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_extbgrx_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_extxbgr_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_extxrgb_convert_internal Unexecuted instantiation: jdcolor-8.c:ycc_rgb_convert_internal jdcolor-12.c:ycc_extrgb_convert_internal Line | Count | Source | 34 | 590k | { | 35 | 590k | #if BITS_IN_JSAMPLE != 16 | 36 | 590k | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; | 37 | 590k | register int y, cb, cr; | 38 | 590k | register _JSAMPROW outptr; | 39 | 590k | register _JSAMPROW inptr0, inptr1, inptr2; | 40 | 590k | register JDIMENSION col; | 41 | 590k | JDIMENSION num_cols = cinfo->output_width; | 42 | | /* copy these pointers into registers if possible */ | 43 | 590k | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; | 44 | 590k | register int *Crrtab = cconvert->Cr_r_tab; | 45 | 590k | register int *Cbbtab = cconvert->Cb_b_tab; | 46 | 590k | register JLONG *Crgtab = cconvert->Cr_g_tab; | 47 | 590k | register JLONG *Cbgtab = cconvert->Cb_g_tab; | 48 | 590k | SHIFT_TEMPS | 49 | | | 50 | 1.80M | while (--num_rows >= 0) { | 51 | 1.20M | inptr0 = input_buf[0][input_row]; | 52 | 1.20M | inptr1 = input_buf[1][input_row]; | 53 | 1.20M | inptr2 = input_buf[2][input_row]; | 54 | 1.20M | input_row++; | 55 | 1.20M | outptr = *output_buf++; | 56 | 37.5M | for (col = 0; col < num_cols; col++) { | 57 | 36.3M | y = inptr0[col]; | 58 | 36.3M | cb = inptr1[col]; | 59 | 36.3M | cr = inptr2[col]; | 60 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ | 61 | 36.3M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; | 62 | 36.3M | outptr[RGB_GREEN] = range_limit[y + | 63 | 36.3M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], | 64 | 36.3M | SCALEBITS))]; | 65 | 36.3M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; | 66 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 67 | | /* opaque alpha channel value */ | 68 | | #ifdef RGB_ALPHA | 69 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 70 | | #endif | 71 | 36.3M | outptr += RGB_PIXELSIZE; | 72 | 36.3M | } | 73 | 1.20M | } | 74 | | #else | 75 | | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); | 76 | | #endif | 77 | 590k | } |
Unexecuted instantiation: jdcolor-12.c:ycc_extrgbx_convert_internal Unexecuted instantiation: jdcolor-12.c:ycc_extbgr_convert_internal jdcolor-12.c:ycc_extbgrx_convert_internal Line | Count | Source | 34 | 115k | { | 35 | 115k | #if BITS_IN_JSAMPLE != 16 | 36 | 115k | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; | 37 | 115k | register int y, cb, cr; | 38 | 115k | register _JSAMPROW outptr; | 39 | 115k | register _JSAMPROW inptr0, inptr1, inptr2; | 40 | 115k | register JDIMENSION col; | 41 | 115k | JDIMENSION num_cols = cinfo->output_width; | 42 | | /* copy these pointers into registers if possible */ | 43 | 115k | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; | 44 | 115k | register int *Crrtab = cconvert->Cr_r_tab; | 45 | 115k | register int *Cbbtab = cconvert->Cb_b_tab; | 46 | 115k | register JLONG *Crgtab = cconvert->Cr_g_tab; | 47 | 115k | register JLONG *Cbgtab = cconvert->Cb_g_tab; | 48 | 115k | SHIFT_TEMPS | 49 | | | 50 | 348k | while (--num_rows >= 0) { | 51 | 233k | inptr0 = input_buf[0][input_row]; | 52 | 233k | inptr1 = input_buf[1][input_row]; | 53 | 233k | inptr2 = input_buf[2][input_row]; | 54 | 233k | input_row++; | 55 | 233k | outptr = *output_buf++; | 56 | 5.39M | for (col = 0; col < num_cols; col++) { | 57 | 5.16M | y = inptr0[col]; | 58 | 5.16M | cb = inptr1[col]; | 59 | 5.16M | cr = inptr2[col]; | 60 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ | 61 | 5.16M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; | 62 | 5.16M | outptr[RGB_GREEN] = range_limit[y + | 63 | 5.16M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], | 64 | 5.16M | SCALEBITS))]; | 65 | 5.16M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; | 66 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 67 | | /* opaque alpha channel value */ | 68 | 5.16M | #ifdef RGB_ALPHA | 69 | 5.16M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 70 | 5.16M | #endif | 71 | 5.16M | outptr += RGB_PIXELSIZE; | 72 | 5.16M | } | 73 | 233k | } | 74 | | #else | 75 | | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); | 76 | | #endif | 77 | 115k | } |
Unexecuted instantiation: jdcolor-12.c:ycc_extxbgr_convert_internal Unexecuted instantiation: jdcolor-12.c:ycc_extxrgb_convert_internal Unexecuted instantiation: jdcolor-12.c:ycc_rgb_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extrgbx_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extbgr_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extbgrx_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extxbgr_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_extxrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:ycc_rgb_convert_internal |
78 | | |
79 | | |
80 | | /* |
81 | | * Convert grayscale to RGB: just duplicate the graylevel three times. |
82 | | * This is provided to support applications that don't want to cope |
83 | | * with grayscale as a separate case. |
84 | | */ |
85 | | |
86 | | INLINE |
87 | | LOCAL(void) |
88 | | gray_rgb_convert_internal(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
89 | | JDIMENSION input_row, _JSAMPARRAY output_buf, |
90 | | int num_rows) |
91 | 6.72M | { |
92 | 6.72M | register _JSAMPROW inptr, outptr; |
93 | 6.72M | register JDIMENSION col; |
94 | 6.72M | JDIMENSION num_cols = cinfo->output_width; |
95 | | |
96 | 17.1M | while (--num_rows >= 0) { |
97 | 10.4M | inptr = input_buf[0][input_row++]; |
98 | 10.4M | outptr = *output_buf++; |
99 | 812M | for (col = 0; col < num_cols; col++) { |
100 | 802M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; |
101 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
102 | | /* opaque alpha channel value */ |
103 | | #ifdef RGB_ALPHA |
104 | 25.4M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
105 | | #endif |
106 | 802M | outptr += RGB_PIXELSIZE; |
107 | 802M | } |
108 | 10.4M | } |
109 | 6.72M | } jdcolor-8.c:gray_extrgb_convert_internal Line | Count | Source | 91 | 3.79M | { | 92 | 3.79M | register _JSAMPROW inptr, outptr; | 93 | 3.79M | register JDIMENSION col; | 94 | 3.79M | JDIMENSION num_cols = cinfo->output_width; | 95 | | | 96 | 9.38M | while (--num_rows >= 0) { | 97 | 5.59M | inptr = input_buf[0][input_row++]; | 98 | 5.59M | outptr = *output_buf++; | 99 | 459M | for (col = 0; col < num_cols; col++) { | 100 | 454M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 101 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 102 | | /* opaque alpha channel value */ | 103 | | #ifdef RGB_ALPHA | 104 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 105 | | #endif | 106 | 454M | outptr += RGB_PIXELSIZE; | 107 | 454M | } | 108 | 5.59M | } | 109 | 3.79M | } |
Unexecuted instantiation: jdcolor-8.c:gray_extrgbx_convert_internal Unexecuted instantiation: jdcolor-8.c:gray_extbgr_convert_internal jdcolor-8.c:gray_extbgrx_convert_internal Line | Count | Source | 91 | 97.7k | { | 92 | 97.7k | register _JSAMPROW inptr, outptr; | 93 | 97.7k | register JDIMENSION col; | 94 | 97.7k | JDIMENSION num_cols = cinfo->output_width; | 95 | | | 96 | 257k | while (--num_rows >= 0) { | 97 | 159k | inptr = input_buf[0][input_row++]; | 98 | 159k | outptr = *output_buf++; | 99 | 6.43M | for (col = 0; col < num_cols; col++) { | 100 | 6.27M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 101 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 102 | | /* opaque alpha channel value */ | 103 | 6.27M | #ifdef RGB_ALPHA | 104 | 6.27M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 105 | 6.27M | #endif | 106 | 6.27M | outptr += RGB_PIXELSIZE; | 107 | 6.27M | } | 108 | 159k | } | 109 | 97.7k | } |
Unexecuted instantiation: jdcolor-8.c:gray_extxbgr_convert_internal Unexecuted instantiation: jdcolor-8.c:gray_extxrgb_convert_internal Unexecuted instantiation: jdcolor-8.c:gray_rgb_convert_internal jdcolor-12.c:gray_extrgb_convert_internal Line | Count | Source | 91 | 2.57M | { | 92 | 2.57M | register _JSAMPROW inptr, outptr; | 93 | 2.57M | register JDIMENSION col; | 94 | 2.57M | JDIMENSION num_cols = cinfo->output_width; | 95 | | | 96 | 6.83M | while (--num_rows >= 0) { | 97 | 4.25M | inptr = input_buf[0][input_row++]; | 98 | 4.25M | outptr = *output_buf++; | 99 | 326M | for (col = 0; col < num_cols; col++) { | 100 | 322M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 101 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 102 | | /* opaque alpha channel value */ | 103 | | #ifdef RGB_ALPHA | 104 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 105 | | #endif | 106 | 322M | outptr += RGB_PIXELSIZE; | 107 | 322M | } | 108 | 4.25M | } | 109 | 2.57M | } |
Unexecuted instantiation: jdcolor-12.c:gray_extrgbx_convert_internal Unexecuted instantiation: jdcolor-12.c:gray_extbgr_convert_internal jdcolor-12.c:gray_extbgrx_convert_internal Line | Count | Source | 91 | 262k | { | 92 | 262k | register _JSAMPROW inptr, outptr; | 93 | 262k | register JDIMENSION col; | 94 | 262k | JDIMENSION num_cols = cinfo->output_width; | 95 | | | 96 | 717k | while (--num_rows >= 0) { | 97 | 454k | inptr = input_buf[0][input_row++]; | 98 | 454k | outptr = *output_buf++; | 99 | 19.6M | for (col = 0; col < num_cols; col++) { | 100 | 19.1M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 101 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 102 | | /* opaque alpha channel value */ | 103 | 19.1M | #ifdef RGB_ALPHA | 104 | 19.1M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 105 | 19.1M | #endif | 106 | 19.1M | outptr += RGB_PIXELSIZE; | 107 | 19.1M | } | 108 | 454k | } | 109 | 262k | } |
Unexecuted instantiation: jdcolor-12.c:gray_extxbgr_convert_internal Unexecuted instantiation: jdcolor-12.c:gray_extxrgb_convert_internal Unexecuted instantiation: jdcolor-12.c:gray_rgb_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extrgbx_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extbgr_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extbgrx_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extxbgr_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_extxrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:gray_rgb_convert_internal |
110 | | |
111 | | |
112 | | /* |
113 | | * Convert RGB to extended RGB: just swap the order of source pixels |
114 | | */ |
115 | | |
116 | | INLINE |
117 | | LOCAL(void) |
118 | | rgb_rgb_convert_internal(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
119 | | JDIMENSION input_row, _JSAMPARRAY output_buf, |
120 | | int num_rows) |
121 | 12.9k | { |
122 | 12.9k | register _JSAMPROW inptr0, inptr1, inptr2; |
123 | 12.9k | register _JSAMPROW outptr; |
124 | 12.9k | register JDIMENSION col; |
125 | 12.9k | JDIMENSION num_cols = cinfo->output_width; |
126 | | |
127 | 57.1k | while (--num_rows >= 0) { |
128 | 44.1k | inptr0 = input_buf[0][input_row]; |
129 | 44.1k | inptr1 = input_buf[1][input_row]; |
130 | 44.1k | inptr2 = input_buf[2][input_row]; |
131 | 44.1k | input_row++; |
132 | 44.1k | outptr = *output_buf++; |
133 | 2.28M | for (col = 0; col < num_cols; col++) { |
134 | 2.23M | outptr[RGB_RED] = inptr0[col]; |
135 | 2.23M | outptr[RGB_GREEN] = inptr1[col]; |
136 | 2.23M | outptr[RGB_BLUE] = inptr2[col]; |
137 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
138 | | /* opaque alpha channel value */ |
139 | | #ifdef RGB_ALPHA |
140 | 2.23M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
141 | | #endif |
142 | 2.23M | outptr += RGB_PIXELSIZE; |
143 | 2.23M | } |
144 | 44.1k | } |
145 | 12.9k | } Unexecuted instantiation: jdcolor-8.c:rgb_extrgb_convert_internal Unexecuted instantiation: jdcolor-8.c:rgb_extrgbx_convert_internal Unexecuted instantiation: jdcolor-8.c:rgb_extbgr_convert_internal jdcolor-8.c:rgb_extbgrx_convert_internal Line | Count | Source | 121 | 6.99k | { | 122 | 6.99k | register _JSAMPROW inptr0, inptr1, inptr2; | 123 | 6.99k | register _JSAMPROW outptr; | 124 | 6.99k | register JDIMENSION col; | 125 | 6.99k | JDIMENSION num_cols = cinfo->output_width; | 126 | | | 127 | 31.2k | while (--num_rows >= 0) { | 128 | 24.2k | inptr0 = input_buf[0][input_row]; | 129 | 24.2k | inptr1 = input_buf[1][input_row]; | 130 | 24.2k | inptr2 = input_buf[2][input_row]; | 131 | 24.2k | input_row++; | 132 | 24.2k | outptr = *output_buf++; | 133 | 922k | for (col = 0; col < num_cols; col++) { | 134 | 897k | outptr[RGB_RED] = inptr0[col]; | 135 | 897k | outptr[RGB_GREEN] = inptr1[col]; | 136 | 897k | outptr[RGB_BLUE] = inptr2[col]; | 137 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 138 | | /* opaque alpha channel value */ | 139 | 897k | #ifdef RGB_ALPHA | 140 | 897k | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 141 | 897k | #endif | 142 | 897k | outptr += RGB_PIXELSIZE; | 143 | 897k | } | 144 | 24.2k | } | 145 | 6.99k | } |
Unexecuted instantiation: jdcolor-8.c:rgb_extxbgr_convert_internal Unexecuted instantiation: jdcolor-8.c:rgb_extxrgb_convert_internal Unexecuted instantiation: jdcolor-8.c:rgb_rgb_convert_internal Unexecuted instantiation: jdcolor-12.c:rgb_extrgb_convert_internal Unexecuted instantiation: jdcolor-12.c:rgb_extrgbx_convert_internal Unexecuted instantiation: jdcolor-12.c:rgb_extbgr_convert_internal jdcolor-12.c:rgb_extbgrx_convert_internal Line | Count | Source | 121 | 5.50k | { | 122 | 5.50k | register _JSAMPROW inptr0, inptr1, inptr2; | 123 | 5.50k | register _JSAMPROW outptr; | 124 | 5.50k | register JDIMENSION col; | 125 | 5.50k | JDIMENSION num_cols = cinfo->output_width; | 126 | | | 127 | 24.7k | while (--num_rows >= 0) { | 128 | 19.2k | inptr0 = input_buf[0][input_row]; | 129 | 19.2k | inptr1 = input_buf[1][input_row]; | 130 | 19.2k | inptr2 = input_buf[2][input_row]; | 131 | 19.2k | input_row++; | 132 | 19.2k | outptr = *output_buf++; | 133 | 1.34M | for (col = 0; col < num_cols; col++) { | 134 | 1.33M | outptr[RGB_RED] = inptr0[col]; | 135 | 1.33M | outptr[RGB_GREEN] = inptr1[col]; | 136 | 1.33M | outptr[RGB_BLUE] = inptr2[col]; | 137 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 138 | | /* opaque alpha channel value */ | 139 | 1.33M | #ifdef RGB_ALPHA | 140 | 1.33M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 141 | 1.33M | #endif | 142 | 1.33M | outptr += RGB_PIXELSIZE; | 143 | 1.33M | } | 144 | 19.2k | } | 145 | 5.50k | } |
Unexecuted instantiation: jdcolor-12.c:rgb_extxbgr_convert_internal Unexecuted instantiation: jdcolor-12.c:rgb_extxrgb_convert_internal Unexecuted instantiation: jdcolor-12.c:rgb_rgb_convert_internal Unexecuted instantiation: jdcolor-16.c:rgb_extrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:rgb_extrgbx_convert_internal Unexecuted instantiation: jdcolor-16.c:rgb_extbgr_convert_internal jdcolor-16.c:rgb_extbgrx_convert_internal Line | Count | Source | 121 | 437 | { | 122 | 437 | register _JSAMPROW inptr0, inptr1, inptr2; | 123 | 437 | register _JSAMPROW outptr; | 124 | 437 | register JDIMENSION col; | 125 | 437 | JDIMENSION num_cols = cinfo->output_width; | 126 | | | 127 | 1.09k | while (--num_rows >= 0) { | 128 | 662 | inptr0 = input_buf[0][input_row]; | 129 | 662 | inptr1 = input_buf[1][input_row]; | 130 | 662 | inptr2 = input_buf[2][input_row]; | 131 | 662 | input_row++; | 132 | 662 | outptr = *output_buf++; | 133 | 11.4k | for (col = 0; col < num_cols; col++) { | 134 | 10.8k | outptr[RGB_RED] = inptr0[col]; | 135 | 10.8k | outptr[RGB_GREEN] = inptr1[col]; | 136 | 10.8k | outptr[RGB_BLUE] = inptr2[col]; | 137 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 138 | | /* opaque alpha channel value */ | 139 | 10.8k | #ifdef RGB_ALPHA | 140 | 10.8k | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 141 | 10.8k | #endif | 142 | 10.8k | outptr += RGB_PIXELSIZE; | 143 | 10.8k | } | 144 | 662 | } | 145 | 437 | } |
Unexecuted instantiation: jdcolor-16.c:rgb_extxbgr_convert_internal Unexecuted instantiation: jdcolor-16.c:rgb_extxrgb_convert_internal Unexecuted instantiation: jdcolor-16.c:rgb_rgb_convert_internal |