Lines Matching refs:nplanes
79 unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x,
113 nplanes = bytestream2_get_byteu(&gb);
115 bytes_per_scanline = nplanes * bytes_per_line;
117 if (bytes_per_scanline < (w * bits_per_pixel * nplanes + 7) / 8 ||
123 switch ((nplanes << 8) + bits_per_pixel) {
158 if (nplanes == 3 && bits_per_pixel == 8) {
172 } else if (nplanes == 1 && bits_per_pixel == 8) {
199 } else if (nplanes == 1) { /* all packed formats, max. 16 colors */
223 for (i = nplanes - 1; i >= 0; i--) {
234 if (nplanes == 1 && bits_per_pixel == 8) {
237 } else if (bits_per_pixel * nplanes == 1) {