w3c / w3c/webcodecs

Detach codec inputs (where feasible)

Open
#104 16 comments 0 reactions 1 assignee View on GitHub

@Djuffin is already working on this.

Since May 11, 2023.

extension PR exists tag-tracker
Dominant language
HTML
Stars
1.3k
Forks
194
Avg merge
1d 13h
Merged PRs (30d)
3

Description

ImageDecoder isn't in the draft spec yet, but see here for latest interface in Chromium.

This is issue is a reminder that we should consider specifying that inputs are detached after the call to decode returns (neutering the buffer from JS pov). Similar to WebAudio's decodeAudio(). Detaching the inputs transfers ownership for the UA to safely perform asynch decoding without requiring a copy.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.