Coverage Report

Created: 2026-05-30 07:16

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libjpeg-turbo.main/src/jccolext.c
Line
Count
Source
1
/*
2
 * jccolext.c
3
 *
4
 * This file was part of the Independent JPEG Group's software:
5
 * Copyright (C) 1991-1996, Thomas G. Lane.
6
 * libjpeg-turbo Modifications:
7
 * Copyright (C) 2009-2012, 2015, 2022, 2025, D. R. Commander.
8
 * For conditions of distribution and use, see the accompanying README.ijg
9
 * file.
10
 *
11
 * This file contains input colorspace conversion routines.
12
 */
13
14
15
/* This file is included by jccolor.c */
16
17
18
/*
19
 * Convert some rows of samples to the JPEG colorspace.
20
 *
21
 * Note that we change from the application's interleaved-pixel format
22
 * to our internal noninterleaved, one-plane-per-component format.
23
 * The input buffer is therefore three times as wide as the output buffer.
24
 *
25
 * A starting row offset is provided only for the output buffer.  The caller
26
 * can easily adjust the passed input_buf value to accommodate any row
27
 * offset required on that side.
28
 */
29
30
INLINE
31
LOCAL(void)
32
rgb_ycc_convert(j_compress_ptr cinfo, _JSAMPARRAY input_buf,
33
                _JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
34
13.2M
{
35
#if BITS_IN_JSAMPLE != 16
36
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
  register int r, g, b;
38
  register JLONG *ctab = cconvert->rgb_ycc_tab;
39
  register _JSAMPROW inptr;
40
  register _JSAMPROW outptr0, outptr1, outptr2;
41
  register JDIMENSION col;
42
  JDIMENSION num_cols = cinfo->image_width;
43
44
26.4M
  while (--num_rows >= 0) {
45
13.2M
    inptr = *input_buf++;
46
13.2M
    outptr0 = output_buf[0][output_row];
47
13.2M
    outptr1 = output_buf[1][output_row];
48
13.2M
    outptr2 = output_buf[2][output_row];
49
13.2M
    output_row++;
50
122M
    for (col = 0; col < num_cols; col++) {
51
109M
      r = RANGE_LIMIT(inptr[RGB_RED]);
52
109M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
53
109M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
54
109M
      inptr += RGB_PIXELSIZE;
55
      /* If the inputs are 0.._MAXJSAMPLE, the outputs of these equations
56
       * must be too; we do not need an explicit range-limiting operation.
57
       * Hence the value being shifted is never negative, and we don't
58
       * need the general RIGHT_SHIFT macro.
59
       */
60
      /* Y */
61
109M
      outptr0[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
62
109M
                                 ctab[b + B_Y_OFF]) >> SCALEBITS);
63
      /* Cb */
64
109M
      outptr1[col] = (_JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] +
65
109M
                                 ctab[b + B_CB_OFF]) >> SCALEBITS);
66
      /* Cr */
67
109M
      outptr2[col] = (_JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] +
68
109M
                                 ctab[b + B_CR_OFF]) >> SCALEBITS);
69
109M
    }
70
13.2M
  }
