Lines Matching refs:byte_depth
641 size_t byte_depth = s->bit_depth > 8 ? 2 : 1;
721 s->bpp += byte_depth;
797 s->bpp -= byte_depth;
802 s->bpp += byte_depth;
1394 size_t byte_depth = s->bit_depth > 8 ? 2 : 1;
1395 size_t raw_bpp = s->bpp - byte_depth;
1403 if (s->bpp == 2 && byte_depth == 1) {
1411 } else if (s->bpp == 4 && byte_depth == 1) {
1428 memset(&pixel[raw_bpp], 0, byte_depth);
1430 memset(&pixel[raw_bpp], 0xff, byte_depth);