Mercurial > libavcodec.hg
comparison png.c @ 5097:e9a0c447dc73 libavcodec
spelling
author | diego |
---|---|
date | Mon, 04 Jun 2007 23:07:27 +0000 |
parents | bff60ecc02f9 |
children | 26f4095e35d2 |
comparison
equal
deleted
inserted
replaced
5096:1210710a6c6a | 5097:e9a0c447dc73 |
---|---|
178 | 178 |
179 mask = png_pass_mask[pass]; | 179 mask = png_pass_mask[pass]; |
180 dsp_mask = png_pass_dsp_mask[pass]; | 180 dsp_mask = png_pass_dsp_mask[pass]; |
181 switch(bits_per_pixel) { | 181 switch(bits_per_pixel) { |
182 case 1: | 182 case 1: |
183 /* we must intialize the line to zero before writing to it */ | 183 /* we must initialize the line to zero before writing to it */ |
184 if (pass == 0) | 184 if (pass == 0) |
185 memset(dst, 0, (width + 7) >> 3); | 185 memset(dst, 0, (width + 7) >> 3); |
186 src_x = 0; | 186 src_x = 0; |
187 for(x = 0; x < width; x++) { | 187 for(x = 0; x < width; x++) { |
188 j = (x & 7); | 188 j = (x & 7); |