Coverage Report

Created: 2025-11-24 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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
668k
{
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.11M
  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
43.9M
    for (col = 0; col < num_cols; col++) {
57
42.4M
      y  = inptr0[col];
58
42.4M
      cb = inptr1[col];
59
42.4M
      cr = inptr2[col];
60
      /* Range-limiting is essential due to noise introduced by DCT losses. */
61
42.4M
      outptr[RGB_RED] =   range_limit[y + Crrtab[cr]];
62
42.4M
      outptr[RGB_GREEN] = range_limit[y +
63
42.4M
                              ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
64
42.4M
                                                SCALEBITS))];
65
42.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.32M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
70
#endif
71
42.4M
      outptr += RGB_PIXELSIZE;
72
42.4M
    }
73
1.44M
  }
74
#else
75
0
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
76
#endif
77
668k
}
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
560k
{
35
560k
#if BITS_IN_JSAMPLE != 16
36
560k
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
560k
  register int y, cb, cr;
38
560k
  register _JSAMPROW outptr;
39
560k
  register _JSAMPROW inptr0, inptr1, inptr2;
40
560k
  register JDIMENSION col;
41
560k
  JDIMENSION num_cols = cinfo->output_width;
42
  /* copy these pointers into registers if possible */
43
560k
  register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit;
44
560k
  register int *Crrtab = cconvert->Cr_r_tab;
45
560k
  register int *Cbbtab = cconvert->Cb_b_tab;
46
560k
  register JLONG *Crgtab = cconvert->Cr_g_tab;
47
560k
  register JLONG *Cbgtab = cconvert->Cb_g_tab;
48
560k
  SHIFT_TEMPS
49
50
1.76M
  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
38.3M
    for (col = 0; col < num_cols; col++) {
57
37.1M
      y  = inptr0[col];
58
37.1M
      cb = inptr1[col];
59
37.1M
      cr = inptr2[col];
60
      /* Range-limiting is essential due to noise introduced by DCT losses. */
61
37.1M
      outptr[RGB_RED] =   range_limit[y + Crrtab[cr]];
62
37.1M
      outptr[RGB_GREEN] = range_limit[y +
63
37.1M
                              ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
64
37.1M
                                                SCALEBITS))];
65
37.1M
      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
37.1M
      outptr += RGB_PIXELSIZE;
72
37.1M
    }
73
1.20M
  }
74
#else
75
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
76
#endif
77
560k
}
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
107k
{
35
107k
#if BITS_IN_JSAMPLE != 16
36
107k
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
107k
  register int y, cb, cr;
38
107k
  register _JSAMPROW outptr;
39
107k
  register _JSAMPROW inptr0, inptr1, inptr2;
40
107k
  register JDIMENSION col;
41
107k
  JDIMENSION num_cols = cinfo->output_width;
42
  /* copy these pointers into registers if possible */
43
107k
  register _JSAMPLE *range_limit = (_JSAMPLE *)cinfo->sample_range_limit;
44
107k
  register int *Crrtab = cconvert->Cr_r_tab;
45
107k
  register int *Cbbtab = cconvert->Cb_b_tab;
46
107k
  register JLONG *Crgtab = cconvert->Cr_g_tab;
47
107k
  register JLONG *Cbgtab = cconvert->Cb_g_tab;
48
107k
  SHIFT_TEMPS
49
50
352k
  while (--num_rows >= 0) {
51
245k
    inptr0 = input_buf[0][input_row];
52
245k
    inptr1 = input_buf[1][input_row];
53
245k
    inptr2 = input_buf[2][input_row];
54
245k
    input_row++;
55
245k
    outptr = *output_buf++;
56
5.56M
    for (col = 0; col < num_cols; col++) {
57
5.32M
      y  = inptr0[col];
58
5.32M
      cb = inptr1[col];
59
5.32M
      cr = inptr2[col];
60
      /* Range-limiting is essential due to noise introduced by DCT losses. */
61
5.32M
      outptr[RGB_RED] =   range_limit[y + Crrtab[cr]];
62
5.32M
      outptr[RGB_GREEN] = range_limit[y +
63
5.32M
                              ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
64
5.32M
                                                SCALEBITS))];
65
5.32M
      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.32M
#ifdef RGB_ALPHA
69
5.32M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
70
5.32M
#endif
71
5.32M
      outptr += RGB_PIXELSIZE;
72
5.32M
    }
