Lines Matching refs:bpp
667 const size_t bpp = new_color_type == PNG_COLOR_TYPE_GRAY ? 1 : 2; in WritePng() local
669 std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng()
685 out_row[x * bpp] = in_row[x * 4]; in WritePng()
690 out_row[x * bpp] = in WritePng()
694 if (bpp == 2) { in WritePng()
696 out_row[x * bpp + 1] = aa; in WritePng()
702 const size_t bpp = new_color_type == PNG_COLOR_TYPE_RGB ? 3 : 4; in WritePng() local
706 auto out_row = std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng()
719 out_row[x * bpp] = rr; in WritePng()
720 out_row[x * bpp + 1] = gg; in WritePng()
721 out_row[x * bpp + 2] = bb; in WritePng()
722 if (bpp == 4) { in WritePng()
723 out_row[x * bpp + 3] = aa; in WritePng()