71
#else
72
0
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
73
#endif
74
13.2M
}
Unexecuted instantiation: jccolor-8.c:extrgb_ycc_convert
Unexecuted instantiation: jccolor-8.c:extrgbx_ycc_convert
Unexecuted instantiation: jccolor-8.c:extbgr_ycc_convert
Unexecuted instantiation: jccolor-8.c:extbgrx_ycc_convert
Unexecuted instantiation: jccolor-8.c:extxbgr_ycc_convert
Unexecuted instantiation: jccolor-8.c:extxrgb_ycc_convert
Unexecuted instantiation: jccolor-8.c:rgb_ycc_convert
jccolor-12.c:extrgb_ycc_convert
Line
Count
Source
34
4.40M
{
35
4.40M
#if BITS_IN_JSAMPLE != 16
36
4.40M
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
4.40M
  register int r, g, b;
38
4.40M
  register JLONG *ctab = cconvert->rgb_ycc_tab;
39
4.40M
  register _JSAMPROW inptr;
40
4.40M
  register _JSAMPROW outptr0, outptr1, outptr2;
41
4.40M
  register JDIMENSION col;
42
4.40M
  JDIMENSION num_cols = cinfo->image_width;
43
44
8.80M
  while (--num_rows >= 0) {
45
4.40M
    inptr = *input_buf++;
46
4.40M
    outptr0 = output_buf[0][output_row];
47
4.40M
    outptr1 = output_buf[1][output_row];
48
4.40M
    outptr2 = output_buf[2][output_row];
49
4.40M
    output_row++;
50
40.8M
    for (col = 0; col < num_cols; col++) {
51
36.4M
      r = RANGE_LIMIT(inptr[RGB_RED]);
52
36.4M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
53
36.4M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
54
36.4M
      inptr += RGB_PIXELSIZE;
55
      /* If the inputs are 0.._MAXJSAMPLE, the outputs of these equations
56
       * must be too; we do not need an explicit range-limiting operation.
57
       * Hence the value being shifted is never negative, and we don't
58
       * need the general RIGHT_SHIFT macro.
59
       */
60
      /* Y */
61
36.4M
      outptr0[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
62
36.4M
                                 ctab[b + B_Y_OFF]) >> SCALEBITS);
63
      /* Cb */
64
36.4M
      outptr1[col] = (_JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] +
65
36.4M
                                 ctab[b + B_CB_OFF]) >> SCALEBITS);
66
      /* Cr */
67
36.4M
      outptr2[col] = (_JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] +
68
36.4M
                                 ctab[b + B_CR_OFF]) >> SCALEBITS);
69
36.4M
    }
70
4.40M
  }
71
#else
72
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
73
#endif
74
4.40M
}
Unexecuted instantiation: jccolor-12.c:extrgbx_ycc_convert
jccolor-12.c:extbgr_ycc_convert
Line
Count
Source
34
4.40M
{
35
4.40M
#if BITS_IN_JSAMPLE != 16
36
4.40M
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
4.40M
  register int r, g, b;
38
4.40M
  register JLONG *ctab = cconvert->rgb_ycc_tab;
39
4.40M
  register _JSAMPROW inptr;
40
4.40M
  register _JSAMPROW outptr0, outptr1, outptr2;
41
4.40M
  register JDIMENSION col;
42
4.40M
  JDIMENSION num_cols = cinfo->image_width;
43
44
8.80M
  while (--num_rows >= 0) {
45
4.40M
    inptr = *input_buf++;
46
4.40M
    outptr0 = output_buf[0][output_row];
47
4.40M
    outptr1 = output_buf[1][output_row];
48
4.40M
    outptr2 = output_buf[2][output_row];
49
4.40M
    output_row++;
50
40.8M
    for (col = 0; col < num_cols; col++) {
51
36.4M
      r = RANGE_LIMIT(inptr[RGB_RED]);
52
36.4M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
53
36.4M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
54
36.4M
      inptr += RGB_PIXELSIZE;
55
      /* If the inputs are 0.._MAXJSAMPLE, the outputs of these equations
56
       * must be too; we do not need an explicit range-limiting operation.
57
       * Hence the value being shifted is never negative, and we don't
58
       * need the general RIGHT_SHIFT macro.
59
       */
60
      /* Y */
61
36.4M
      outptr0[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
62
36.4M
                                 ctab[b + B_Y_OFF]) >> SCALEBITS);
63
      /* Cb */
64
36.4M
      outptr1[col] = (_JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] +
65
36.4M
                                 ctab[b + B_CB_OFF]) >> SCALEBITS);
66
      /* Cr */
67
36.4M
      outptr2[col] = (_JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] +
68
36.4M
                                 ctab[b + B_CR_OFF]) >> SCALEBITS);
69
36.4M
    }
70
4.40M
  }
