/src/libjpeg-turbo.dev/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, 2025, 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(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
32 | | JDIMENSION input_row, _JSAMPARRAY output_buf, int num_rows) |
33 | 1.04M | { |
34 | | #if BITS_IN_JSAMPLE != 16 |
35 | | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; |
36 | | register int y, cb, cr; |
37 | | register _JSAMPROW outptr; |
38 | | register _JSAMPROW inptr0, inptr1, inptr2; |
39 | | register JDIMENSION col; |
40 | | JDIMENSION num_cols = cinfo->output_width; |
41 | | /* copy these pointers into registers if possible */ |
42 | | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; |
43 | | register int *Crrtab = cconvert->Cr_r_tab; |
44 | | register int *Cbbtab = cconvert->Cb_b_tab; |
45 | | register JLONG *Crgtab = cconvert->Cr_g_tab; |
46 | | register JLONG *Cbgtab = cconvert->Cb_g_tab; |
47 | | SHIFT_TEMPS |
48 | | |
49 | 3.18M | while (--num_rows >= 0) { |
50 | 2.14M | inptr0 = input_buf[0][input_row]; |
51 | 2.14M | inptr1 = input_buf[1][input_row]; |
52 | 2.14M | inptr2 = input_buf[2][input_row]; |
53 | 2.14M | input_row++; |
54 | 2.14M | outptr = *output_buf++; |
55 | 60.9M | for (col = 0; col < num_cols; col++) { |
56 | 58.7M | y = inptr0[col]; |
57 | 58.7M | cb = inptr1[col]; |
58 | 58.7M | cr = inptr2[col]; |
59 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ |
60 | 58.7M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; |
61 | 58.7M | outptr[RGB_GREEN] = range_limit[y + |
62 | 58.7M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], |
63 | 58.7M | SCALEBITS))]; |
64 | 58.7M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; |
65 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
66 | | /* opaque alpha channel value */ |
67 | | #ifdef RGB_ALPHA |
68 | 8.22M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
69 | | #endif |
70 | 58.7M | outptr += RGB_PIXELSIZE; |
71 | 58.7M | } |
72 | 2.14M | } |
73 | | #else |
74 | 0 | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); |
75 | | #endif |
76 | 1.04M | } Unexecuted instantiation: jdcolor-8.c:ycc_extrgb_convert Unexecuted instantiation: jdcolor-8.c:ycc_extrgbx_convert Unexecuted instantiation: jdcolor-8.c:ycc_extbgr_convert Unexecuted instantiation: jdcolor-8.c:ycc_extbgrx_convert Unexecuted instantiation: jdcolor-8.c:ycc_extxbgr_convert Unexecuted instantiation: jdcolor-8.c:ycc_extxrgb_convert Unexecuted instantiation: jdcolor-8.c:ycc_rgb_convert jdcolor-12.c:ycc_extrgb_convert Line | Count | Source | 33 | 838k | { | 34 | 838k | #if BITS_IN_JSAMPLE != 16 | 35 | 838k | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; | 36 | 838k | register int y, cb, cr; | 37 | 838k | register _JSAMPROW outptr; | 38 | 838k | register _JSAMPROW inptr0, inptr1, inptr2; | 39 | 838k | register JDIMENSION col; | 40 | 838k | JDIMENSION num_cols = cinfo->output_width; | 41 | | /* copy these pointers into registers if possible */ | 42 | 838k | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; | 43 | 838k | register int *Crrtab = cconvert->Cr_r_tab; | 44 | 838k | register int *Cbbtab = cconvert->Cb_b_tab; | 45 | 838k | register JLONG *Crgtab = cconvert->Cr_g_tab; | 46 | 838k | register JLONG *Cbgtab = cconvert->Cb_g_tab; | 47 | 838k | SHIFT_TEMPS | 48 | | | 49 | 2.51M | while (--num_rows >= 0) { | 50 | 1.67M | inptr0 = input_buf[0][input_row]; | 51 | 1.67M | inptr1 = input_buf[1][input_row]; | 52 | 1.67M | inptr2 = input_buf[2][input_row]; | 53 | 1.67M | input_row++; | 54 | 1.67M | outptr = *output_buf++; | 55 | 52.2M | for (col = 0; col < num_cols; col++) { | 56 | 50.5M | y = inptr0[col]; | 57 | 50.5M | cb = inptr1[col]; | 58 | 50.5M | cr = inptr2[col]; | 59 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ | 60 | 50.5M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; | 61 | 50.5M | outptr[RGB_GREEN] = range_limit[y + | 62 | 50.5M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], | 63 | 50.5M | SCALEBITS))]; | 64 | 50.5M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; | 65 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 66 | | /* opaque alpha channel value */ | 67 | | #ifdef RGB_ALPHA | 68 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 69 | | #endif | 70 | 50.5M | outptr += RGB_PIXELSIZE; | 71 | 50.5M | } | 72 | 1.67M | } | 73 | | #else | 74 | | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); | 75 | | #endif | 76 | 838k | } |
Unexecuted instantiation: jdcolor-12.c:ycc_extrgbx_convert Unexecuted instantiation: jdcolor-12.c:ycc_extbgr_convert jdcolor-12.c:ycc_extbgrx_convert Line | Count | Source | 33 | 203k | { | 34 | 203k | #if BITS_IN_JSAMPLE != 16 | 35 | 203k | my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert; | 36 | 203k | register int y, cb, cr; | 37 | 203k | register _JSAMPROW outptr; | 38 | 203k | register _JSAMPROW inptr0, inptr1, inptr2; | 39 | 203k | register JDIMENSION col; | 40 | 203k | JDIMENSION num_cols = cinfo->output_width; | 41 | | /* copy these pointers into registers if possible */ | 42 | 203k | register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit; | 43 | 203k | register int *Crrtab = cconvert->Cr_r_tab; | 44 | 203k | register int *Cbbtab = cconvert->Cb_b_tab; | 45 | 203k | register JLONG *Crgtab = cconvert->Cr_g_tab; | 46 | 203k | register JLONG *Cbgtab = cconvert->Cb_g_tab; | 47 | 203k | SHIFT_TEMPS | 48 | | | 49 | 671k | while (--num_rows >= 0) { | 50 | 468k | inptr0 = input_buf[0][input_row]; | 51 | 468k | inptr1 = input_buf[1][input_row]; | 52 | 468k | inptr2 = input_buf[2][input_row]; | 53 | 468k | input_row++; | 54 | 468k | outptr = *output_buf++; | 55 | 8.68M | for (col = 0; col < num_cols; col++) { | 56 | 8.22M | y = inptr0[col]; | 57 | 8.22M | cb = inptr1[col]; | 58 | 8.22M | cr = inptr2[col]; | 59 | | /* Range-limiting is essential due to noise introduced by DCT losses. */ | 60 | 8.22M | outptr[RGB_RED] = range_limit[y + Crrtab[cr]]; | 61 | 8.22M | outptr[RGB_GREEN] = range_limit[y + | 62 | 8.22M | ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], | 63 | 8.22M | SCALEBITS))]; | 64 | 8.22M | outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]]; | 65 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 66 | | /* opaque alpha channel value */ | 67 | 8.22M | #ifdef RGB_ALPHA | 68 | 8.22M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 69 | 8.22M | #endif | 70 | 8.22M | outptr += RGB_PIXELSIZE; | 71 | 8.22M | } | 72 | 468k | } | 73 | | #else | 74 | | ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL); | 75 | | #endif | 76 | 203k | } |
Unexecuted instantiation: jdcolor-12.c:ycc_extxbgr_convert Unexecuted instantiation: jdcolor-12.c:ycc_extxrgb_convert Unexecuted instantiation: jdcolor-16.c:ycc_extrgb_convert Unexecuted instantiation: jdcolor-16.c:ycc_extrgbx_convert Unexecuted instantiation: jdcolor-16.c:ycc_extbgr_convert Unexecuted instantiation: jdcolor-16.c:ycc_extbgrx_convert Unexecuted instantiation: jdcolor-16.c:ycc_extxbgr_convert Unexecuted instantiation: jdcolor-16.c:ycc_extxrgb_convert Unexecuted instantiation: jdcolor-16.c:ycc_rgb_convert |
77 | | |
78 | | |
79 | | /* |
80 | | * Convert grayscale to RGB: just duplicate the graylevel three times. |
81 | | * This is provided to support applications that don't want to cope |
82 | | * with grayscale as a separate case. |
83 | | */ |
84 | | |
85 | | INLINE |
86 | | LOCAL(void) |
87 | | gray_rgb_convert(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
88 | | JDIMENSION input_row, _JSAMPARRAY output_buf, int num_rows) |
89 | 5.13M | { |
90 | 5.13M | register _JSAMPROW inptr, outptr; |
91 | 5.13M | register JDIMENSION col; |
92 | 5.13M | JDIMENSION num_cols = cinfo->output_width; |
93 | | |
94 | 13.2M | while (--num_rows >= 0) { |
95 | 8.08M | inptr = input_buf[0][input_row++]; |
96 | 8.08M | outptr = *output_buf++; |
97 | 665M | for (col = 0; col < num_cols; col++) { |
98 | 657M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; |
99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
100 | | /* opaque alpha channel value */ |
101 | | #ifdef RGB_ALPHA |
102 | 40.9M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
103 | | #endif |
104 | 657M | outptr += RGB_PIXELSIZE; |
105 | 657M | } |
106 | 8.08M | } |
107 | 5.13M | } jdcolor-8.c:gray_extrgb_convert Line | Count | Source | 89 | 1.93M | { | 90 | 1.93M | register _JSAMPROW inptr, outptr; | 91 | 1.93M | register JDIMENSION col; | 92 | 1.93M | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 5.15M | while (--num_rows >= 0) { | 95 | 3.21M | inptr = input_buf[0][input_row++]; | 96 | 3.21M | outptr = *output_buf++; | 97 | 330M | for (col = 0; col < num_cols; col++) { | 98 | 327M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | | #ifdef RGB_ALPHA | 102 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | | #endif | 104 | 327M | outptr += RGB_PIXELSIZE; | 105 | 327M | } | 106 | 3.21M | } | 107 | 1.93M | } |
Unexecuted instantiation: jdcolor-8.c:gray_extrgbx_convert jdcolor-8.c:gray_extbgr_convert Line | Count | Source | 89 | 549k | { | 90 | 549k | register _JSAMPROW inptr, outptr; | 91 | 549k | register JDIMENSION col; | 92 | 549k | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 1.09M | while (--num_rows >= 0) { | 95 | 549k | inptr = input_buf[0][input_row++]; | 96 | 549k | outptr = *output_buf++; | 97 | 37.3M | for (col = 0; col < num_cols; col++) { | 98 | 36.8M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | | #ifdef RGB_ALPHA | 102 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | | #endif | 104 | 36.8M | outptr += RGB_PIXELSIZE; | 105 | 36.8M | } | 106 | 549k | } | 107 | 549k | } |
jdcolor-8.c:gray_extbgrx_convert Line | Count | Source | 89 | 13.5k | { | 90 | 13.5k | register _JSAMPROW inptr, outptr; | 91 | 13.5k | register JDIMENSION col; | 92 | 13.5k | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 45.0k | while (--num_rows >= 0) { | 95 | 31.5k | inptr = input_buf[0][input_row++]; | 96 | 31.5k | outptr = *output_buf++; | 97 | 3.26M | for (col = 0; col < num_cols; col++) { | 98 | 3.23M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | 3.23M | #ifdef RGB_ALPHA | 102 | 3.23M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | 3.23M | #endif | 104 | 3.23M | outptr += RGB_PIXELSIZE; | 105 | 3.23M | } | 106 | 31.5k | } | 107 | 13.5k | } |
Unexecuted instantiation: jdcolor-8.c:gray_extxbgr_convert jdcolor-8.c:gray_extxrgb_convert Line | Count | Source | 89 | 412k | { | 90 | 412k | register _JSAMPROW inptr, outptr; | 91 | 412k | register JDIMENSION col; | 92 | 412k | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 824k | while (--num_rows >= 0) { | 95 | 412k | inptr = input_buf[0][input_row++]; | 96 | 412k | outptr = *output_buf++; | 97 | 21.9M | for (col = 0; col < num_cols; col++) { | 98 | 21.5M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | 21.5M | #ifdef RGB_ALPHA | 102 | 21.5M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | 21.5M | #endif | 104 | 21.5M | outptr += RGB_PIXELSIZE; | 105 | 21.5M | } | 106 | 412k | } | 107 | 412k | } |
jdcolor-12.c:gray_extrgb_convert Line | Count | Source | 89 | 2.00M | { | 90 | 2.00M | register _JSAMPROW inptr, outptr; | 91 | 2.00M | register JDIMENSION col; | 92 | 2.00M | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 5.50M | while (--num_rows >= 0) { | 95 | 3.49M | inptr = input_buf[0][input_row++]; | 96 | 3.49M | outptr = *output_buf++; | 97 | 255M | for (col = 0; col < num_cols; col++) { | 98 | 252M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | | #ifdef RGB_ALPHA | 102 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | | #endif | 104 | 252M | outptr += RGB_PIXELSIZE; | 105 | 252M | } | 106 | 3.49M | } | 107 | 2.00M | } |
Unexecuted instantiation: jdcolor-12.c:gray_extrgbx_convert Unexecuted instantiation: jdcolor-12.c:gray_extbgr_convert jdcolor-12.c:gray_extbgrx_convert Line | Count | Source | 89 | 217k | { | 90 | 217k | register _JSAMPROW inptr, outptr; | 91 | 217k | register JDIMENSION col; | 92 | 217k | JDIMENSION num_cols = cinfo->output_width; | 93 | | | 94 | 601k | while (--num_rows >= 0) { | 95 | 383k | inptr = input_buf[0][input_row++]; | 96 | 383k | outptr = *output_buf++; | 97 | 16.5M | for (col = 0; col < num_cols; col++) { | 98 | 16.2M | outptr[RGB_RED] = outptr[RGB_GREEN] = outptr[RGB_BLUE] = inptr[col]; | 99 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 100 | | /* opaque alpha channel value */ | 101 | 16.2M | #ifdef RGB_ALPHA | 102 | 16.2M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 103 | 16.2M | #endif | 104 | 16.2M | outptr += RGB_PIXELSIZE; | 105 | 16.2M | } | 106 | 383k | } | 107 | 217k | } |
Unexecuted instantiation: jdcolor-12.c:gray_extxbgr_convert Unexecuted instantiation: jdcolor-12.c:gray_extxrgb_convert Unexecuted instantiation: jdcolor-16.c:gray_extrgb_convert Unexecuted instantiation: jdcolor-16.c:gray_extrgbx_convert Unexecuted instantiation: jdcolor-16.c:gray_extbgr_convert Unexecuted instantiation: jdcolor-16.c:gray_extbgrx_convert Unexecuted instantiation: jdcolor-16.c:gray_extxbgr_convert Unexecuted instantiation: jdcolor-16.c:gray_extxrgb_convert Unexecuted instantiation: jdcolor-16.c:gray_rgb_convert |
108 | | |
109 | | |
110 | | /* |
111 | | * Convert RGB to extended RGB: just swap the order of source pixels |
112 | | */ |
113 | | |
114 | | INLINE |
115 | | LOCAL(void) |
116 | | rgb_rgb_convert(j_decompress_ptr cinfo, _JSAMPIMAGE input_buf, |
117 | | JDIMENSION input_row, _JSAMPARRAY output_buf, int num_rows) |
118 | 85.3k | { |
119 | 85.3k | register _JSAMPROW inptr0, inptr1, inptr2; |
120 | 85.3k | register _JSAMPROW outptr; |
121 | 85.3k | register JDIMENSION col; |
122 | 85.3k | JDIMENSION num_cols = cinfo->output_width; |
123 | | |
124 | 286k | while (--num_rows >= 0) { |
125 | 200k | inptr0 = input_buf[0][input_row]; |
126 | 200k | inptr1 = input_buf[1][input_row]; |
127 | 200k | inptr2 = input_buf[2][input_row]; |
128 | 200k | input_row++; |
129 | 200k | outptr = *output_buf++; |
130 | 12.6M | for (col = 0; col < num_cols; col++) { |
131 | 12.4M | outptr[RGB_RED] = inptr0[col]; |
132 | 12.4M | outptr[RGB_GREEN] = inptr1[col]; |
133 | 12.4M | outptr[RGB_BLUE] = inptr2[col]; |
134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ |
135 | | /* opaque alpha channel value */ |
136 | | #ifdef RGB_ALPHA |
137 | 6.10M | outptr[RGB_ALPHA] = _MAXJSAMPLE; |
138 | | #endif |
139 | 12.4M | outptr += RGB_PIXELSIZE; |
140 | 12.4M | } |
141 | 200k | } |
142 | 85.3k | } Unexecuted instantiation: jdcolor-8.c:rgb_extrgb_convert Unexecuted instantiation: jdcolor-8.c:rgb_extrgbx_convert jdcolor-8.c:rgb_extbgr_convert Line | Count | Source | 118 | 27.3k | { | 119 | 27.3k | register _JSAMPROW inptr0, inptr1, inptr2; | 120 | 27.3k | register _JSAMPROW outptr; | 121 | 27.3k | register JDIMENSION col; | 122 | 27.3k | JDIMENSION num_cols = cinfo->output_width; | 123 | | | 124 | 82.1k | while (--num_rows >= 0) { | 125 | 54.8k | inptr0 = input_buf[0][input_row]; | 126 | 54.8k | inptr1 = input_buf[1][input_row]; | 127 | 54.8k | inptr2 = input_buf[2][input_row]; | 128 | 54.8k | input_row++; | 129 | 54.8k | outptr = *output_buf++; | 130 | 6.40M | for (col = 0; col < num_cols; col++) { | 131 | 6.34M | outptr[RGB_RED] = inptr0[col]; | 132 | 6.34M | outptr[RGB_GREEN] = inptr1[col]; | 133 | 6.34M | outptr[RGB_BLUE] = inptr2[col]; | 134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 135 | | /* opaque alpha channel value */ | 136 | | #ifdef RGB_ALPHA | 137 | | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 138 | | #endif | 139 | 6.34M | outptr += RGB_PIXELSIZE; | 140 | 6.34M | } | 141 | 54.8k | } | 142 | 27.3k | } |
jdcolor-8.c:rgb_extbgrx_convert Line | Count | Source | 118 | 36.1k | { | 119 | 36.1k | register _JSAMPROW inptr0, inptr1, inptr2; | 120 | 36.1k | register _JSAMPROW outptr; | 121 | 36.1k | register JDIMENSION col; | 122 | 36.1k | JDIMENSION num_cols = cinfo->output_width; | 123 | | | 124 | 138k | while (--num_rows >= 0) { | 125 | 102k | inptr0 = input_buf[0][input_row]; | 126 | 102k | inptr1 = input_buf[1][input_row]; | 127 | 102k | inptr2 = input_buf[2][input_row]; | 128 | 102k | input_row++; | 129 | 102k | outptr = *output_buf++; | 130 | 1.15M | for (col = 0; col < num_cols; col++) { | 131 | 1.05M | outptr[RGB_RED] = inptr0[col]; | 132 | 1.05M | outptr[RGB_GREEN] = inptr1[col]; | 133 | 1.05M | outptr[RGB_BLUE] = inptr2[col]; | 134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 135 | | /* opaque alpha channel value */ | 136 | 1.05M | #ifdef RGB_ALPHA | 137 | 1.05M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 138 | 1.05M | #endif | 139 | 1.05M | outptr += RGB_PIXELSIZE; | 140 | 1.05M | } | 141 | 102k | } | 142 | 36.1k | } |
Unexecuted instantiation: jdcolor-8.c:rgb_extxbgr_convert jdcolor-8.c:rgb_extxrgb_convert Line | Count | Source | 118 | 20.4k | { | 119 | 20.4k | register _JSAMPROW inptr0, inptr1, inptr2; | 120 | 20.4k | register _JSAMPROW outptr; | 121 | 20.4k | register JDIMENSION col; | 122 | 20.4k | JDIMENSION num_cols = cinfo->output_width; | 123 | | | 124 | 61.6k | while (--num_rows >= 0) { | 125 | 41.1k | inptr0 = input_buf[0][input_row]; | 126 | 41.1k | inptr1 = input_buf[1][input_row]; | 127 | 41.1k | inptr2 = input_buf[2][input_row]; | 128 | 41.1k | input_row++; | 129 | 41.1k | outptr = *output_buf++; | 130 | 3.67M | for (col = 0; col < num_cols; col++) { | 131 | 3.63M | outptr[RGB_RED] = inptr0[col]; | 132 | 3.63M | outptr[RGB_GREEN] = inptr1[col]; | 133 | 3.63M | outptr[RGB_BLUE] = inptr2[col]; | 134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 135 | | /* opaque alpha channel value */ | 136 | 3.63M | #ifdef RGB_ALPHA | 137 | 3.63M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 138 | 3.63M | #endif | 139 | 3.63M | outptr += RGB_PIXELSIZE; | 140 | 3.63M | } | 141 | 41.1k | } | 142 | 20.4k | } |
Unexecuted instantiation: jdcolor-12.c:rgb_extrgb_convert Unexecuted instantiation: jdcolor-12.c:rgb_extrgbx_convert Unexecuted instantiation: jdcolor-12.c:rgb_extbgr_convert jdcolor-12.c:rgb_extbgrx_convert Line | Count | Source | 118 | 786 | { | 119 | 786 | register _JSAMPROW inptr0, inptr1, inptr2; | 120 | 786 | register _JSAMPROW outptr; | 121 | 786 | register JDIMENSION col; | 122 | 786 | JDIMENSION num_cols = cinfo->output_width; | 123 | | | 124 | 2.85k | while (--num_rows >= 0) { | 125 | 2.07k | inptr0 = input_buf[0][input_row]; | 126 | 2.07k | inptr1 = input_buf[1][input_row]; | 127 | 2.07k | inptr2 = input_buf[2][input_row]; | 128 | 2.07k | input_row++; | 129 | 2.07k | outptr = *output_buf++; | 130 | 1.37M | for (col = 0; col < num_cols; col++) { | 131 | 1.36M | outptr[RGB_RED] = inptr0[col]; | 132 | 1.36M | outptr[RGB_GREEN] = inptr1[col]; | 133 | 1.36M | outptr[RGB_BLUE] = inptr2[col]; | 134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 135 | | /* opaque alpha channel value */ | 136 | 1.36M | #ifdef RGB_ALPHA | 137 | 1.36M | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 138 | 1.36M | #endif | 139 | 1.36M | outptr += RGB_PIXELSIZE; | 140 | 1.36M | } | 141 | 2.07k | } | 142 | 786 | } |
Unexecuted instantiation: jdcolor-12.c:rgb_extxbgr_convert Unexecuted instantiation: jdcolor-12.c:rgb_extxrgb_convert Unexecuted instantiation: jdcolor-16.c:rgb_extrgb_convert Unexecuted instantiation: jdcolor-16.c:rgb_extrgbx_convert Unexecuted instantiation: jdcolor-16.c:rgb_extbgr_convert jdcolor-16.c:rgb_extbgrx_convert Line | Count | Source | 118 | 525 | { | 119 | 525 | register _JSAMPROW inptr0, inptr1, inptr2; | 120 | 525 | register _JSAMPROW outptr; | 121 | 525 | register JDIMENSION col; | 122 | 525 | JDIMENSION num_cols = cinfo->output_width; | 123 | | | 124 | 1.12k | while (--num_rows >= 0) { | 125 | 596 | inptr0 = input_buf[0][input_row]; | 126 | 596 | inptr1 = input_buf[1][input_row]; | 127 | 596 | inptr2 = input_buf[2][input_row]; | 128 | 596 | input_row++; | 129 | 596 | outptr = *output_buf++; | 130 | 46.8k | for (col = 0; col < num_cols; col++) { | 131 | 46.2k | outptr[RGB_RED] = inptr0[col]; | 132 | 46.2k | outptr[RGB_GREEN] = inptr1[col]; | 133 | 46.2k | outptr[RGB_BLUE] = inptr2[col]; | 134 | | /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */ | 135 | | /* opaque alpha channel value */ | 136 | 46.2k | #ifdef RGB_ALPHA | 137 | 46.2k | outptr[RGB_ALPHA] = _MAXJSAMPLE; | 138 | 46.2k | #endif | 139 | 46.2k | outptr += RGB_PIXELSIZE; | 140 | 46.2k | } | 141 | 596 | } | 142 | 525 | } |
Unexecuted instantiation: jdcolor-16.c:rgb_extxbgr_convert Unexecuted instantiation: jdcolor-16.c:rgb_extxrgb_convert |