~sircmpwn/hare-png

9d19b430b707b0b73e7d900744d221dc2c67e852 — Lassi Pulkkinen 6 months ago ee9a422
decoder_bufsiz: Allow PLTE with bit depth 4

Not sure why these lines were there in the first place.

Signed-off-by: Lassi Pulkkinen <lassi@pulk.fi>
1 files changed, 0 insertions(+), 2 deletions(-)

M image/png/decoder.ha
M image/png/decoder.ha => image/png/decoder.ha +0 -2
@@ 46,7 46,6 @@ export fn decoder_bufsiz(ihdr: *ihdr) size = {
	case colortype::RGB =>
		yield 3;
	case colortype::PLTE =>
		sampledepth = 8;
		yield 1;
	case colortype::GRAYALPHA =>
		yield 2;


@@ 76,7 75,6 @@ fn bytesperpixel(ihdr: *ihdr) size = {
	case colortype::RGB =>
		yield 3;
	case colortype::PLTE =>
		sampledepth = 8;
		yield 1;
	case colortype::GRAYALPHA =>
		yield 2;