73
245k
  }
74
#else
75
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
76
#endif
77
107k
}
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
7.67M
{
92
7.67M
  register _JSAMPROW inptr, outptr;
93
7.67M
  register JDIMENSION col;
94
7.67M
  JDIMENSION num_cols = cinfo->output_width;
95
96
19.0M
  while (--num_rows >= 0) {
97
11.4M
    inptr = input_buf[0][input_row++];
98
11.4M
    outptr = *output_buf++;
99
910M
    for (col = 0; col < num_cols; col++) {
100
898M
      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
55.5M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
105
#endif
106
898M
      outptr += RGB_PIXELSIZE;
107
898M
    }
108
11.4M
  }
109
7.67M
}
jdcolor-8.c:gray_extrgb_convert_internal
Line
Count
Source
91
3.87M
{
92
3.87M
  register _JSAMPROW inptr, outptr;
93
3.87M
  register JDIMENSION col;
94
3.87M
  JDIMENSION num_cols = cinfo->output_width;
95
96
9.46M
  while (--num_rows >= 0) {
97
5.59M
    inptr = input_buf[0][input_row++];
98
5.59M
    outptr = *output_buf++;
99
468M
    for (col = 0; col < num_cols; col++) {
100
462M
      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
462M
      outptr += RGB_PIXELSIZE;
107
462M
    }
108
5.59M
  }
109
3.87M
}
Unexecuted instantiation: jdcolor-8.c:gray_extrgbx_convert_internal
jdcolor-8.c:gray_extbgr_convert_internal
Line
Count
Source
91
510k
{
92
510k
  register _JSAMPROW inptr, outptr;
93
510k
  register JDIMENSION col;
94
510k
  JDIMENSION num_cols = cinfo->output_width;
95
96
1.02M
  while (--num_rows >= 0) {
97
510k
    inptr = input_buf[0][input_row++];
98
510k
    outptr = *output_buf++;
99
51.3M
    for (col = 0; col < num_cols; col++) {
100
50.7M
      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
50.7M
      outptr += RGB_PIXELSIZE;
107
50.7M
    }
108
510k
  }
109
510k
}
jdcolor-8.c:gray_extbgrx_convert_internal
Line
Count
Source
91
93.5k
{
92
93.5k
  register _JSAMPROW inptr, outptr;
93
93.5k
  register JDIMENSION col;
94
93.5k
  JDIMENSION num_cols = cinfo->output_width;
95
96
245k
  while (--num_rows >= 0) {
97
151k
    inptr = input_buf[0][input_row++];
98
151k
    outptr = *output_buf++;
99
6.21M
    for (col = 0; col < num_cols; col++) {
100
6.06M
      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.06M
#ifdef RGB_ALPHA
104
6.06M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
105
6.06M
#endif
106
6.06M
      outptr += RGB_PIXELSIZE;
107
6.06M
    }
108
151k
  }
109
93.5k
}
Unexecuted instantiation: jdcolor-8.c:gray_extxbgr_convert_internal
jdcolor-8.c:gray_extxrgb_convert_internal
Line
Count
Source
91
382k
{
92
382k
  register _JSAMPROW inptr, outptr;
93
382k
  register JDIMENSION col;
94
382k
  JDIMENSION num_cols = cinfo->output_width;
95
96
765k
  while (--num_rows >= 0) {
97
382k
    inptr = input_buf[0][input_row++];
98
382k
    outptr = *output_buf++;
99
29.7M
    for (col = 0; col < num_cols; col++) {
100
29.3M
      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
29.3M
#ifdef RGB_ALPHA
104
29.3M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
105
29.3M
#endif
106
29.3M
      outptr += RGB_PIXELSIZE;
107
29.3M
    }
108
382k
  }
109
382k
}
Unexecuted instantiation: jdcolor-8.c:gray_rgb_convert_internal
jdcolor-12.c:gray_extrgb_convert_internal
Line
Count
Source
91
2.56M
{
92
2.56M
  register _JSAMPROW inptr, outptr;
93
2.56M
  register JDIMENSION col;
94
2.56M
  JDIMENSION num_cols = cinfo->output_width;
95
96
6.92M
  while (--num_rows >= 0) {
97
4.35M
    inptr = input_buf[0][input_row++];
98
4.35M
    outptr = *output_buf++;
99
333M
    for (col = 0; col < num_cols; col++) {
100
329M
      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
329M
      outptr += RGB_PIXELSIZE;
107
329M
    }
108
4.35M
  }
109
2.56M
}
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
242k
{
92
242k
  register _JSAMPROW inptr, outptr;
93
242k
  register JDIMENSION col;
94
242k
  JDIMENSION num_cols = cinfo->output_width;
95
96
673k
  while (--num_rows >= 0) {
97
431k
    inptr = input_buf[0][input_row++];
98
431k
    outptr = *output_buf++;
99
20.5M
    for (col = 0; col < num_cols; col++) {
100
20.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
20.1M
#ifdef RGB_ALPHA
104
20.1M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
105
20.1M
#endif
106
20.1M
      outptr += RGB_PIXELSIZE;
107
20.1M
    }
108
431k
  }
109
242k
}
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
15.5k
{
122
15.5k
  register _JSAMPROW inptr0, inptr1, inptr2;
123
15.5k
  register _JSAMPROW outptr;
124
15.5k
  register JDIMENSION col;
125
15.5k
  JDIMENSION num_cols = cinfo->output_width;
126
127
64.2k
  while (--num_rows >= 0) {
128
48.7k
    inptr0 = input_buf[0][input_row];
129
48.7k
    inptr1 = input_buf[1][input_row];
130
48.7k
    inptr2 = input_buf[2][input_row];
131
48.7k
    input_row++;
132
48.7k
    outptr = *output_buf++;
133
10.7M
    for (col = 0; col < num_cols; col++) {
134
10.7M
      outptr[RGB_RED] = inptr0[col];
135
10.7M
      outptr[RGB_GREEN] = inptr1[col];
136
10.7M
      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
5.45M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
141
#endif
142
10.7M
      outptr += RGB_PIXELSIZE;
143
10.7M
    }
144
48.7k
  }
145
15.5k
}
Unexecuted instantiation: jdcolor-8.c:rgb_extrgb_convert_internal
Unexecuted instantiation: jdcolor-8.c:rgb_extrgbx_convert_internal
jdcolor-8.c:rgb_extbgr_convert_internal
Line
Count
Source
121
1.37k
{
122
1.37k
  register _JSAMPROW inptr0, inptr1, inptr2;
123
1.37k
  register _JSAMPROW outptr;
124
1.37k
  register JDIMENSION col;
125
1.37k
  JDIMENSION num_cols = cinfo->output_width;
126
127
3.51k
  while (--num_rows >= 0) {
128
2.13k
    inptr0 = input_buf[0][input_row];
129
2.13k
    inptr1 = input_buf[1][input_row];
130
2.13k
    inptr2 = input_buf[2][input_row];
131
2.13k
    input_row++;
132
2.13k
    outptr = *output_buf++;
133
5.26M
    for (col = 0; col < num_cols; col++) {
134
5.26M
      outptr[RGB_RED] = inptr0[col];
135
5.26M
      outptr[RGB_GREEN] = inptr1[col];
136
5.26M
      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
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
141
#endif
142
5.26M
      outptr += RGB_PIXELSIZE;
143
5.26M
    }
144
2.13k
  }
145
1.37k
}
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
826k
    for (col = 0; col < num_cols; col++) {
134
802k
      outptr[RGB_RED] = inptr0[col];
135
802k
      outptr[RGB_GREEN] = inptr1[col];
136
802k
      outptr[RGB_BLUE] = inptr2[col];
137
      /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */
138
      /* opaque alpha channel value */
139
802k
#ifdef RGB_ALPHA
140
802k
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
141
802k
#endif
142
802k
      outptr += RGB_PIXELSIZE;
143
802k
    }
