Gitweb links:
...log
http://git.netsurf-browser.org/libnsbmp.git/shortlog/28a6d42203b08d1f31052e998a7c85b5c1d7ea49
...commit
http://git.netsurf-browser.org/libnsbmp.git/commit/28a6d42203b08d1f31052e998a7c85b5c1d7ea49
...tree
http://git.netsurf-browser.org/libnsbmp.git/tree/28a6d42203b08d1f31052e998a7c85b5c1d7ea49
The branch, master has been updated
via 28a6d42203b08d1f31052e998a7c85b5c1d7ea49 (commit)
from 6dfb16681f4797fd4bc9c73e6c40cafcd367984a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsbmp.git/commit/?id=28a6d42203b08d1f31052e998a7c85b5c1d7ea49
commit 28a6d42203b08d1f31052e998a7c85b5c1d7ea49
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Decode: Don't need to handle row padding in 32bpp decoder.
diff --git a/src/libnsbmp.c b/src/libnsbmp.c
index 6483974..381fcf4 100644
--- a/src/libnsbmp.c
+++ b/src/libnsbmp.c
@@ -512,7 +512,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
uint32_t *scanline;
uint32_t x, y;
uint32_t swidth;
- intptr_t addr;
uint8_t i;
uint32_t word;
@@ -525,7 +524,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
return BMP_INSUFFICIENT_MEMORY;
bottom = top + (uint64_t)swidth * (bmp->height - 1);
end = data + bytes;
- addr = ((intptr_t)data) & 3;
bmp->decoded = true;
/* Determine transparent index */
@@ -574,8 +572,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
scanline[x] = read_uint32((uint8_t
*)&scanline[x],0);
}
}
- while (addr != (((intptr_t)data) & 3))
- data++;
}
*start = data;
return BMP_OK;
-----------------------------------------------------------------------
Summary of changes:
src/libnsbmp.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/libnsbmp.c b/src/libnsbmp.c
index 6483974..381fcf4 100644
--- a/src/libnsbmp.c
+++ b/src/libnsbmp.c
@@ -512,7 +512,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
uint32_t *scanline;
uint32_t x, y;
uint32_t swidth;
- intptr_t addr;
uint8_t i;
uint32_t word;
@@ -525,7 +524,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
return BMP_INSUFFICIENT_MEMORY;
bottom = top + (uint64_t)swidth * (bmp->height - 1);
end = data + bytes;
- addr = ((intptr_t)data) & 3;
bmp->decoded = true;
/* Determine transparent index */
@@ -574,8 +572,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t
**start, int bytes)
scanline[x] = read_uint32((uint8_t
*)&scanline[x],0);
}
}
- while (addr != (((intptr_t)data) & 3))
- data++;
}
*start = data;
return BMP_OK;
--
NetSurf BMP Decoder
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org