mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
release: spin in v0.3.4
This copies wuffs-v0.3.c from the v0.3 branch to the main branch. The main branch is currently working on an unstable v0.4. Fixes #146
This commit is contained in:
1 parent
da0d51d802
commit
a3bfb57003
2 files changed
+25
-19
No files matched your search
+5
-1
@@ -33,7 +33,6 @@ The LICENSE has changed from a single license (Apache 2) to a dual license
|
|||||||
- Fixed `PIXEL_FORMAT__YA_{NON,}PREMUL` constant values.
|
- Fixed `PIXEL_FORMAT__YA_{NON,}PREMUL` constant values.
|
||||||
- Generated constants now default to unsigned.
|
- Generated constants now default to unsigned.
|
||||||
- Halved the sizeof `wuffs_foo__bar::unique_ptr`.
|
- Halved the sizeof `wuffs_foo__bar::unique_ptr`.
|
||||||
- Have `std/png` ignore tRNS chunks for color types 4 (YA) and 6 (RGBA).
|
|
||||||
- Let `std/png` decode PNG color type 4 to `PIXEL_FORMAT__YA_NONPREMUL` (two
|
- Let `std/png` decode PNG color type 4 to `PIXEL_FORMAT__YA_NONPREMUL` (two
|
||||||
channels) instead of `PIXEL_FORMAT__BGRA_NONPREMUL` (four channels).
|
channels) instead of `PIXEL_FORMAT__BGRA_NONPREMUL` (four channels).
|
||||||
- Removed the `std/gif -> std/lzw` dependency.
|
- Removed the `std/gif -> std/lzw` dependency.
|
||||||
@@ -55,6 +54,11 @@ code (instead of writing C/C++ code that _uses_ Wuffs' standard library).
|
|||||||
a tab).
|
a tab).
|
||||||
|
|
||||||
|
|
||||||
|
## 2024-04-19 version 0.3.4
|
||||||
|
|
||||||
|
- Have `std/png` ignore tRNS chunks for color types 4 (YA) and 6 (RGBA).
|
||||||
|
|
||||||
|
|
||||||
## 2023-04-08 version 0.3.3
|
## 2023-04-08 version 0.3.3
|
||||||
|
|
||||||
The `wuffs_base__parse_number_f64` function has been further optimized.
|
The `wuffs_base__parse_number_f64` function has been further optimized.
|
||||||
|
|||||||
+20
-18
@@ -85,15 +85,15 @@ extern "C" {
|
|||||||
// each major.minor branch, the commit count should increase monotonically.
|
// each major.minor branch, the commit count should increase monotonically.
|
||||||
//
|
//
|
||||||
// WUFFS_VERSION was overridden by "wuffs gen -version" based on revision
|
// WUFFS_VERSION was overridden by "wuffs gen -version" based on revision
|
||||||
// 00d5e35865a2f2718f4bb2596adaaa54bd639bbe committed on 2023-04-08.
|
// a138188d5742c0469de983878a430bdbe7e50e77 committed on 2024-04-19.
|
||||||
#define WUFFS_VERSION 0x000030003
|
#define WUFFS_VERSION 0x000030004
|
||||||
#define WUFFS_VERSION_MAJOR 0
|
#define WUFFS_VERSION_MAJOR 0
|
||||||
#define WUFFS_VERSION_MINOR 3
|
#define WUFFS_VERSION_MINOR 3
|
||||||
#define WUFFS_VERSION_PATCH 3
|
#define WUFFS_VERSION_PATCH 4
|
||||||
#define WUFFS_VERSION_PRE_RELEASE_LABEL ""
|
#define WUFFS_VERSION_PRE_RELEASE_LABEL ""
|
||||||
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3399
|
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3401
|
||||||
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20230408
|
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20240419
|
||||||
#define WUFFS_VERSION_STRING "0.3.3+3399.20230408"
|
#define WUFFS_VERSION_STRING "0.3.4+3401.20240419"
|
||||||
|
|
||||||
// ---------------- Configuration
|
// ---------------- Configuration
|
||||||
|
|
||||||
@@ -41569,20 +41569,22 @@ wuffs_png__decoder__decode_other_chunk(
|
|||||||
self->private_impl.f_seen_srgb = true;
|
self->private_impl.f_seen_srgb = true;
|
||||||
}
|
}
|
||||||
} else if (self->private_impl.f_chunk_type == 1397641844) {
|
} else if (self->private_impl.f_chunk_type == 1397641844) {
|
||||||
if (self->private_impl.f_seen_trns || (self->private_impl.f_color_type > 3) || ((self->private_impl.f_color_type == 3) && ! self->private_impl.f_seen_plte)) {
|
if (self->private_impl.f_seen_trns || ((self->private_impl.f_color_type == 3) && ! self->private_impl.f_seen_plte)) {
|
||||||
status = wuffs_base__make_status(wuffs_png__error__bad_chunk);
|
status = wuffs_base__make_status(wuffs_png__error__bad_chunk);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
} else if (self->private_impl.f_color_type > 3) {
|
||||||
if (a_src) {
|
} else {
|
||||||
a_src->meta.ri = ((size_t)(iop_a_src - a_src->data.ptr));
|
if (a_src) {
|
||||||
}
|
a_src->meta.ri = ((size_t)(iop_a_src - a_src->data.ptr));
|
||||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(9);
|
}
|
||||||
status = wuffs_png__decoder__decode_trns(self, a_src);
|
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(9);
|
||||||
if (a_src) {
|
status = wuffs_png__decoder__decode_trns(self, a_src);
|
||||||
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
if (a_src) {
|
||||||
}
|
iop_a_src = a_src->data.ptr + a_src->meta.ri;
|
||||||
if (status.repr) {
|
}
|
||||||
goto suspend;
|
if (status.repr) {
|
||||||
|
goto suspend;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
self->private_impl.f_seen_trns = true;
|
self->private_impl.f_seen_trns = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user