mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
wuffs gen -version=0.2.0-alpha.14
This commit is contained in:
1 parent
ece4eea1af
commit
1e4faddbeb
1 file changed
+7
-14
+7
-14
@@ -65,14 +65,14 @@ extern "C" {
|
||||
// work-in-progress version, not a release version, and has no backwards or
|
||||
// forwards compatibility guarantees.
|
||||
//
|
||||
// WUFFS_VERSION was overridden by "wuffs gen -version" on 2018-08-19 UTC,
|
||||
// based on revision d47bf4e4e549807784f2dad381c6514e4f45ff17.
|
||||
// WUFFS_VERSION was overridden by "wuffs gen -version" on 2018-08-25 UTC,
|
||||
// based on revision ece4eea1af571bcdf94c49e19e137e09bf9e7c0c.
|
||||
#define WUFFS_VERSION ((uint64_t)0x0000000000020000)
|
||||
#define WUFFS_VERSION_MAJOR ((uint64_t)0x00000000)
|
||||
#define WUFFS_VERSION_MINOR ((uint64_t)0x0002)
|
||||
#define WUFFS_VERSION_PATCH ((uint64_t)0x0000)
|
||||
#define WUFFS_VERSION_EXTENSION "alpha.13"
|
||||
#define WUFFS_VERSION_STRING "0.2.0-alpha.13"
|
||||
#define WUFFS_VERSION_EXTENSION "alpha.14"
|
||||
#define WUFFS_VERSION_STRING "0.2.0-alpha.14"
|
||||
|
||||
// Define WUFFS_CONFIG__STATIC_FUNCTIONS to make all of Wuffs' functions have
|
||||
// static storage. The motivation is discussed in the "ALLOW STATIC
|
||||
@@ -2385,8 +2385,6 @@ typedef struct {
|
||||
bool f_end_of_data;
|
||||
bool f_previous_lzw_decode_ended_abruptly;
|
||||
bool f_previous_use_global_palette;
|
||||
bool f_has_full_global_palette;
|
||||
bool f_has_full_palette;
|
||||
bool f_use_local_palette;
|
||||
uint8_t f_which_palette;
|
||||
uint8_t f_interlace;
|
||||
@@ -6355,8 +6353,7 @@ wuffs_gif__decoder__decode_image_config(wuffs_gif__decoder* self,
|
||||
(self->private_impl.f_frame_rect_x0 == 0) &&
|
||||
(self->private_impl.f_frame_rect_y0 == 0) &&
|
||||
(self->private_impl.f_frame_rect_x1 == self->private_impl.f_width) &&
|
||||
(self->private_impl.f_frame_rect_y1 == self->private_impl.f_height) &&
|
||||
self->private_impl.f_has_full_palette);
|
||||
(self->private_impl.f_frame_rect_y1 == self->private_impl.f_height));
|
||||
if (a_dst != NULL) {
|
||||
wuffs_base__image_config__initialize(
|
||||
a_dst, 570984584, 0, self->private_impl.f_width,
|
||||
@@ -7022,12 +7019,11 @@ wuffs_gif__decoder__decode_lsd(wuffs_gif__decoder* self,
|
||||
((uint8_t)(((v_argb >> 24) & 255)));
|
||||
v_i += 1;
|
||||
}
|
||||
self->private_impl.f_has_full_global_palette = (v_i == 256);
|
||||
while (v_i < 256) {
|
||||
self->private_impl.f_palettes[0][((4 * v_i) + 0)] = 0;
|
||||
self->private_impl.f_palettes[0][((4 * v_i) + 1)] = 0;
|
||||
self->private_impl.f_palettes[0][((4 * v_i) + 2)] = 0;
|
||||
self->private_impl.f_palettes[0][((4 * v_i) + 3)] = 0;
|
||||
self->private_impl.f_palettes[0][((4 * v_i) + 3)] = 255;
|
||||
v_i += 1;
|
||||
}
|
||||
}
|
||||
@@ -7776,8 +7772,6 @@ wuffs_gif__decoder__decode_id_part0(wuffs_gif__decoder* self,
|
||||
} else {
|
||||
self->private_impl.f_interlace = 0;
|
||||
}
|
||||
self->private_impl.f_has_full_palette =
|
||||
self->private_impl.f_has_full_global_palette;
|
||||
self->private_impl.f_use_local_palette = ((v_flags & 128) != 0);
|
||||
if (self->private_impl.f_use_local_palette) {
|
||||
v_num_palette_entries = (((uint32_t)(1)) << (1 + (v_flags & 7)));
|
||||
@@ -7823,12 +7817,11 @@ wuffs_gif__decoder__decode_id_part0(wuffs_gif__decoder* self,
|
||||
((uint8_t)(((v_argb >> 24) & 255)));
|
||||
v_i += 1;
|
||||
}
|
||||
self->private_impl.f_has_full_palette = (v_i == 256);
|
||||
while (v_i < 256) {
|
||||
self->private_impl.f_palettes[1][((4 * v_i) + 0)] = 0;
|
||||
self->private_impl.f_palettes[1][((4 * v_i) + 1)] = 0;
|
||||
self->private_impl.f_palettes[1][((4 * v_i) + 2)] = 0;
|
||||
self->private_impl.f_palettes[1][((4 * v_i) + 3)] = 0;
|
||||
self->private_impl.f_palettes[1][((4 * v_i) + 3)] = 255;
|
||||
v_i += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user