71
#else
72
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
73
#endif
74
4.40M
}
jccolor-12.c:extbgrx_ycc_convert
Line
Count
Source
34
4.39M
{
35
4.39M
#if BITS_IN_JSAMPLE != 16
36
4.39M
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
37
4.39M
  register int r, g, b;
38
4.39M
  register JLONG *ctab = cconvert->rgb_ycc_tab;
39
4.39M
  register _JSAMPROW inptr;
40
4.39M
  register _JSAMPROW outptr0, outptr1, outptr2;
41
4.39M
  register JDIMENSION col;
42
4.39M
  JDIMENSION num_cols = cinfo->image_width;
43
44
8.79M
  while (--num_rows >= 0) {
45
4.39M
    inptr = *input_buf++;
46
4.39M
    outptr0 = output_buf[0][output_row];
47
4.39M
    outptr1 = output_buf[1][output_row];
48
4.39M
    outptr2 = output_buf[2][output_row];
49
4.39M
    output_row++;
50
40.8M
    for (col = 0; col < num_cols; col++) {
51
36.4M
      r = RANGE_LIMIT(inptr[RGB_RED]);
52
36.4M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
53
36.4M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
54
36.4M
      inptr += RGB_PIXELSIZE;
55
      /* If the inputs are 0.._MAXJSAMPLE, the outputs of these equations
56
       * must be too; we do not need an explicit range-limiting operation.
57
       * Hence the value being shifted is never negative, and we don't
58
       * need the general RIGHT_SHIFT macro.
59
       */
60
      /* Y */
61
36.4M
      outptr0[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
62
36.4M
                                 ctab[b + B_Y_OFF]) >> SCALEBITS);
63
      /* Cb */
64
36.4M
      outptr1[col] = (_JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] +
65
36.4M
                                 ctab[b + B_CB_OFF]) >> SCALEBITS);
66
      /* Cr */
67
36.4M
      outptr2[col] = (_JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] +
68
36.4M
                                 ctab[b + B_CR_OFF]) >> SCALEBITS);
69
36.4M
    }
70
4.39M
  }
71
#else
72
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
73
#endif
74
4.39M
}
Unexecuted instantiation: jccolor-12.c:extxbgr_ycc_convert
Unexecuted instantiation: jccolor-12.c:extxrgb_ycc_convert
Unexecuted instantiation: jccolor-16.c:extrgb_ycc_convert
Unexecuted instantiation: jccolor-16.c:extrgbx_ycc_convert
Unexecuted instantiation: jccolor-16.c:extbgr_ycc_convert
Unexecuted instantiation: jccolor-16.c:extbgrx_ycc_convert
Unexecuted instantiation: jccolor-16.c:extxbgr_ycc_convert
Unexecuted instantiation: jccolor-16.c:extxrgb_ycc_convert
Unexecuted instantiation: jccolor-16.c:rgb_ycc_convert
75
76
77
/**************** Cases other than RGB -> YCbCr **************/
78
79
80
/*
81
 * Convert some rows of samples to the JPEG colorspace.
82
 * This version handles RGB->grayscale conversion, which is the same
83
 * as the RGB->Y portion of RGB->YCbCr.
84
 * We assume rgb_ycc_start has been called (we only use the Y tables).
85
 */
