Lines Matching refs:channels
204 int channels;
318 /* calculate the number of channels and store alpha-presence */
320 channels = 1;
322 channels = 2;
324 channels = 3;
326 channels = 4;
328 channels = 0; /* should not happen */
330 alpha_present = (channels - 1) % 2;
332 /* row_bytes is the width x number of channels x (bit-depth / 8) */
333 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
345 for (i = 0; i < (channels - alpha_present); i++)