Skip to content

v0.28.1

Choose a tag to compare

@osamu620 osamu620 released this 16 Nov 13:50
· 42 commits to main since this release

Fixes the multi-threaded WebAssembly builds, which since 0.25.0 decoded every
frame after the first on one thread: the RTP demo, the WebTransport viewer and
the JPIP demos ran at about half speed. The README and the documentation are
reorganised by audience.

The native library is unchanged: encoded and decoded output are byte-identical
to 0.28.0.

Fixed

  • WebAssembly: the multi-threaded builds decoded every frame after the first
    on one thread. This affected the RTP demo, the WebTransport viewer and the
    JPIP demos, and dates from 0.25.0.
    • Cause: reset_decoder_with_bytes() and the JPIP wrapper re-initialised
      their decoder with num_threads = 1, which once left the thread pool in
      use. Since 0.25.0, init() with 1 decodes on the calling thread only.
    • Fix: they now pass the thread count the decoder was created with.
    • On the RTP demo's default clip (1080p 10-bit 4:2:2, 4 threads), decoding
      takes 6.4 ms a frame again instead of 15 ms, as in 0.24.0. The decoded
      frames are unchanged.

Documentation

  • The README's feature list now says that -rate makes HTJ2K codestreams of
    a given size (PCRD-opt over the HT coding passes). Quality layers are the
    extra for the Part 1 block coder; the previous wording suggested -rate
    was mainly for Part 1.

  • The README now addresses people who use OpenHTJ2K. It gives what the
    project does, how to build and install it, a quick start, the library in
    two lines, and where to read more, in about 100 lines instead of 313. The
    details it held moved to the pages they belong to: the rate-control
    measurements and the input formats to docs/cli_encoder.md, and the
    library's API to docs/library.md.

  • docs/library.md (new) covers the C++ API: decode and encode examples, the
    decode entry points, threads, errors and warnings.

  • CONTRIBUTING.md (new) covers building and testing, the source layout,
    code style, the SIMD file convention, what breaks easily, and pull
    requests.

  • docs/README.md lists the documents for users first, then those for
    contributors.

  • docs/cli_encoder.md now gives the PGM and PPM bit depth correctly: it
    comes from maxval (4095 gives 12 bits). The README had said 8 or 16 bits.

  • The website's links to README sections point to the new sections, or to
    the CLI pages.

  • docs/building.md now starts with the three commands most people need
    and a list of what the rest of the page covers. Its material for
    contributors moved to CONTRIBUTING.md (Build options for development):

    • the C++ standard modes;
    • the switches that turn SIMD code paths off;
    • profiling builds;
    • the installed-package checks;
    • the demo site's deployment.

    The page now lists openhtj2k_message.hpp among the installed headers,
    and it no longer gives an out-of-date test count.