Lines Matching refs:nplanes
73 unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x,
105 nplanes = bytestream2_get_byteu(&gb);
107 bytes_per_scanline = nplanes * bytes_per_line;
109 if (bytes_per_scanline < (w * bits_per_pixel * nplanes + 7) / 8 ||
115 switch ((nplanes << 8) + bits_per_pixel) {
150 if (nplanes == 3 && bits_per_pixel == 8) {
162 } else if (nplanes == 1 && bits_per_pixel == 8) {
187 } else if (nplanes == 1) { /* all packed formats, max. 16 colors */
207 for (i = nplanes - 1; i >= 0; i--) {
218 if (nplanes == 1 && bits_per_pixel == 8) {
221 } else if (bits_per_pixel * nplanes == 1) {