144
24.2k
  }
145
6.99k
}
Unexecuted instantiation: jdcolor-8.c:rgb_extxbgr_convert_internal
jdcolor-8.c:rgb_extxrgb_convert_internal
Line
Count
Source
121
1.04k
{
122
1.04k
  register _JSAMPROW inptr0, inptr1, inptr2;
123
1.04k
  register _JSAMPROW outptr;
124
1.04k
  register JDIMENSION col;
125
1.04k
  JDIMENSION num_cols = cinfo->output_width;
126
127
2.65k
  while (--num_rows >= 0) {
128
1.61k
    inptr0 = input_buf[0][input_row];
129
1.61k
    inptr1 = input_buf[1][input_row];
130
1.61k
    inptr2 = input_buf[2][input_row];
131
1.61k
    input_row++;
132
1.61k
    outptr = *output_buf++;
133
3.13M
    for (col = 0; col < num_cols; col++) {
134
3.13M
      outptr[RGB_RED] = inptr0[col];
135
3.13M
      outptr[RGB_GREEN] = inptr1[col];
136
3.13M
      outptr[RGB_BLUE] = inptr2[col];
137
      /* Set unused byte to _MAXJSAMPLE so it can be interpreted as an */
138
      /* opaque alpha channel value */
139
3.13M
#ifdef RGB_ALPHA
140
3.13M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
141
3.13M
#endif
142
3.13M
      outptr += RGB_PIXELSIZE;
143
3.13M
    }
144
1.61k
  }
145
1.04k
}
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.70k
{
122
5.70k
  register _JSAMPROW inptr0, inptr1, inptr2;
123
5.70k
  register _JSAMPROW outptr;
124
5.70k
  register JDIMENSION col;
125
5.70k
  JDIMENSION num_cols = cinfo->output_width;
126
127
25.7k
  while (--num_rows >= 0) {
128
20.0k
    inptr0 = input_buf[0][input_row];
129
20.0k
    inptr1 = input_buf[1][input_row];
130
20.0k
    inptr2 = input_buf[2][input_row];
131
20.0k
    input_row++;
132
20.0k
    outptr = *output_buf++;
133
1.52M
    for (col = 0; col < num_cols; col++) {
134
1.50M
      outptr[RGB_RED] = inptr0[col];
135
1.50M
      outptr[RGB_GREEN] = inptr1[col];
136
1.50M
      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.50M
#ifdef RGB_ALPHA
140
1.50M
      outptr[RGB_ALPHA] = _MAXJSAMPLE;
141
1.50M
#endif
142
1.50M
      outptr += RGB_PIXELSIZE;
143
1.50M
    }
144
20.0k
  }
145
5.70k
}
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
438
{
122
438
  register _JSAMPROW inptr0, inptr1, inptr2;
123
438
  register _JSAMPROW outptr;
124
438
  register JDIMENSION col;
125
438
  JDIMENSION num_cols = cinfo->output_width;
126
127
1.10k
  while (--num_rows >= 0) {
128
663
    inptr0 = input_buf[0][input_row];
129
663
    inptr1 = input_buf[1][input_row];
130
663
    inptr2 = input_buf[2][input_row];
131
663
    input_row++;
132
663
    outptr = *output_buf++;
133
11.5k
    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
663
  }
145
438
}
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