Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Architecture

> **Status (v0.19.0).** The bitstream format is documented below and implemented by `emberwave_core::bitstream`, with a slow CPU reference decoder in `emberwave_core::cpu`, the wgpu/WGSL decoder in the crate `emberwave-wgpu` and the colour conversion in `emberwave_core::color`. The encoder runs on the CPU (`emberwave_core::encode`) and on the GPU (`emberwave-wgpu`). `emberwave-core` has no wgpu in its dependencies or its API, so that its version need not follow wgpu's (D75). `emberwave-cli` decodes and encodes files with them, `emberwave-web` plays them in a browser, also packet by packet as a stream arrives, and `emberwave-ffi` offers the decoder and the GPU encoder to C, also as an XCFramework for iPhone, iPad and Mac apps, and hands Metal clients the decoded picture in a texture, or its planes in three, also into the client's own textures and on its own queue without waiting, where calls take turns at its command buffers; it runs on a client's own Vulkan device and images as well, shares textures and fences with Direct3D 12 and 11 devices on Windows, and encodes a host's pictures straight from its textures, in RGB as captures hold them too; on Metal the planes are stored straight into the textures, and on Apple silicon the frames are written where the shaders read them. A decoder can keep the last frame's detail in the blocks a frame drawn in part lacks, where the picture is still. Decode and encode times are in `BENCHMARKS.md`. The decision log at the end is kept up to date.
> **Status (v0.20.0).** The bitstream format is documented below and implemented by `emberwave_core::bitstream`, with a slow CPU reference decoder in `emberwave_core::cpu`, the wgpu/WGSL decoder in the crate `emberwave-wgpu` and the colour conversion in `emberwave_core::color`. The encoder runs on the CPU (`emberwave_core::encode`) and on the GPU (`emberwave-wgpu`). `emberwave-core` has no wgpu in its dependencies or its API, so that its version need not follow wgpu's (D75). `emberwave-cli` decodes and encodes files with them, `emberwave-web` plays them in a browser, also packet by packet as a stream arrives, and `emberwave-ffi` offers the decoder and the GPU encoder to C, also as an XCFramework for iPhone, iPad and Mac apps, and hands Metal clients the decoded picture in a texture, or its planes in three, also into the client's own textures and on its own queue without waiting, where calls take turns at its command buffers; it runs on a client's own Vulkan device and images as well, shares textures and fences with Direct3D 12 and 11 devices on Windows, and encodes a host's pictures straight from its textures, in RGB as captures hold them too; on Metal the planes are stored straight into the textures, and on Apple silicon the frames are written where the shaders read them. A decoder can keep the last frame's detail in the blocks a frame drawn in part lacks, where the picture is still. Decode and encode times are in `BENCHMARKS.md`. The decision log at the end is kept up to date.

## Overview

Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

All notable changes to emberwave. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/).

## [Unreleased]
## [0.20.0] - 2026-11-25

The GPU decoder and encoder are a crate of their own, `emberwave-wgpu`, so that `emberwave-core` has no wgpu in its API, and the browser player is ready as an npm package. **A change for Rust users of the GPU code**: its paths change (below). The C API, the shared library, the CLI and the browser player behave as in 0.19.0.

### Added
- The browser player's module as an npm package, ready to publish and not published (decision D76): `scripts/build_npm.sh` builds it into `target/npm/emberwave-web`, with TypeScript declarations and a README for web pages, and `scripts/check_npm.sh`, which CI runs, installs its archive into a scratch project and checks it there. The name proposed for npm is `emberwave-web`; the maintainer confirms it before the first publish. The package and the pages' module are built with the source paths that panic messages name remapped, so that the wasm names no directory of the machine that built it.
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
]

[workspace.package]
version = "0.19.0"
version = "0.20.0"
edition = "2024"
license = "MIT"
repository = "https://github.com/with-developer/emberwave"
Expand All @@ -22,8 +22,8 @@ publish = false
[workspace.dependencies]
# emberwave-wgpu uses hidden items of the core, so the two go together: the
# exact version.
emberwave-core = { path = "crates/emberwave-core", version = "=0.19.0" }
emberwave-wgpu = { path = "crates/emberwave-wgpu", version = "=0.19.0" }
emberwave-core = { path = "crates/emberwave-core", version = "=0.20.0" }
emberwave-wgpu = { path = "crates/emberwave-wgpu", version = "=0.20.0" }
thiserror = "2"
proptest = "1"
# Native backends only: GLES would need EGL and the browser backend is for the
Expand Down
2 changes: 1 addition & 1 deletion crates/emberwave-ffi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ A Swift package names the XCFramework as a binary target. From a release, it tak
// In the app's Package.swift, with the version of the release:
.binaryTarget(
name: "Emberwave",
url: "https://github.com/with-developer/emberwave/releases/download/v0.19.0/Emberwave.xcframework.zip",
url: "https://github.com/with-developer/emberwave/releases/download/v0.20.0/Emberwave.xcframework.zip",
checksum: "..." // the release's SHA256SUMS line for Emberwave.xcframework.zip
),
.target(
Expand Down
4 changes: 2 additions & 2 deletions crates/emberwave-ffi/include/emberwave.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#define EMBERWAVE_VERSION_MAJOR 0

// The minor version of emberwave that this header belongs to.
#define EMBERWAVE_VERSION_MINOR 19
#define EMBERWAVE_VERSION_MINOR 20

// The patch version of emberwave that this header belongs to.
#define EMBERWAVE_VERSION_PATCH 0
Expand All @@ -54,7 +54,7 @@
// minor times 100 plus patch: 1600 for 0.16.0. `emberwave_version_number()`
// gives the library's, which differs when a program runs with another
// library than the one it was built for.
#define EMBERWAVE_VERSION 1900
#define EMBERWAVE_VERSION 2000

// 4:2:0: the chroma planes have half the width and height of the luma plane,
// whose width and height are even.
Expand Down
4 changes: 2 additions & 2 deletions crates/emberwave-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ pub enum EmberwaveStatus {
/// The major version of emberwave that this header belongs to.
pub const EMBERWAVE_VERSION_MAJOR: u32 = 0;
/// The minor version of emberwave that this header belongs to.
pub const EMBERWAVE_VERSION_MINOR: u32 = 19;
pub const EMBERWAVE_VERSION_MINOR: u32 = 20;
/// The patch version of emberwave that this header belongs to.
pub const EMBERWAVE_VERSION_PATCH: u32 = 0;
/// The version this header belongs to as one number, major times 10000 plus
/// minor times 100 plus patch: 1600 for 0.16.0. `emberwave_version_number()`
/// gives the library's, which differs when a program runs with another
/// library than the one it was built for.
pub const EMBERWAVE_VERSION: u32 = 1900;
pub const EMBERWAVE_VERSION: u32 = 2000;

/// The library's version as `EMBERWAVE_VERSION` numbers it, from the crate's.
const VERSION_NUMBER: u32 = decimal(env!("CARGO_PKG_VERSION_MAJOR")) * 10000
Expand Down
Loading