86
87
INLINE
88
LOCAL(void)
89
rgb_gray_convert(j_compress_ptr cinfo, _JSAMPARRAY input_buf,
90
                 _JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
91
4.39M
{
92
#if BITS_IN_JSAMPLE != 16
93
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
94
  register int r, g, b;
95
  register JLONG *ctab = cconvert->rgb_ycc_tab;
96
  register _JSAMPROW inptr;
97
  register _JSAMPROW outptr;
98
  register JDIMENSION col;
99
  JDIMENSION num_cols = cinfo->image_width;
100
101
8.79M
  while (--num_rows >= 0) {
102
4.39M
    inptr = *input_buf++;
103
4.39M
    outptr = output_buf[0][output_row];
104
4.39M
    output_row++;
105
40.8M
    for (col = 0; col < num_cols; col++) {
106
36.4M
      r = RANGE_LIMIT(inptr[RGB_RED]);
107
36.4M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
108
36.4M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
109
36.4M
      inptr += RGB_PIXELSIZE;
110
      /* Y */
111
36.4M
      outptr[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
112
36.4M
                                ctab[b + B_Y_OFF]) >> SCALEBITS);
113
36.4M
    }
114
4.39M
  }
115
#else
116
0
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
117
#endif
118
4.39M
}
Unexecuted instantiation: jccolor-8.c:extrgb_gray_convert
Unexecuted instantiation: jccolor-8.c:extrgbx_gray_convert
Unexecuted instantiation: jccolor-8.c:extbgr_gray_convert
Unexecuted instantiation: jccolor-8.c:extbgrx_gray_convert
Unexecuted instantiation: jccolor-8.c:extxbgr_gray_convert
Unexecuted instantiation: jccolor-8.c:extxrgb_gray_convert
Unexecuted instantiation: jccolor-8.c:rgb_gray_convert
Unexecuted instantiation: jccolor-12.c:extrgb_gray_convert
Unexecuted instantiation: jccolor-12.c:extrgbx_gray_convert
Unexecuted instantiation: jccolor-12.c:extbgr_gray_convert
Unexecuted instantiation: jccolor-12.c:extbgrx_gray_convert
Unexecuted instantiation: jccolor-12.c:extxbgr_gray_convert
jccolor-12.c:extxrgb_gray_convert
Line
Count
Source
91
4.39M
{
92
4.39M
#if BITS_IN_JSAMPLE != 16
93
4.39M
  my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
94
4.39M
  register int r, g, b;
95
4.39M
  register JLONG *ctab = cconvert->rgb_ycc_tab;
96
4.39M
  register _JSAMPROW inptr;
97
4.39M
  register _JSAMPROW outptr;
98
4.39M
  register JDIMENSION col;
99
4.39M
  JDIMENSION num_cols = cinfo->image_width;
100
101
8.79M
  while (--num_rows >= 0) {
102
4.39M
    inptr = *input_buf++;
103
4.39M
    outptr = output_buf[0][output_row];
104
4.39M
    output_row++;
105
40.8M
    for (col = 0; col < num_cols; col++) {
106
36.4M
      r = RANGE_LIMIT(inptr[RGB_RED]);
107
36.4M
      g = RANGE_LIMIT(inptr[RGB_GREEN]);
108
36.4M
      b = RANGE_LIMIT(inptr[RGB_BLUE]);
109
36.4M
      inptr += RGB_PIXELSIZE;
110
      /* Y */
111
36.4M
      outptr[col] = (_JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
112
36.4M
                                ctab[b + B_Y_OFF]) >> SCALEBITS);
113
36.4M
    }
114
4.39M
  }
115
#else
116
  ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
117
#endif
118
4.39M
}
Unexecuted instantiation: jccolor-16.c:extrgb_gray_convert
Unexecuted instantiation: jccolor-16.c:extrgbx_gray_convert
Unexecuted instantiation: jccolor-16.c:extbgr_gray_convert
Unexecuted instantiation: jccolor-16.c:extbgrx_gray_convert
Unexecuted instantiation: jccolor-16.c:extxbgr_gray_convert
Unexecuted instantiation: jccolor-16.c:extxrgb_gray_convert
Unexecuted instantiation: jccolor-16.c:rgb_gray_convert
119
120
121
/*
122
 * Convert some rows of samples to the JPEG colorspace.
123
 * This version handles extended RGB->plain RGB conversion
124
 */
