mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Make wuffs_base__{load,store}_uNNxe public
This commit is contained in:
1 parent
8cd45054fa
commit
1ad5cfac4d
11 files changed
+926
-856
No files matched your search
@@ -96,14 +96,6 @@ union {
|
||||
wuffs_wbmp__decoder wbmp;
|
||||
} g_potential_decoders;
|
||||
|
||||
static inline void //
|
||||
store_u32le(uint8_t* p, uint32_t x) {
|
||||
p[0] = (uint8_t)(x >> 0);
|
||||
p[1] = (uint8_t)(x >> 8);
|
||||
p[2] = (uint8_t)(x >> 16);
|
||||
p[3] = (uint8_t)(x >> 24);
|
||||
}
|
||||
|
||||
bool //
|
||||
read_more_src() {
|
||||
if (g_src.meta.closed) {
|
||||
@@ -246,7 +238,7 @@ load_image_config() {
|
||||
wuffs_base__color_u32_argb_premul color =
|
||||
g_background_colors[g_background_color_index];
|
||||
for (size_t i = 0; i < num_pixels; i++) {
|
||||
store_u32le(ptr, color);
|
||||
wuffs_base__store_u32le__no_bounds_check(ptr, color);
|
||||
ptr += 4;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user