125
126
INLINE
127
LOCAL(void)
128
rgb_rgb_convert(j_compress_ptr cinfo, _JSAMPARRAY input_buf,
129
                _JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
130
27.1M
{
131
27.1M
  register _JSAMPROW inptr;
132
27.1M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
27.1M
  register JDIMENSION col;
134
27.1M
  JDIMENSION num_cols = cinfo->image_width;
135
136
56.5M
  while (--num_rows >= 0) {
137
29.3M
    inptr = *input_buf++;
138
29.3M
    outptr0 = output_buf[0][output_row];
139
29.3M
    outptr1 = output_buf[1][output_row];
140
29.3M
    outptr2 = output_buf[2][output_row];
141
29.3M
    output_row++;
142
236M
    for (col = 0; col < num_cols; col++) {
143
207M
      outptr0[col] = inptr[RGB_RED];
144
207M
      outptr1[col] = inptr[RGB_GREEN];
145
207M
      outptr2[col] = inptr[RGB_BLUE];
146
207M
      inptr += RGB_PIXELSIZE;
147
207M
    }
148
29.3M
  }
149
27.1M
}
Unexecuted instantiation: jccolor-8.c:extrgb_rgb_convert
jccolor-8.c:extrgbx_rgb_convert
Line
Count
Source
130
2.55M
{
131
2.55M
  register _JSAMPROW inptr;
132
2.55M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
2.55M
  register JDIMENSION col;
134
2.55M
  JDIMENSION num_cols = cinfo->image_width;
135
136
5.11M
  while (--num_rows >= 0) {
137
2.55M
    inptr = *input_buf++;
138
2.55M
    outptr0 = output_buf[0][output_row];
139
2.55M
    outptr1 = output_buf[1][output_row];
140
2.55M
    outptr2 = output_buf[2][output_row];
141
2.55M
    output_row++;
142
19.3M
    for (col = 0; col < num_cols; col++) {
143
16.7M
      outptr0[col] = inptr[RGB_RED];
144
16.7M
      outptr1[col] = inptr[RGB_GREEN];
145
16.7M
      outptr2[col] = inptr[RGB_BLUE];
146
16.7M
      inptr += RGB_PIXELSIZE;
147
16.7M
    }
148
2.55M
  }
149
2.55M
}
jccolor-8.c:extbgr_rgb_convert
Line
Count
Source
130
2.55M
{
131
2.55M
  register _JSAMPROW inptr;
132
2.55M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
2.55M
  register JDIMENSION col;
134
2.55M
  JDIMENSION num_cols = cinfo->image_width;
135
136
5.11M
  while (--num_rows >= 0) {
137
2.55M
    inptr = *input_buf++;
138
2.55M
    outptr0 = output_buf[0][output_row];
139
2.55M
    outptr1 = output_buf[1][output_row];
140
2.55M
    outptr2 = output_buf[2][output_row];
141
2.55M
    output_row++;
142
19.3M
    for (col = 0; col < num_cols; col++) {
143
16.8M
      outptr0[col] = inptr[RGB_RED];
144
16.8M
      outptr1[col] = inptr[RGB_GREEN];
145
16.8M
      outptr2[col] = inptr[RGB_BLUE];
146
16.8M
      inptr += RGB_PIXELSIZE;
147
16.8M
    }
148
2.55M
  }
149
2.55M
}
jccolor-8.c:extbgrx_rgb_convert
Line
Count
Source
130
2.55M
{
131
2.55M
  register _JSAMPROW inptr;
132
2.55M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
2.55M
  register JDIMENSION col;
134
2.55M
  JDIMENSION num_cols = cinfo->image_width;
135
136
5.11M
  while (--num_rows >= 0) {
137
2.55M
    inptr = *input_buf++;
138
2.55M
    outptr0 = output_buf[0][output_row];
139
2.55M
    outptr1 = output_buf[1][output_row];
140
2.55M
    outptr2 = output_buf[2][output_row];
141
2.55M
    output_row++;
142
19.3M
    for (col = 0; col < num_cols; col++) {
143
16.7M
      outptr0[col] = inptr[RGB_RED];
144
16.7M
      outptr1[col] = inptr[RGB_GREEN];
145
16.7M
      outptr2[col] = inptr[RGB_BLUE];
146
16.7M
      inptr += RGB_PIXELSIZE;
147
16.7M
    }
148
2.55M
  }
149
2.55M
}
Unexecuted instantiation: jccolor-8.c:extxbgr_rgb_convert
jccolor-8.c:extxrgb_rgb_convert
Line
Count
Source
130
2.55M
{
131
2.55M
  register _JSAMPROW inptr;
132
2.55M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
2.55M
  register JDIMENSION col;
134
2.55M
  JDIMENSION num_cols = cinfo->image_width;
135
136
5.11M
  while (--num_rows >= 0) {
137
2.55M
    inptr = *input_buf++;
138
2.55M
    outptr0 = output_buf[0][output_row];
139
2.55M
    outptr1 = output_buf[1][output_row];
140
2.55M
    outptr2 = output_buf[2][output_row];
141
2.55M
    output_row++;
142
19.3M
    for (col = 0; col < num_cols; col++) {
143
16.7M
      outptr0[col] = inptr[RGB_RED];
144
16.7M
      outptr1[col] = inptr[RGB_GREEN];
145
16.7M
      outptr2[col] = inptr[RGB_BLUE];
146
16.7M
      inptr += RGB_PIXELSIZE;
147
16.7M
    }
148
2.55M
  }
149
2.55M
}
Unexecuted instantiation: jccolor-12.c:extrgb_rgb_convert
jccolor-12.c:extrgbx_rgb_convert
Line
Count
Source
130
4.03M
{
131
4.03M
  register _JSAMPROW inptr;
132
4.03M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
4.03M
  register JDIMENSION col;
134
4.03M
  JDIMENSION num_cols = cinfo->image_width;
135
136
10.2M
  while (--num_rows >= 0) {
137
6.23M
    inptr = *input_buf++;
138
6.23M
    outptr0 = output_buf[0][output_row];
139
6.23M
    outptr1 = output_buf[1][output_row];
140
6.23M
    outptr2 = output_buf[2][output_row];
141
6.23M
    output_row++;
142
54.6M
    for (col = 0; col < num_cols; col++) {
143
48.3M
      outptr0[col] = inptr[RGB_RED];
144
48.3M
      outptr1[col] = inptr[RGB_GREEN];
145
48.3M
      outptr2[col] = inptr[RGB_BLUE];
146
48.3M
      inptr += RGB_PIXELSIZE;
147
48.3M
    }
148
6.23M
  }
149
4.03M
}
jccolor-12.c:extbgr_rgb_convert
Line
Count
Source
130
1.83M
{
131
1.83M
  register _JSAMPROW inptr;
132
1.83M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.83M
  register JDIMENSION col;
134
1.83M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.67M
  while (--num_rows >= 0) {
137
1.83M
    inptr = *input_buf++;
138
1.83M
    outptr0 = output_buf[0][output_row];
139
1.83M
    outptr1 = output_buf[1][output_row];
140
1.83M
    outptr2 = output_buf[2][output_row];
141
1.83M
    output_row++;
142
13.8M
    for (col = 0; col < num_cols; col++) {
143
12.0M
      outptr0[col] = inptr[RGB_RED];
144
12.0M
      outptr1[col] = inptr[RGB_GREEN];
145
12.0M
      outptr2[col] = inptr[RGB_BLUE];
146
12.0M
      inptr += RGB_PIXELSIZE;
147
12.0M
    }
148
1.83M
  }
149
1.83M
}
jccolor-12.c:extbgrx_rgb_convert
Line
Count
Source
130
1.83M
{
131
1.83M
  register _JSAMPROW inptr;
132
1.83M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.83M
  register JDIMENSION col;
134
1.83M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.67M
  while (--num_rows >= 0) {
137
1.83M
    inptr = *input_buf++;
138
1.83M
    outptr0 = output_buf[0][output_row];
139
1.83M
    outptr1 = output_buf[1][output_row];
140
1.83M
    outptr2 = output_buf[2][output_row];
141
1.83M
    output_row++;
142
13.8M
    for (col = 0; col < num_cols; col++) {
143
11.9M
      outptr0[col] = inptr[RGB_RED];
144
11.9M
      outptr1[col] = inptr[RGB_GREEN];
145
11.9M
      outptr2[col] = inptr[RGB_BLUE];
146
11.9M
      inptr += RGB_PIXELSIZE;
147
11.9M
    }
148
1.83M
  }
149
1.83M
}
Unexecuted instantiation: jccolor-12.c:extxbgr_rgb_convert
jccolor-12.c:extxrgb_rgb_convert
Line
Count
Source
130
1.83M
{
131
1.83M
  register _JSAMPROW inptr;
132
1.83M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.83M
  register JDIMENSION col;
134
1.83M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.67M
  while (--num_rows >= 0) {
137
1.83M
    inptr = *input_buf++;
138
1.83M
    outptr0 = output_buf[0][output_row];
139
1.83M
    outptr1 = output_buf[1][output_row];
140
1.83M
    outptr2 = output_buf[2][output_row];
141
1.83M
    output_row++;
142
13.8M
    for (col = 0; col < num_cols; col++) {
143
11.9M
      outptr0[col] = inptr[RGB_RED];
144
11.9M
      outptr1[col] = inptr[RGB_GREEN];
145
11.9M
      outptr2[col] = inptr[RGB_BLUE];
146
11.9M
      inptr += RGB_PIXELSIZE;
147
11.9M
    }
148
1.83M
  }
149
1.83M
}
Unexecuted instantiation: jccolor-16.c:extrgb_rgb_convert
jccolor-16.c:extrgbx_rgb_convert
Line
Count
Source
130
1.84M
{
131
1.84M
  register _JSAMPROW inptr;
132
1.84M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.84M
  register JDIMENSION col;
134
1.84M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.69M
  while (--num_rows >= 0) {
137
1.84M
    inptr = *input_buf++;
138
1.84M
    outptr0 = output_buf[0][output_row];
139
1.84M
    outptr1 = output_buf[1][output_row];
140
1.84M
    outptr2 = output_buf[2][output_row];
141
1.84M
    output_row++;
142
15.7M
    for (col = 0; col < num_cols; col++) {
143
13.9M
      outptr0[col] = inptr[RGB_RED];
144
13.9M
      outptr1[col] = inptr[RGB_GREEN];
145
13.9M
      outptr2[col] = inptr[RGB_BLUE];
146
13.9M
      inptr += RGB_PIXELSIZE;
147
13.9M
    }
148
1.84M
  }
149
1.84M
}
jccolor-16.c:extbgr_rgb_convert
Line
Count
Source
130
1.84M
{
131
1.84M
  register _JSAMPROW inptr;
132
1.84M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.84M
  register JDIMENSION col;
134
1.84M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.69M
  while (--num_rows >= 0) {
137
1.84M
    inptr = *input_buf++;
138
1.84M
    outptr0 = output_buf[0][output_row];
139
1.84M
    outptr1 = output_buf[1][output_row];
140
1.84M
    outptr2 = output_buf[2][output_row];
141
1.84M
    output_row++;
142
15.8M
    for (col = 0; col < num_cols; col++) {
143
13.9M
      outptr0[col] = inptr[RGB_RED];
144
13.9M
      outptr1[col] = inptr[RGB_GREEN];
145
13.9M
      outptr2[col] = inptr[RGB_BLUE];
146
13.9M
      inptr += RGB_PIXELSIZE;
147
13.9M
    }
148
1.84M
  }
149
1.84M
}
jccolor-16.c:extbgrx_rgb_convert
Line
Count
Source
130
1.84M
{
131
1.84M
  register _JSAMPROW inptr;
132
1.84M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.84M
  register JDIMENSION col;
134
1.84M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.69M
  while (--num_rows >= 0) {
137
1.84M
    inptr = *input_buf++;
138
1.84M
    outptr0 = output_buf[0][output_row];
139
1.84M
    outptr1 = output_buf[1][output_row];
140
1.84M
    outptr2 = output_buf[2][output_row];
141
1.84M
    output_row++;
142
15.7M
    for (col = 0; col < num_cols; col++) {
143
13.9M
      outptr0[col] = inptr[RGB_RED];
144
13.9M
      outptr1[col] = inptr[RGB_GREEN];
145
13.9M
      outptr2[col] = inptr[RGB_BLUE];
146
13.9M
      inptr += RGB_PIXELSIZE;
147
13.9M
    }
148
1.84M
  }
149
1.84M
}
Unexecuted instantiation: jccolor-16.c:extxbgr_rgb_convert
jccolor-16.c:extxrgb_rgb_convert
Line
Count
Source
130
1.84M
{
131
1.84M
  register _JSAMPROW inptr;
132
1.84M
  register _JSAMPROW outptr0, outptr1, outptr2;
133
1.84M
  register JDIMENSION col;
134
1.84M
  JDIMENSION num_cols = cinfo->image_width;
135
136
3.69M
  while (--num_rows >= 0) {
137
1.84M
    inptr = *input_buf++;
138
1.84M
    outptr0 = output_buf[0][output_row];
139
1.84M
    outptr1 = output_buf[1][output_row];
140
1.84M
    outptr2 = output_buf[2][output_row];
141
1.84M
    output_row++;
142
15.7M
    for (col = 0; col < num_cols; col++) {
143
13.9M
      outptr0[col] = inptr[RGB_RED];
144
13.9M
      outptr1[col] = inptr[RGB_GREEN];
145
13.9M
      outptr2[col] = inptr[RGB_BLUE];
146
13.9M
      inptr += RGB_PIXELSIZE;
147
13.9M
    }
148
1.84M
  }
149
1.84M
}